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
Constructors Constructor Description IsTaskPerformerRule(SessionService sessionService, SessionAccessor sessionAccessor, TaskInvolvementDelegate taskInvolvementDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
boolean
isAllowed(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
-
IsTaskPerformerRule
public IsTaskPerformerRule(SessionService sessionService, SessionAccessor sessionAccessor, TaskInvolvementDelegate taskInvolvementDelegate)
-
-
Method Detail
-
isAllowed
public boolean isAllowed(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> context) throws SExecutionException
Description copied from interface:AuthorizationRule
Execute this rule and, according to the context, says whether the rule is valid.- Specified by:
isAllowed
in 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:
getId
in interfaceAuthorizationRule
- Returns:
- the identifier for this authorization rule
-
-