Package org.bonitasoft.engine.page
Class IsManagerOfUserInvolvedInProcessInstanceRule
java.lang.Object
org.bonitasoft.engine.page.AuthorizationRuleWithParameters
org.bonitasoft.engine.page.IsManagerOfUserInvolvedInProcessInstanceRule
- All Implemented Interfaces:
AuthorizationRule
public class IsManagerOfUserInvolvedInProcessInstanceRule
extends AuthorizationRuleWithParameters
implements AuthorizationRule
This Rule authorizes a user, if this user is the manager of another user involved in the given process instance.
It has the same behavior as
ProcessRuntimeAPI.isManagerOfUserInvolvedInProcessInstance(long, long)- Author:
- Emmanuel Duchastenier
-
Constructor Summary
ConstructorsConstructorDescriptionIsManagerOfUserInvolvedInProcessInstanceRule(SessionService sessionService, SessionAccessor sessionAccessor, ProcessInvolvementDelegate processInvolvementDelegate) -
Method Summary
Methods inherited from class org.bonitasoft.engine.page.AuthorizationRuleWithParameters
getLoggedUserId, getLongParameter
-
Constructor Details
-
IsManagerOfUserInvolvedInProcessInstanceRule
public IsManagerOfUserInvolvedInProcessInstanceRule(SessionService sessionService, SessionAccessor sessionAccessor, ProcessInvolvementDelegate processInvolvementDelegate)
-
-
Method Details
-
isAllowed
Description copied from interface:AuthorizationRuleExecute this rule and, according to the context, says whether the rule is valid.- Specified by:
isAllowedin interfaceAuthorizationRule- Parameters:
key- the page mapping keycontext- the information necessary to execute this rule.- Returns:
- true if allowed, false otherwise.If determination cannot be fulfilled, an Exception should be thrown.
- Throws:
SExecutionException- exception thrown if authorization cannot be determined.
-
getId
- Specified by:
getIdin interfaceAuthorizationRule- Returns:
- the identifier for this authorization rule
-