Liferay 6.1.2-ce-ga3

com.liferay.portal.upgrade.v5_2_0
Class UpgradePortletPermissions

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.v5_2_0.UpgradePortletPermissions
All Implemented Interfaces:
DBProcess

public class UpgradePortletPermissions
extends UpgradeProcess


Constructor Summary
UpgradePortletPermissions()
           
 
Method Summary
protected  void doUpgrade()
           
protected  Object[] getLayout(long plid)
           
protected  int getPortletPermissionsCount(String actionId, long resourceId, String modelName)
           
protected  void updatePortletPermission(long permissionId, String actionId, String primKey, String modelName, int scope)
           
protected  void updatePortletPermissions(String portletName, String modelName, String[] actionIds)
           
 
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

UpgradePortletPermissions

public UpgradePortletPermissions()
Method Detail

doUpgrade

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

getLayout

protected Object[] getLayout(long plid)
                      throws Exception
Throws:
Exception

getPortletPermissionsCount

protected int getPortletPermissionsCount(String actionId,
                                         long resourceId,
                                         String modelName)
                                  throws Exception
Throws:
Exception

updatePortletPermission

protected void updatePortletPermission(long permissionId,
                                       String actionId,
                                       String primKey,
                                       String modelName,
                                       int scope)
                                throws Exception
Throws:
Exception

updatePortletPermissions

protected void updatePortletPermissions(String portletName,
                                        String modelName,
                                        String[] actionIds)
                                 throws Exception
Throws:
Exception

Liferay 6.1.2-ce-ga3