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 voidprotected StringgetNewTypeSettings(String typeSettings, String oldPropertyId, String newPropertyId) protected StringgetNewTypeSettings(String typeSettings, String oldRootPortletId, String newRootPortletId, boolean exactMatch) protected String[][]protected StringgetTypeSettingsCriteria(String portletId) protected String[]protected voidupdateGroup(String oldRootPortletId, String newRootPortletId) protected voidupdateInstanceablePortletPreferences(String oldRootPortletId, String newRootPortletId) protected voidupdateLayout(long plid, String typeSettings) protected voidupdateLayout(long plid, String oldPortletId, String newPortletId) protected voidupdateLayoutRevision(long layoutRevisionId, String typeSettings) protected voidupdateLayoutRevisions(String oldRootPortletId, String newRootPortletId, boolean exactMatch) protected voidupdateLayouts(String oldRootPortletId, String newRootPortletId, boolean exactMatch) protected voidupdatePortlet(String oldRootPortletId, String newRootPortletId) protected voidupdatePortletId(String oldRootPortletId, String newRootPortletId) protected voidupdatePortletItem(String oldRootPortletId, String newRootPortletId) protected voidupdateResourceAction(String oldName, String newName) protected voidupdateResourcePermission(String oldRootPortletId, String newRootPortletId, boolean updateName) protected voidupdateUserNotificationDelivery(String oldPortletId, String newPortletId) protected voidupdateUserNotificationEvent(String oldPortletId, String newPortletId) protected voidprotected voidMethods 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, upgradeMethods 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, runSQLTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess
runSQLTemplate, runSQLTemplateString
-
Constructor Details
-
BasePortletIdUpgradeProcess
public BasePortletIdUpgradeProcess()
-
-
Method Details
-
doUpgrade
- Specified by:
doUpgradein 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
-