Liferay 6.2-ce-ga5

com.liferay.portal.upgrade.v6_0_3
Class UpgradePermission

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_0_3.UpgradePermission
All Implemented Interfaces:
DBProcess

public class UpgradePermission
extends UpgradeProcess


Constructor Summary
UpgradePermission()
           
 
Method Summary
protected  void addRole(long roleId, long companyId, long classNameId, long classPK, String name, int type)
           
protected  void addSingleApproverWorkflowRoles()
           
protected  void addSingleApproverWorkflowRoles(long companyId)
           
protected  void addUserGroupRole(long userId, long groupId, long roleId)
           
protected  void addUserRole(long userId, long roleId)
           
protected  void assignSingleApproverWorkflowRoles(long companyId, long roleId, long groupId)
           
protected  void doUpgrade()
           
protected  long getRoleId(long companyId, String name)
           
protected  boolean hasUserGroupRole(long userId, long groupId, long roleId)
           
protected  boolean hasUserRole(long userId, long roleId)
           
protected  void updatePermissions()
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
doHasTable, 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

UpgradePermission

public UpgradePermission()
Method Detail

addRole

protected void addRole(long roleId,
                       long companyId,
                       long classNameId,
                       long classPK,
                       String name,
                       int type)
                throws Exception
Throws:
Exception

addSingleApproverWorkflowRoles

protected void addSingleApproverWorkflowRoles()
                                       throws Exception
Throws:
Exception

addSingleApproverWorkflowRoles

protected void addSingleApproverWorkflowRoles(long companyId)
                                       throws Exception
Throws:
Exception

addUserGroupRole

protected void addUserGroupRole(long userId,
                                long groupId,
                                long roleId)
                         throws Exception
Throws:
Exception

addUserRole

protected void addUserRole(long userId,
                           long roleId)
                    throws Exception
Throws:
Exception

assignSingleApproverWorkflowRoles

protected void assignSingleApproverWorkflowRoles(long companyId,
                                                 long roleId,
                                                 long groupId)
                                          throws Exception
Throws:
Exception

doUpgrade

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

getRoleId

protected long getRoleId(long companyId,
                         String name)
                  throws Exception
Throws:
Exception

hasUserGroupRole

protected boolean hasUserGroupRole(long userId,
                                   long groupId,
                                   long roleId)
                            throws Exception
Throws:
Exception

hasUserRole

protected boolean hasUserRole(long userId,
                              long roleId)
                       throws Exception
Throws:
Exception

updatePermissions

protected void updatePermissions()
                          throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5