Class IsManagerOfUserInvolvedInProcessInstanceRule

  • All Implemented Interfaces:
    AuthorizationRule

    public class IsManagerOfUserInvolvedInProcessInstanceRule
    extends AuthorizationRuleWithParameters
    implements AuthorizationRule
    This Rule authorizes a user, if this user is the manager of another user involved in the given process instance. It has the same behavior as ProcessRuntimeAPI.isManagerOfUserInvolvedInProcessInstance(long, long)
    Author:
    Emmanuel Duchastenier
    • Method Detail

      • isAllowed

        public boolean isAllowed​(java.lang.String key,
                                 java.util.Map<java.lang.String,​java.io.Serializable> context)
                          throws SExecutionException
        Description copied from interface: AuthorizationRule
        Execute this rule and, according to the context, says whether the rule is valid.
        Specified by:
        isAllowed in interface AuthorizationRule
        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

        public java.lang.String getId()
        Specified by:
        getId in interface AuthorizationRule
        Returns:
        the identifier for this authorization rule