public class UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission extends Object implements IStepHandler
Modifier and Type | Class and Description |
---|---|
static class |
UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission.ServiceResume
Resumed service data.
|
Constructor and Description |
---|
UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission() |
Modifier and Type | Method and Description |
---|---|
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.
|
public UpdateAccessControlEntriesToAddEditServiceInstanceContentPermission()
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.Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.