Package org.bonitasoft.engine.page
Interface AuthorizationRule
- All Known Implementing Classes:
IsActorInitiatorRule,IsAdminRule,IsInvolvedInProcessInstanceRule,IsManagerOfUserInvolvedInProcessInstanceRule,IsProcessInitiatorRule,IsProcessOwnerRule,IsTaskAvailableForUserRule,IsTaskPerformerRule
public interface AuthorizationRule
Represent a rule to execute to grant access or not.
author Emmanuel Duchastenier
-
Method Summary
-
Method Details
-
isAllowed
Execute 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
String getId()- Returns:
- the identifier for this authorization rule
-