Liferay 7.0-ce-b4

com.liferay.portal.upgrade.v7_0_0
Class UpgradePortletSettings

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.upgrade.v7_0_0.UpgradePortletSettings
All Implemented Interfaces:
DBProcess, UpgradeStep

public abstract class UpgradePortletSettings
extends UpgradeProcess


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
UpgradePortletSettings()
           
UpgradePortletSettings(SettingsFactory settingsFactory)
           
 
Method Summary
protected  void addPortletPreferences(PortletPreferencesRow portletPreferencesRow)
           
protected  void copyPortletSettingsAsServiceSettings(String portletId, int ownerType, String serviceName)
           
protected  long getGroupId(long plid)
           
protected  ResultSet getPortletPreferencesResultSet(String portletId, int ownerType)
           
protected  void resetPortletPreferencesValues(String portletId, int ownerType, SettingsDescriptor settingsDescriptor)
           
protected  void updatePortletPreferences(PortletPreferencesRow portletPreferencesRow)
           
protected  void upgradeDisplayPortlet(String portletId, String serviceName, int ownerType)
           
protected  void upgradeMainPortlet(String portletId, String serviceName, int ownerType, boolean resetPortletInstancePreferences)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
doUpgrade, 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

UpgradePortletSettings

public UpgradePortletSettings()

UpgradePortletSettings

public UpgradePortletSettings(SettingsFactory settingsFactory)
Method Detail

addPortletPreferences

protected void addPortletPreferences(PortletPreferencesRow portletPreferencesRow)
                              throws Exception
Throws:
Exception

copyPortletSettingsAsServiceSettings

protected void copyPortletSettingsAsServiceSettings(String portletId,
                                                    int ownerType,
                                                    String serviceName)
                                             throws Exception
Throws:
Exception

getGroupId

protected long getGroupId(long plid)
                   throws Exception
Throws:
Exception

getPortletPreferencesResultSet

protected ResultSet getPortletPreferencesResultSet(String portletId,
                                                   int ownerType)
                                            throws Exception
Throws:
Exception

resetPortletPreferencesValues

protected void resetPortletPreferencesValues(String portletId,
                                             int ownerType,
                                             SettingsDescriptor settingsDescriptor)
                                      throws Exception
Throws:
Exception

updatePortletPreferences

protected void updatePortletPreferences(PortletPreferencesRow portletPreferencesRow)
                                 throws Exception
Throws:
Exception

upgradeDisplayPortlet

protected void upgradeDisplayPortlet(String portletId,
                                     String serviceName,
                                     int ownerType)
                              throws Exception
Throws:
Exception

upgradeMainPortlet

protected void upgradeMainPortlet(String portletId,
                                  String serviceName,
                                  int ownerType,
                                  boolean resetPortletInstancePreferences)
                           throws Exception
Throws:
Exception

Liferay 7.0-ce-b4