public class AuthorizedAnnotationAttributes
extends java.lang.Object
 This Attributes implementation will return security configuration for classes
 described using the Secured Java 5 annotation.
 
 The SecurityAnnotationAttributes implementation can be used to configure a
 MethodDefinitionAttributes and MethodSecurityInterceptor bean
 definition (see below).
 
For example:
 <bean id="attributes" 
     class="org.acegisecurity.annotation.SecurityAnnotationAttributes"/>
 
 <bean id="objectDefinitionSource" 
     class="org.acegisecurity.intercept.method.MethodDefinitionAttributes">
     <property name="attributes">
         <ref local="attributes"/>
     </property>
 </bean>
 
 <bean id="securityInterceptor" 
     class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
      . . .
      <property name="objectDefinitionSource">
          <ref local="objectDefinitionSource"/>
      </property>
 </bean>
 
 These security annotations are similiar to the Commons Attributes approach, however they are using Java 5 language-level metadata support.
Authorized| Constructor and Description | 
|---|
AuthorizedAnnotationAttributes()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Collection | 
getAttributes(java.lang.Class target)
Get the  
Secured attributes for a given target class. | 
java.util.Collection | 
getAttributes(java.lang.Class clazz,
             java.lang.Class filter)  | 
java.util.Collection | 
getAttributes(java.lang.reflect.Field field)  | 
java.util.Collection | 
getAttributes(java.lang.reflect.Field field,
             java.lang.Class clazz)  | 
java.util.Collection | 
getAttributes(java.lang.reflect.Method method)
Get the  
Secured attributes for a given target method. | 
java.util.Collection | 
getAttributes(java.lang.reflect.Method method,
             java.lang.Class clazz)  | 
boolean | 
getRequireAll(java.lang.Class target)
Returns whether or not to require that the user have all of the privileges in order to be
 "authorized" for this class 
 | 
boolean | 
getRequireAll(java.lang.reflect.Method method)
Returns whether or not to require that the user have all of the privileges in order to be
 "authorized" for this method 
 | 
boolean | 
hasAuthorizedAnnotation(java.lang.reflect.Method method)
Determine if this method has the @Authorized annotation even on it 
 | 
public java.util.Collection getAttributes(java.lang.Class target)
Secured attributes for a given target class.target - The target methodSecurityConfigAttributes#getAttributespublic java.util.Collection getAttributes(java.lang.reflect.Method method)
Secured attributes for a given target method.method - The target methodSecurityConfigAttributes#getAttributespublic boolean getRequireAll(java.lang.Class target)
target - the class to act onAuthorized.requireAll()public boolean getRequireAll(java.lang.reflect.Method method)
method - Authorized.requireAll()public boolean hasAuthorizedAnnotation(java.lang.reflect.Method method)
method - public java.util.Collection getAttributes(java.lang.Class clazz,
                                          java.lang.Class filter)
public java.util.Collection getAttributes(java.lang.reflect.Method method,
                                          java.lang.Class clazz)
public java.util.Collection getAttributes(java.lang.reflect.Field field)
public java.util.Collection getAttributes(java.lang.reflect.Field field,
                                          java.lang.Class clazz)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.