Class BaseReplacePortletId
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BasePortletIdUpgradeProcess
com.liferay.portal.kernel.upgrade.BaseReplacePortletId
- All Implemented Interfaces:
DBProcess
,UpgradeStep
- Author:
- Adolfo Pérez
-
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 boolean
hasPortlet
(String portletId) protected boolean
hasResourceAction
(String name) protected boolean
hasResourcePermission
(String name) protected boolean
protected void
updatePortletId
(String oldRootPortletId, String newRootPortletId) protected void
updateResourceAction
(String oldName, String newName) protected void
updateResourcePermission
(String oldRootPortletId, String newRootPortletId, boolean updateName) Methods inherited from class com.liferay.portal.kernel.upgrade.BasePortletIdUpgradeProcess
getNewTypeSettings, getNewTypeSettings, getRenamePortletIdsArray, getTypeSettingsCriteria, getUninstanceablePortletIds, updateGroup, updateInstanceablePortletPreferences, updateLayout, updateLayout, updateLayoutRevision, updateLayoutRevisions, updateLayouts, updatePortlet, updatePortletItem, updateUserNotificationDelivery, updateUserNotificationEvent, upgradeInstanceablePortletIds, upgradeUninstanceablePortletIds
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
-
BaseReplacePortletId
public BaseReplacePortletId()
-
-
Method Details
-
doUpgrade
- Overrides:
doUpgrade
in classBasePortletIdUpgradeProcess
- Throws:
Exception
-
hasPortlet
- Throws:
SQLException
-
hasResourceAction
- Throws:
SQLException
-
hasResourcePermission
- Throws:
SQLException
-
hasRow
- Throws:
SQLException
-
updatePortletId
- Overrides:
updatePortletId
in classBasePortletIdUpgradeProcess
- Throws:
Exception
-
updateResourceAction
- Overrides:
updateResourceAction
in classBasePortletIdUpgradeProcess
- Throws:
Exception
-
updateResourcePermission
protected void updateResourcePermission(String oldRootPortletId, String newRootPortletId, boolean updateName) throws Exception - Overrides:
updateResourcePermission
in classBasePortletIdUpgradeProcess
- Throws:
Exception
-