Liferay 7.0-ga1 portal-kernel

com.liferay.portal.kernel.upgrade
Class BaseUpgradePortletPreferences

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
          extended by com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
All Implemented Interfaces:
DBProcess, UpgradeStep
Direct Known Subclasses:
CamelCaseUpgradePortletPreferences, RenameUpgradePortletPreferences

public abstract class BaseUpgradePortletPreferences
extends UpgradeProcess


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
UpgradeProcess.Alterable, UpgradeProcess.AlterColumnName, UpgradeProcess.AlterColumnType, UpgradeProcess.AlterTableAddColumn, UpgradeProcess.AlterTableDropColumn
 
Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
BaseUpgradePortletPreferences()
           
 
Method Summary
protected  void deletePortletPreferences(long portletPreferencesId)
          Deprecated. As of 7.0.0, with no direct replacement
protected  void doUpgrade()
           
protected  long getCompanyId(String sql, long primaryKey)
           
protected  Object[] getGroup(long groupId)
           
protected  Object[] getLayout(long plid)
           
protected  String getLayoutUuid(long plid, long layoutId)
           
protected  String[] getPortletIds()
           
protected  String getUpdatePortletPreferencesWhereClause()
           
protected  void updatePortletPreferences()
           
protected  void updatePortletPreferences(long portletPreferencesId, String preferences)
          Deprecated. 
protected  void upgradeMultiValuePreference(PortletPreferences portletPreferences, String key)
           
protected abstract  String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
alter, clearIndexesCache, getIndexesSQL, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
doHasTable, hasColumn, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseUpgradePortletPreferences

public BaseUpgradePortletPreferences()
Method Detail

deletePortletPreferences

@Deprecated
protected void deletePortletPreferences(long portletPreferencesId)
                                 throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

doUpgrade

protected void doUpgrade()
                  throws Exception
Specified by:
doUpgrade in class UpgradeProcess
Throws:
Exception

getCompanyId

protected long getCompanyId(String sql,
                            long primaryKey)
                     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

@Deprecated
protected void updatePortletPreferences(long portletPreferencesId,
                                                   String preferences)
                                 throws Exception
Deprecated. 

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

Liferay 7.0-ga1 portal-kernel