Package org.bonitasoft.engine.page
Class IsTaskPerformerRule
java.lang.Object
org.bonitasoft.engine.page.AuthorizationRuleWithParameters
org.bonitasoft.engine.page.IsTaskPerformerRule
- All Implemented Interfaces:
AuthorizationRule
public class IsTaskPerformerRule
extends AuthorizationRuleWithParameters
implements AuthorizationRule
- Author:
- Emmanuel Duchastenier
-
Constructor Summary
ConstructorsConstructorDescriptionIsTaskPerformerRule(SessionService sessionService, SessionAccessor sessionAccessor, TaskInvolvementDelegate taskInvolvementDelegate) -
Method Summary
Methods inherited from class org.bonitasoft.engine.page.AuthorizationRuleWithParameters
getLoggedUserId, getLongParameter
-
Constructor Details
-
IsTaskPerformerRule
public IsTaskPerformerRule(SessionService sessionService, SessionAccessor sessionAccessor, TaskInvolvementDelegate taskInvolvementDelegate)
-
-
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
-