com.liferay.portal.kernel.upgrade
Class BaseUpgradePortletId
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BaseUpgradePortletId
- All Implemented Interfaces:
- DBProcess, UpgradeStep
- Direct Known Subclasses:
- BaseReplacePortletId
public abstract class BaseUpgradePortletId
- extends UpgradeProcess
|
Method Summary |
protected void |
doUpgrade()
|
protected String |
getNewTypeSettings(String typeSettings,
String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
|
protected String[][] |
getRenamePortletIdsArray()
|
protected String |
getTypeSettingsCriteria(String portletId)
|
protected String[] |
getUninstanceablePortletIds()
|
protected void |
updateInstanceablePortletPreferences(String oldRootPortletId,
String newRootPortletId)
|
protected void |
updateLayout(long plid,
String typeSettings)
|
protected void |
updateLayout(long plid,
String oldPortletId,
String newPortletId)
|
protected void |
updateLayoutRevision(long layoutRevisionId,
String typeSettings)
|
protected void |
updateLayoutRevisions(String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
|
protected void |
updateLayouts(String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
|
protected void |
updatePortlet(String oldRootPortletId,
String newRootPortletId)
|
protected void |
updatePortletId(String oldRootPortletId,
String newRootPortletId)
|
protected void |
updateResourceAction(String oldName,
String newName)
|
protected void |
updateResourcePermission(String oldRootPortletId,
String newRootPortletId,
boolean updateName)
|
protected void |
updateUserNotificationDelivery(String oldPortletId,
String newPortletId)
|
protected void |
updateUserNotificationEvent(String oldPortletId,
String newPortletId)
|
protected void |
upgradeInstanceablePortletIds()
|
protected void |
upgradeUninstanceablePortletIds()
|
| Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
alter, clearIndexesCache, getIndexesSQL, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable |
| Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess |
doHasTable, hasColumn, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseUpgradePortletId
public BaseUpgradePortletId()
doUpgrade
protected void doUpgrade()
throws Exception
- Specified by:
doUpgrade in class UpgradeProcess
- Throws:
Exception
getNewTypeSettings
protected String getNewTypeSettings(String typeSettings,
String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
getRenamePortletIdsArray
protected String[][] getRenamePortletIdsArray()
getTypeSettingsCriteria
protected String getTypeSettingsCriteria(String portletId)
getUninstanceablePortletIds
protected String[] getUninstanceablePortletIds()
updateInstanceablePortletPreferences
protected void updateInstanceablePortletPreferences(String oldRootPortletId,
String newRootPortletId)
throws Exception
- Throws:
Exception
updateLayout
protected void updateLayout(long plid,
String typeSettings)
throws Exception
- Throws:
Exception
updateLayout
protected void updateLayout(long plid,
String oldPortletId,
String newPortletId)
throws Exception
- Throws:
Exception
updateLayoutRevision
protected void updateLayoutRevision(long layoutRevisionId,
String typeSettings)
throws Exception
- Throws:
Exception
updateLayoutRevisions
protected void updateLayoutRevisions(String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
throws Exception
- Throws:
Exception
updateLayouts
protected void updateLayouts(String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
throws Exception
- Throws:
Exception
updatePortlet
protected void updatePortlet(String oldRootPortletId,
String newRootPortletId)
throws Exception
- Throws:
Exception
updatePortletId
protected void updatePortletId(String oldRootPortletId,
String newRootPortletId)
throws Exception
- Throws:
Exception
updateResourceAction
protected void updateResourceAction(String oldName,
String newName)
throws Exception
- Throws:
Exception
updateResourcePermission
protected void updateResourcePermission(String oldRootPortletId,
String newRootPortletId,
boolean updateName)
throws Exception
- Throws:
Exception
updateUserNotificationDelivery
protected void updateUserNotificationDelivery(String oldPortletId,
String newPortletId)
throws Exception
- Throws:
Exception
updateUserNotificationEvent
protected void updateUserNotificationEvent(String oldPortletId,
String newPortletId)
throws Exception
- Throws:
Exception
upgradeInstanceablePortletIds
protected void upgradeInstanceablePortletIds()
throws Exception
- Throws:
Exception
upgradeUninstanceablePortletIds
protected void upgradeUninstanceablePortletIds()
throws Exception
- Throws:
Exception