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 asProcessRuntimeAPI.isManagerOfUserInvolvedInProcessInstance(long, long)- Author:
- Emmanuel Duchastenier
-
-
Constructor Summary
Constructors Constructor Description IsManagerOfUserInvolvedInProcessInstanceRule(SessionService sessionService, SessionAccessor sessionAccessor, ProcessInvolvementDelegate processInvolvementDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()booleanisAllowed(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> context)Execute this rule and, according to the context, says whether the rule is valid.-
Methods inherited from class org.bonitasoft.engine.page.AuthorizationRuleWithParameters
getLoggedUserId, getLongParameter
-
-
-
-
Constructor Detail
-
IsManagerOfUserInvolvedInProcessInstanceRule
public IsManagerOfUserInvolvedInProcessInstanceRule(SessionService sessionService, SessionAccessor sessionAccessor, ProcessInvolvementDelegate processInvolvementDelegate)
-
-
Method Detail
-
isAllowed
public boolean isAllowed(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> context) throws SExecutionExceptionDescription 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
public java.lang.String getId()
- Specified by:
getIdin interfaceAuthorizationRule- Returns:
- the identifier for this authorization rule
-
-