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

    Modifier and Type
    Method
    Description
     
    boolean
    Execute this rule and, according to the context, says whether the rule is valid.
  • Method Details

    • isAllowed

      boolean isAllowed(String key, Map<String,Serializable> context) throws SExecutionException
      Execute this rule and, according to the context, says whether the rule is valid.
      Parameters:
      key - the page mapping key
      context - 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