Interface AuthorizationRule

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      boolean isAllowed​(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 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

        java.lang.String getId()
        Returns:
        the identifier for this authorization rule