public class IsTaskAvailableForUserRule extends java.lang.Object implements AuthorizationRule
| Constructor and Description |
|---|
IsTaskAvailableForUserRule(ActivityInstanceService activityInstanceService,
SessionService sessionService,
SessionAccessor sessionAccessor) |
| Modifier and Type | Method and 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.
|
protected boolean |
isTaskAvailableForOrExecutedByUser(long taskInstanceId,
long userId) |
public IsTaskAvailableForUserRule(ActivityInstanceService activityInstanceService, SessionService sessionService, SessionAccessor sessionAccessor)
public boolean isAllowed(java.lang.String key,
java.util.Map<java.lang.String,java.io.Serializable> context)
throws SExecutionException
AuthorizationRuleisAllowed in interface AuthorizationRulekey - the page mapping keycontext - the information necessary to execute this rule.SExecutionException - exception thrown if authorization cannot be determined.protected boolean isTaskAvailableForOrExecutedByUser(long taskInstanceId,
long userId)
throws SActivityReadException,
SBonitaReadException,
SActivityInstanceNotFoundException
public java.lang.String getId()
getId in interface AuthorizationRule