Liferay 6.2-ce-ga5

com.liferay.portal.upgrade.util
Class UpgradePortletId

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.util.UpgradePortletId
All Implemented Interfaces:
DBProcess
Direct Known Subclasses:
UpgradeCalendar, UpgradeImageGallery, UpgradePortletId

public class UpgradePortletId
extends UpgradeProcess


Constructor Summary
UpgradePortletId()
           
 
Method Summary
protected  void doUpgrade()
           
protected  String getNewTypeSettings(String typeSettings, String oldRootPortletId, String newRootPortletId, boolean exactMatch)
           
protected  String[][] getRenamePortletIdsArray()
           
protected  String[] getUninstanceablePortletIds()
           
protected  void updateInstanceablePortletPreferences(String oldRootPortletId, String newRootPortletId)
           
protected  void updateLayout(long plid, String typeSettings)
           
protected  void updateLayout(long plid, String oldPortletId, String newPortletId)
           
protected  void updateLayouts(String oldRootPortletId, String newRootPortletId, boolean exactMatch)
           
protected  void updatePortlet(String oldRootPortletId, String newRootPortletId)
           
protected  void updatePortletPreference(long portletPreferencesId, String portletId)
           
protected  void updateResourcePermission(long resourcePermissionId, String name, String primKey)
           
protected  void updateResourcePermission(String oldRootPortletId, String newRootPortletId, boolean updateName)
           
 
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

UpgradePortletId

public UpgradePortletId()
Method Detail

doUpgrade

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

getNewTypeSettings

protected String getNewTypeSettings(String typeSettings,
                                    String oldRootPortletId,
                                    String newRootPortletId,
                                    boolean exactMatch)

getRenamePortletIdsArray

protected String[][] getRenamePortletIdsArray()

getUninstanceablePortletIds

protected String[] getUninstanceablePortletIds()

updateInstanceablePortletPreferences

protected void updateInstanceablePortletPreferences(String oldRootPortletId,
                                                    String newRootPortletId)
                                             throws Exception
Throws:
Exception

updateLayout

protected void updateLayout(long plid,
                            String typeSettings)
                     throws Exception
Throws:
Exception

updateLayout

protected void updateLayout(long plid,
                            String oldPortletId,
                            String newPortletId)
                     throws Exception
Throws:
Exception

updateLayouts

protected void updateLayouts(String oldRootPortletId,
                             String newRootPortletId,
                             boolean exactMatch)
                      throws Exception
Throws:
Exception

updatePortlet

protected void updatePortlet(String oldRootPortletId,
                             String newRootPortletId)
                      throws Exception
Throws:
Exception

updatePortletPreference

protected void updatePortletPreference(long portletPreferencesId,
                                       String portletId)
                                throws Exception
Throws:
Exception

updateResourcePermission

protected void updateResourcePermission(long resourcePermissionId,
                                        String name,
                                        String primKey)
                                 throws Exception
Throws:
Exception

updateResourcePermission

protected void updateResourcePermission(String oldRootPortletId,
                                        String newRootPortletId,
                                        boolean updateName)
                                 throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5