Package org.bonitasoft.engine.page
Class IsProcessOwnerRule
java.lang.Object
org.bonitasoft.engine.page.IsProcessOwnerRule
- All Implemented Interfaces:
AuthorizationRule
- Author:
- Emmanuel Duchastenier, Anthony Birembaut
-
Constructor Summary
ConstructorsConstructorDescriptionIsProcessOwnerRule(SupervisorMappingService supervisorMappingService, SessionAccessor sessionAccessor, SessionService sessionService, FormMappingService formMappingService) -
Method Summary
-
Constructor Details
-
IsProcessOwnerRule
public IsProcessOwnerRule(SupervisorMappingService supervisorMappingService, SessionAccessor sessionAccessor, SessionService sessionService, FormMappingService formMappingService)
-
-
Method Details
-
isAllowed
Description copied from interface:AuthorizationRuleExecute this rule and, according to the context, says whether the rule is valid.- Specified by:
isAllowedin 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
- Specified by:
getIdin interfaceAuthorizationRule- Returns:
- the identifier for this authorization rule
-