Liferay 7.0-ga1 portal-kernel

com.liferay.portal.kernel.upgrade
Class BaseReplacePortletId

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.BaseUpgradePortletId
              extended by com.liferay.portal.kernel.upgrade.BaseReplacePortletId
All Implemented Interfaces:
DBProcess, UpgradeStep

public abstract class BaseReplacePortletId
extends BaseUpgradePortletId


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
UpgradeProcess.Alterable, UpgradeProcess.AlterColumnName, UpgradeProcess.AlterColumnType, UpgradeProcess.AlterTableAddColumn, UpgradeProcess.AlterTableDropColumn
 
Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
BaseReplacePortletId()
           
 
Method Summary
protected  boolean hasPortlet(String portletId)
           
protected  boolean hasResourceAction(String name)
           
protected  boolean hasResourcePermission(String name)
           
protected  boolean hasRow(String sql, String value)
           
protected  void updatePortletId(String oldRootPortletId, String newRootPortletId)
           
protected  void updateResourceAction(String oldName, String newName)
           
protected  void updateResourcePermission(String oldRootPortletId, String newRootPortletId, boolean updateName)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.BaseUpgradePortletId
doUpgrade, getNewTypeSettings, getRenamePortletIdsArray, getTypeSettingsCriteria, getUninstanceablePortletIds, updateInstanceablePortletPreferences, updateLayout, updateLayout, updateLayoutRevision, updateLayoutRevisions, updateLayouts, updatePortlet, updateUserNotificationDelivery, updateUserNotificationEvent, upgradeInstanceablePortletIds, upgradeUninstanceablePortletIds
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
alter, clearIndexesCache, getIndexesSQL, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
doHasTable, hasColumn, hasRows, 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

BaseReplacePortletId

public BaseReplacePortletId()
Method Detail

hasPortlet

protected boolean hasPortlet(String portletId)
                      throws SQLException
Throws:
SQLException

hasResourceAction

protected boolean hasResourceAction(String name)
                             throws SQLException
Throws:
SQLException

hasResourcePermission

protected boolean hasResourcePermission(String name)
                                 throws SQLException
Throws:
SQLException

hasRow

protected boolean hasRow(String sql,
                         String value)
                  throws SQLException
Throws:
SQLException

updatePortletId

protected void updatePortletId(String oldRootPortletId,
                               String newRootPortletId)
                        throws Exception
Overrides:
updatePortletId in class BaseUpgradePortletId
Throws:
Exception

updateResourceAction

protected void updateResourceAction(String oldName,
                                    String newName)
                             throws Exception
Overrides:
updateResourceAction in class BaseUpgradePortletId
Throws:
Exception

updateResourcePermission

protected void updateResourcePermission(String oldRootPortletId,
                                        String newRootPortletId,
                                        boolean updateName)
                                 throws Exception
Overrides:
updateResourcePermission in class BaseUpgradePortletId
Throws:
Exception

Liferay 7.0-ga1 portal-kernel