Class BasePortletPreferencesUpgradeProcess
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
- All Implemented Interfaces:
DBProcess,UpgradeStep
- Direct Known Subclasses:
CamelCaseUpgradePortletPreferences
- Author:
- Jorge Ferrer, 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 longgetCompanyId(String sql, long primaryKey) protected Object[]getGroup(long groupId) protected Object[]getLayout(long plid) protected Object[]getLayoutRevision(long layoutRevisionId) protected StringgetLayoutUuid(long plid, long layoutId) protected String[]protected Stringprotected voidprotected voidupgradeMultiValuePreference(PortletPreferences portletPreferences, String key) protected abstract StringupgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) 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, 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
-
BasePortletPreferencesUpgradeProcess
public BasePortletPreferencesUpgradeProcess()
-
-
Method Details
-
doUpgrade
- Specified by:
doUpgradein classUpgradeProcess- Throws:
Exception
-
getCompanyId
- Throws:
Exception
-
getGroup
- Throws:
Exception
-
getLayout
- Throws:
Exception
-
getLayoutRevision
- Throws:
Exception
-
getLayoutUuid
- Throws:
Exception
-
getPortletIds
-
getUpdatePortletPreferencesWhereClause
-
updatePortletPreferences
- Throws:
Exception
-
upgradeMultiValuePreference
protected void upgradeMultiValuePreference(PortletPreferences portletPreferences, String key) throws ReadOnlyException - Throws:
ReadOnlyException
-
upgradePreferences
protected abstract String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) throws Exception - Throws:
Exception
-