Annotation Interface MenuPolicy


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

     @MenuPolicy(menuIds = {"menu1", "menuItem1"})
     @MenuPolicy(menuIds = "menuItem1")
     void menus();
 }
 
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details