com.liferay.portal.kernel.upgrade
Class BaseUpgradePortletPreferences

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
      extended by com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
Direct Known Subclasses:
CamelCaseUpgradePortletPreferences

public abstract class BaseUpgradePortletPreferences
extends UpgradeProcess

Author:
Jorge Ferrer, Brian Wing Shun Chan

Constructor Summary
BaseUpgradePortletPreferences()
           
 
Method Summary
protected  void deletePortletPreferences(long portletPreferencesId)
           
protected  void doUpgrade()
           
protected  long getCompanyId(long userId)
           
protected  java.lang.Object[] getGroup(long groupId)
           
protected  java.lang.Object[] getLayout(long plid)
           
protected  java.lang.String getLayoutUuid(long plid, long layoutId)
           
protected  java.lang.String[] getPortletIds()
           
protected  java.lang.String getUpdatePortletPreferencesWhereClause()
           
protected  void updatePortletPreferences()
           
protected  void updatePortletPreferences(long portletPreferencesId, java.lang.String preferences)
           
protected abstract  java.lang.String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, java.lang.String portletId, java.lang.String xml)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
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 java.lang.Exception
Throws:
java.lang.Exception

doUpgrade

protected void doUpgrade()
                  throws java.lang.Exception
Overrides:
doUpgrade in class UpgradeProcess
Throws:
java.lang.Exception

getCompanyId

protected long getCompanyId(long userId)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getGroup

protected java.lang.Object[] getGroup(long groupId)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getLayout

protected java.lang.Object[] getLayout(long plid)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getLayoutUuid

protected java.lang.String getLayoutUuid(long plid,
                                         long layoutId)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getPortletIds

protected java.lang.String[] getPortletIds()

getUpdatePortletPreferencesWhereClause

protected java.lang.String getUpdatePortletPreferencesWhereClause()

updatePortletPreferences

protected void updatePortletPreferences()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

updatePortletPreferences

protected void updatePortletPreferences(long portletPreferencesId,
                                        java.lang.String preferences)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

upgradePreferences

protected abstract java.lang.String upgradePreferences(long companyId,
                                                       long ownerId,
                                                       int ownerType,
                                                       long plid,
                                                       java.lang.String portletId,
                                                       java.lang.String xml)
                                                throws java.lang.Exception
Throws:
java.lang.Exception