Class BasePortletIdUpgradeProcess
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BasePortletIdUpgradeProcess
- All Implemented Interfaces:
DBProcess
,UpgradeStep
- Direct Known Subclasses:
BaseReplacePortletId
- Author:
- Brian Wing Shun Chan
-
Nested Class Summary
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
UpgradeProcess.Alterable
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
getNewTypeSettings
(String typeSettings, String oldPropertyId, String newPropertyId) protected String
getNewTypeSettings
(String typeSettings, String oldRootPortletId, String newRootPortletId, boolean exactMatch) protected String[][]
protected String
getTypeSettingsCriteria
(String portletId) protected String[]
protected void
updateGroup
(String oldRootPortletId, String newRootPortletId) 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
updatePortletItem
(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
protected void
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
addTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgrade, upgrade
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, hasView, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLFile, runSQLFile, runSQLTemplate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess
runSQLTemplate, runSQLTemplateString
-
Constructor Details
-
BasePortletIdUpgradeProcess
public BasePortletIdUpgradeProcess()
-
-
Method Details
-
doUpgrade
- Specified by:
doUpgrade
in classUpgradeProcess
- Throws:
Exception
-
getNewTypeSettings
-
getNewTypeSettings
-
getRenamePortletIdsArray
-
getTypeSettingsCriteria
-
getUninstanceablePortletIds
-
updateGroup
- Throws:
Exception
-
updateInstanceablePortletPreferences
protected void updateInstanceablePortletPreferences(String oldRootPortletId, String newRootPortletId) throws Exception - Throws:
Exception
-
updateLayout
- Throws:
Exception
-
updateLayout
- Throws:
Exception
-
updateLayoutRevision
- 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
- Throws:
Exception
-
updatePortletId
- Throws:
Exception
-
updatePortletItem
- Throws:
Exception
-
updateResourceAction
- 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
- Throws:
Exception
-
upgradeUninstanceablePortletIds
- Throws:
Exception
-