com.liferay.portal.kernel.upgrade
Class BaseUpgradePortletPreferences
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
- All Implemented Interfaces:
- DBProcess
- Direct Known Subclasses:
- CamelCaseUpgradePortletPreferences, UpgradeAssetPublisher, UpgradeAssetPublisher, UpgradeAssetPublisher, UpgradeAssetPublisherManualEntries, UpgradeCamelCasePortletPreferences, UpgradeDocumentLibrary, UpgradeDocumentLibrary, UpgradeLookAndFeel, UpgradeNavigation, UpgradeRSS, UpgradeScopes, UpgradeScopes, UpgradeScopes, UpgradeSitemap, UpgradeSitemap
public abstract class BaseUpgradePortletPreferences
- extends UpgradeProcess
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
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 |
BaseUpgradePortletPreferences
public BaseUpgradePortletPreferences()
deletePortletPreferences
protected void deletePortletPreferences(long portletPreferencesId)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade
in class UpgradeProcess
- Throws:
Exception
getCompanyId
protected long getCompanyId(long userId)
throws Exception
- Throws:
Exception
getGroup
protected Object[] getGroup(long groupId)
throws Exception
- Throws:
Exception
getLayout
protected Object[] getLayout(long plid)
throws Exception
- Throws:
Exception
getLayoutUuid
protected String getLayoutUuid(long plid,
long layoutId)
throws Exception
- Throws:
Exception
getPortletIds
protected String[] getPortletIds()
getUpdatePortletPreferencesWhereClause
protected String getUpdatePortletPreferencesWhereClause()
updatePortletPreferences
protected void updatePortletPreferences()
throws Exception
- Throws:
Exception
updatePortletPreferences
protected void updatePortletPreferences(long portletPreferencesId,
String preferences)
throws Exception
- Throws:
Exception
upgradePreferences
protected abstract String upgradePreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml)
throws Exception
- Throws:
Exception