com.liferay.portal.upgrade.v6_0_3
Class UpgradePermission

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
      extended by com.liferay.portal.upgrade.v6_0_3.UpgradePermission

public class UpgradePermission
extends com.liferay.portal.kernel.upgrade.UpgradeProcess

Author:
Raymond Augé

Constructor Summary
UpgradePermission()
           
 
Method Summary
protected  void addRole(long roleId, long companyId, long classNameId, long classPK, java.lang.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 deletePermissions_5()
           
protected  void doUpgrade()
           
protected  long getRoleId(long companyId, java.lang.String name)
           
protected  void updatePermissions_5()
           
protected  void updatePermissions_6()
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, tableHasColumn, tableHasData, upgrade, upgrade, upgrade
 
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,
                       java.lang.String name,
                       int type)
                throws java.lang.Exception
Throws:
java.lang.Exception

addSingleApproverWorkflowRoles

protected void addSingleApproverWorkflowRoles()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

addSingleApproverWorkflowRoles

protected void addSingleApproverWorkflowRoles(long companyId)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

addUserGroupRole

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

addUserRole

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

assignSingleApproverWorkflowRoles

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

deletePermissions_5

protected void deletePermissions_5()
                            throws java.lang.Exception
Throws:
java.lang.Exception

doUpgrade

protected void doUpgrade()
                  throws java.lang.Exception
Overrides:
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
Throws:
java.lang.Exception

getRoleId

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

updatePermissions_5

protected void updatePermissions_5()
                            throws java.lang.Exception
Throws:
java.lang.Exception

updatePermissions_6

protected void updatePermissions_6()
                            throws java.lang.Exception
Throws:
java.lang.Exception