|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.upgrade.custom.build_6_2_0_120625.UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission
public class UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission
An upgrade step to update the access control entries, inserting the new global edit service instance content permission.
Nested Class Summary | |
---|---|
static class |
UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission.ServiceResume
Resumed service data. |
Constructor Summary | |
---|---|
UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission()
|
Method Summary | |
---|---|
Node |
executeStep(SessionConfig sessionConfig,
Node stepNode,
ITransaction transaction)
Executes a step in the upgrade process. |
static boolean |
getValueOfAllowEditServiceInstanceContentPermission(UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission.ServiceResume serviceResume,
int allowPermissions,
int denyPermissions,
int permissionsOnWorkflow,
boolean hasWorkflowEnabled)
Returns true if the edit service instance content should be turn on otherwise returns false for the current ACE. |
static boolean |
hasPermission(Integer allowPermissions,
Integer denyPermissions,
Integer permissionToVerify)
Returns true if the custom edit content permission has 1 as value otherwise returns false . |
static Integer |
normalizePermissions(Integer originalPermission,
Integer newPermissionPosition,
boolean permissionValue)
Returns the normalized permission, insert a new bit on new permission position with the permission value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission()
Method Detail |
---|
public Node executeStep(SessionConfig sessionConfig, Node stepNode, ITransaction transaction) throws PortalException
IStepHandler
executeStep
in interface IStepHandler
sessionConfig
- the user session information.stepNode
- the xml step definition node.transaction
- the transaction for persistence access.
PortalException
- if it was not possible to execute the step.public static boolean getValueOfAllowEditServiceInstanceContentPermission(UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission.ServiceResume serviceResume, int allowPermissions, int denyPermissions, int permissionsOnWorkflow, boolean hasWorkflowEnabled) throws PortalObjectNotFoundException
true
if the edit service instance content should be turn on otherwise returns false
for the current ACE.
serviceResume
- a resume of service, must be null if the service should not be verified.allowPermissions
- allow permissions.denyPermissions
- deny permissions.permissionsOnWorkflow
- number of permissions on workflow.hasWorkflowEnabled
- true
if the service instance of ACE has workflow enabled.
true
if the edit service instance content should be turn on otherwise returns false
for the current ACE.
PortalObjectNotFoundException
- if some information extracted of service resume is not found.public static boolean hasPermission(Integer allowPermissions, Integer denyPermissions, Integer permissionToVerify)
true
if the custom edit content permission has 1
as value otherwise returns false
.
userPermissions
- the permission to be verified.indexOfCustomEditContentPermission
- the index of the custom edit content permission.
true
if the custom edit content permission has 1
as value otherwise returns false
.public static Integer normalizePermissions(Integer originalPermission, Integer newPermissionPosition, boolean permissionValue)
originalPermission
- the permission to be normalized.newPermissionPosition
- the new permission position.permissionValue
- the value of the new permission.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |