Class UpgradePortletDisplayTemplatePreferences
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
com.liferay.portal.upgrade.v7_0_0.UpgradePortletDisplayTemplatePreferences
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.db.DBProcess,com.liferay.portal.kernel.upgrade.UpgradeStep
public class UpgradePortletDisplayTemplatePreferences
extends com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
- Author:
- Eduardo GarcĂa
-
Nested Class Summary
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess.Alterable -
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetCompanyGroupId(long companyId) getTemplateGroupAndKey(long displayStyleGroupId, String displayStyle) protected Stringprotected voidupgradeDisplayStyle(PortletPreferences portletPreferences) protected StringupgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) Methods inherited from class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
doUpgrade, getCompanyId, getGroup, getLayout, getLayoutRevision, getLayoutUuid, getPortletIds, updatePortletPreferences, upgradeMultiValuePreferenceMethods 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
-
Field Details
-
DISPLAY_STYLE_PREFIX_6_2
- See Also:
-
UPDATE_PORTLET_PREFERENCES_WHERE_CLAUSE
- See Also:
-
-
Constructor Details
-
UpgradePortletDisplayTemplatePreferences
public UpgradePortletDisplayTemplatePreferences()
-
-
Method Details
-
getCompanyGroupId
- Throws:
Exception
-
getTemplateGroupAndKey
protected com.liferay.portal.kernel.util.ObjectValuePair<Long,String> getTemplateGroupAndKey(long displayStyleGroupId, String displayStyle) throws Exception - Throws:
Exception
-
getUpdatePortletPreferencesWhereClause
- Overrides:
getUpdatePortletPreferencesWhereClausein classcom.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
-
upgradeDisplayStyle
- Throws:
Exception
-
upgradePreferences
protected String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) throws Exception - Specified by:
upgradePreferencesin classcom.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess- Throws:
Exception
-