| 
 |   | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface AuthorizedAnnotation used to describe service layer authorization attributes.
 For example, to require that the user have either View or Add privileges:
 
 
     @Authorized ({"View Users", "Add User"})
     public void getUsersByName(String name);
 
 or to require that they have all privileges
 
 
     @Authorized (value = {"Add Users", "Edit Users"}, requireAll=true)
     public void getUsersByName(String name);
 
 or to just require that they be authenticated:
 
 
     @Authorized ()
     public void getUsersByName(String name);
 
| Optional Element Summary | |
|---|---|
|  boolean | requireAllIf set to true, will require that the user have all privileges listed in value. | 
|  java.lang.String[] | valueReturns the list of privileges needed to access a method. | 
public abstract java.lang.String[] value
requireAll is set to true
public abstract boolean requireAll
value. if false, user only has to have one of the privileges. Defaults to false
| 
 | OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||