public class IsTaskAvailableForUserRule extends Object implements AuthorizationRule
| Constructor and Description |
|---|
IsTaskAvailableForUserRule(org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityInstanceService,
SessionService sessionService,
SessionAccessor sessionAccessor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
boolean |
isAllowed(String key,
Map<String,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(org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityInstanceService,
SessionService sessionService,
SessionAccessor sessionAccessor)
public boolean isAllowed(String key, Map<String,Serializable> context) throws org.bonitasoft.engine.commons.exceptions.SExecutionException
AuthorizationRuleisAllowed in interface AuthorizationRulekey - the page mapping keycontext - the information necessary to execute this rule.org.bonitasoft.engine.commons.exceptions.SExecutionException - exception thrown if authorization cannot be determined.protected boolean isTaskAvailableForOrExecutedByUser(long taskInstanceId,
long userId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityReadException,
org.bonitasoft.engine.persistence.SBonitaReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityInstanceNotFoundException
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityReadExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SActivityInstanceNotFoundExceptionpublic String getId()
getId in interface AuthorizationRuleCopyright © 2018 Bonitasoft S.A.. All rights reserved.