Annotation Interface PolicyValidator.PolicyStatement

Enclosing class:
PolicyValidator

@Retention(RUNTIME) @Target({METHOD,TYPE}) @Documented @Inherited @AbacAnnotation public static @interface PolicyValidator.PolicyStatement
Annotate resource classes, methods, application etc. with this annotation to enforce validation of the policy statement defined.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The statement of this policy.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    By default, all policy statements defined on all levels (application, class, method, field) are executed in order.
  • Element Details

    • value

      String value
      The statement of this policy. Actual value depends on policy engine in use.
      Returns:
      policy statement value
    • inherit

      boolean inherit
      By default, all policy statements defined on all levels (application, class, method, field) are executed in order. If set to false, on the last policy in the list is executed (e.g. only on method for resource method of Jersey integration, if it is defined on method). NOTE: if there is no statement defined on current level, we will use a statement from nearest level above
      Returns:
      whether to inherit policies from annotations defined on higher level
      Default:
      true