Package org.bonitasoft.engine.page
Interface AuthorizationRule
-
- All Known Implementing Classes:
IsActorInitiatorRule,IsAdminRule,IsInvolvedInProcessInstanceRule,IsManagerOfUserInvolvedInProcessInstanceRule,IsProcessInitiatorRule,IsProcessOwnerRule,IsTaskAvailableForUserRule,IsTaskPerformerRule
public interface AuthorizationRuleRepresent a rule to execute to grant access or not. author Emmanuel Duchastenier
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
isAllowed
boolean isAllowed(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> context) throws SExecutionExceptionExecute this rule and, according to the context, says whether the rule is valid.- 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
java.lang.String getId()
- Returns:
- the identifier for this authorization rule
-
-