Liferay 6.1.2-ce-ga3

com.liferay.portal.upgrade.v6_1_0
Class UpgradeAdminPortlets

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_1_0.UpgradeAdminPortlets
All Implemented Interfaces:
DBProcess

public class UpgradeAdminPortlets
extends UpgradeProcess


Constructor Summary
UpgradeAdminPortlets()
           
 
Method Summary
protected  void addResource(long resourceId, long codeId, String primKey)
           
protected  long[] addResourceIds(long companyId, String name)
           
protected  void addResourcePermission(long resourcePermissionId, long companyId, String name, int scope, String primKey, long roleId, long actionIds)
           
protected  void doUpgrade()
           
protected  long getBitwiseValue(String name, String actionId)
           
protected  long getControlPanelGroupId()
           
protected  long[] getOldResourceIds(String name)
           
protected  void updateAccessInControlPanelPermission_5(String portletFrom, String portletTo)
           
protected  void updateAccessInControlPanelPermission_6(String portletFrom, String portletTo)
           
protected  void updatePermission(long[] oldResourceIds, long[] newResourceIds)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
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

UpgradeAdminPortlets

public UpgradeAdminPortlets()
Method Detail

addResource

protected void addResource(long resourceId,
                           long codeId,
                           String primKey)
                    throws Exception
Throws:
Exception

addResourceIds

protected long[] addResourceIds(long companyId,
                                String name)
                         throws Exception
Throws:
Exception

addResourcePermission

protected void addResourcePermission(long resourcePermissionId,
                                     long companyId,
                                     String name,
                                     int scope,
                                     String primKey,
                                     long roleId,
                                     long actionIds)
                              throws Exception
Throws:
Exception

doUpgrade

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

getBitwiseValue

protected long getBitwiseValue(String name,
                               String actionId)
                        throws Exception
Throws:
Exception

getControlPanelGroupId

protected long getControlPanelGroupId()
                               throws Exception
Throws:
Exception

getOldResourceIds

protected long[] getOldResourceIds(String name)
                            throws Exception
Throws:
Exception

updateAccessInControlPanelPermission_5

protected void updateAccessInControlPanelPermission_5(String portletFrom,
                                                      String portletTo)
                                               throws Exception
Throws:
Exception

updateAccessInControlPanelPermission_6

protected void updateAccessInControlPanelPermission_6(String portletFrom,
                                                      String portletTo)
                                               throws Exception
Throws:
Exception

updatePermission

protected void updatePermission(long[] oldResourceIds,
                                long[] newResourceIds)
                         throws Exception
Throws:
Exception

Liferay 6.1.2-ce-ga3