com.liferay.portal.upgrade.util
Class UpgradePortletId
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.util.UpgradePortletId
- All Implemented Interfaces:
- DBProcess
- Direct Known Subclasses:
- UpgradeCalendar, UpgradeImageGallery, UpgradePortletId
public class UpgradePortletId
- extends UpgradeProcess
Method Summary |
protected void |
doUpgrade()
|
protected String |
getNewTypeSettings(String typeSettings,
String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
|
protected String[][] |
getRenamePortletIdsArray()
|
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 |
updateLayouts(String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
|
protected void |
updatePortlet(String oldRootPortletId,
String newRootPortletId)
|
protected void |
updatePortletPreference(long portletPreferencesId,
String portletId)
|
protected void |
updateResourcePermission(long resourcePermissionId,
String name,
String primKey)
|
protected void |
updateResourcePermission(String oldRootPortletId,
String newRootPortletId,
boolean updateName)
|
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
doHasTable, getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradePortletId
public UpgradePortletId()
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade
in class UpgradeProcess
- Throws:
Exception
getNewTypeSettings
protected String getNewTypeSettings(String typeSettings,
String oldRootPortletId,
String newRootPortletId,
boolean exactMatch)
getRenamePortletIdsArray
protected String[][] getRenamePortletIdsArray()
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
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
updatePortletPreference
protected void updatePortletPreference(long portletPreferencesId,
String portletId)
throws Exception
- Throws:
Exception
updateResourcePermission
protected void updateResourcePermission(long resourcePermissionId,
String name,
String primKey)
throws Exception
- Throws:
Exception
updateResourcePermission
protected void updateResourcePermission(String oldRootPortletId,
String newRootPortletId,
boolean updateName)
throws Exception
- Throws:
Exception