Interface ActionFilter

    • Method Detail

      • accept

        boolean accept​(Action action,
                       ActionContext context)
        Checks whether this action is valid in the given context.

        The action is considered valid if no denying rule is found and at least one granting rule is found. If no rule is found at all, it is valid.

        In other words: OR between granting rules, AND between denying rules, denial is favored (also if exceptions occur), AND inside of rules, OR inside or rule items (type, facet,...).

        action - the optional action to check against, should be able to be null if filters evaluation only depends on given context.
        context - mandatory context holding variables to check against.
        true if filters configuration for given action and context. Returns false if an error occurs during one of the conditions evaluation.