Liferay 7.0-ce-b4

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


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
BaseUpgradePortletPreferences()
           
 
Method Summary
protected  void deletePortletPreferences(long portletPreferencesId)
           
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)
           
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
getThreshold, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
doHasTable, hasColumn, 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

protected void deletePortletPreferences(long portletPreferencesId)
                                 throws Exception
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

protected void updatePortletPreferences(long portletPreferencesId,
                                        String preferences)
                                 throws Exception
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-ce-b4