com.liferay.portal.upgrade.v5_2_0
Class UpgradePortletPermissions
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v5_2_0.UpgradePortletPermissions
- All Implemented Interfaces:
- DBProcess
public class UpgradePortletPermissions
- extends UpgradeProcess
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradePortletPermissions
public UpgradePortletPermissions()
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