Liferay 6.1.2-ce-ga3

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
Direct Known Subclasses:
CamelCaseUpgradePortletPreferences

public abstract class BaseUpgradePortletPreferences
extends UpgradeProcess


Constructor Summary
BaseUpgradePortletPreferences()
           
 
Method Summary
protected  void deletePortletPreferences(long portletPreferencesId)
           
protected  void doUpgrade()
           
protected  long getCompanyId(long userId)
           
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 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, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
runSQL, runSQL, runSQLTemplate, runSQLTemplate
 
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
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

Liferay 6.1.2-ce-ga3