Annotation Interface ViewPolicy


Defines view resource policy in annotated resource role. Multiple ViewPolicy annotations may be placed on a single method. ViewPolicy 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 {

     @ViewPolicy(viewIds = {"view1", "view2"})
     @ViewPolicy(viewClasses = {TestView1.class, TestView2.class})
     void views();
 }
 
See Also:
  • Element Details

    • viewIds

      String[] viewIds
      Default:
      {}
    • viewClasses

      Class[] viewClasses
      Default:
      {}