Liferay 6.0-ee

com.liferay.portal.upgrade.v5_2_0
Class UpgradePortletPermissions

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
      extended by com.liferay.portal.upgrade.v5_2_0.UpgradePortletPermissions

public class UpgradePortletPermissions
extends UpgradeProcess


Constructor Summary
UpgradePortletPermissions()
           
 
Method Summary
protected  void doUpgrade()
           
protected  Object[] getLayout(long plid)
           
protected  long 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, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, upgrade, upgrade, upgrade
 
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 long 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.0-ee