Liferay 6.2-ce-ga5

com.liferay.portal.upgrade.v6_2_0
Class UpgradeCustomizablePortlets

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.v6_2_0.UpgradeCustomizablePortlets
All Implemented Interfaces:
DBProcess

public class UpgradeCustomizablePortlets
extends UpgradeProcess


Constructor Summary
UpgradeCustomizablePortlets()
           
 
Method Summary
protected  void doUpgrade()
           
protected  PortalPreferencesWrapper getPortalPreferencesInstance(long ownerId, int ownerType, String xml)
           
protected  PortletPreferences getPortletPreferences(long ownerId, int ownerType, long plid, String portletId)
           
protected  String migratePortletPreferencesToUserPreferences(long userId, long plid, String portletId)
           
protected  void updatePortletPreferences(long userId, long plid, String portletId, String newPortletId)
           
protected  void upgradeCustomizablePreferences(PortalPreferencesWrapper portalPreferencesWrapper, long ownerId, int ownerType, String preferences)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
doHasTable, 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

UpgradeCustomizablePortlets

public UpgradeCustomizablePortlets()
Method Detail

doUpgrade

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

getPortalPreferencesInstance

protected PortalPreferencesWrapper getPortalPreferencesInstance(long ownerId,
                                                                int ownerType,
                                                                String xml)
                                                         throws SystemException
Throws:
SystemException

getPortletPreferences

protected PortletPreferences getPortletPreferences(long ownerId,
                                                   int ownerType,
                                                   long plid,
                                                   String portletId)
                                            throws Exception
Throws:
Exception

migratePortletPreferencesToUserPreferences

protected String migratePortletPreferencesToUserPreferences(long userId,
                                                            long plid,
                                                            String portletId)
                                                     throws Exception
Throws:
Exception

updatePortletPreferences

protected void updatePortletPreferences(long userId,
                                        long plid,
                                        String portletId,
                                        String newPortletId)
                                 throws Exception
Throws:
Exception

upgradeCustomizablePreferences

protected void upgradeCustomizablePreferences(PortalPreferencesWrapper portalPreferencesWrapper,
                                              long ownerId,
                                              int ownerType,
                                              String preferences)
                                       throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5