Annotation Interface SpecificPolicy


Defines specific resource policy in annotated resource role (see ResourceRole). Multiple SpecificPolicy annotations may be placed on a single method. SpecificPolicy annotation may present on multiple methods of the same class. Annotated method may have any name and return type.

Example:

 @ResourceRole(name = "My Role", code = "myRole")
 public interface MyRole {

     @SpecificPolicy(resources = {"app.order.someSpecificStuff", "app.order.anotherSpecificStuff"})
     void specific();
 }
 
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details

    • resources

      String[] resources