| java.lang.Object org.acegisecurity.intercept.method.AbstractMethodDefinitionSource org.acegisecurity.intercept.method.MethodDefinitionMap
MethodDefinitionMap | public class MethodDefinitionMap extends AbstractMethodDefinitionSource (Code) | | Stores a
ConfigAttributeDefinition for each method signature defined in a bean context. For
consistency with
MethodDefinitionAttributes as well as support for
MethodDefinitionSourceAdvisor , this implementation will return a
ConfigAttributeDefinition containing all configuration attributes defined against:
- The method-specific attributes defined for the intercepted method of the intercepted class.
- The method-specific attributes defined by any explicitly implemented interface if that interface
contains a method signature matching that of the intercepted method.
In general you should therefore define the interface methods of your secure objects, not the
implementations. For example, define com.company.Foo.findAll=ROLE_TEST but not
com.company.FooImpl.findAll=ROLE_TEST .
author: Ben Alex version: $Id: MethodDefinitionMap.java 1784 2007-02-24 21:00:24Z luke_t $ |
methodMap | protected Map methodMap(Code) | | Map from Method to ApplicationDefinition
|
addSecureMethod | public void addSecureMethod(Method method, ConfigAttributeDefinition attr)(Code) | | Add configuration attributes for a secure method. Method names can end or start with *
for matching multiple methods.
Parameters: method - the method to be secured Parameters: attr - required authorities associated with the method |
addSecureMethod | public void addSecureMethod(String name, ConfigAttributeDefinition attr)(Code) | | Add configuration attributes for a secure method. Method names can end or start with *
for matching multiple methods.
Parameters: name - class and method name, separated by a dot Parameters: attr - required authorities associated with the method throws: IllegalArgumentException - DOCUMENT ME! |
addSecureMethod | public void addSecureMethod(Class clazz, String mappedName, ConfigAttributeDefinition attr)(Code) | | Add configuration attributes for a secure method. Method names can end or start with *
for matching multiple methods.
Parameters: clazz - target interface or class Parameters: mappedName - mapped method name Parameters: attr - required authorities associated with the method throws: IllegalArgumentException - DOCUMENT ME! |
getConfigAttributeDefinitions | public Iterator getConfigAttributeDefinitions()(Code) | | Obtains the configuration attributes explicitly defined against this bean. This method will not return
implicit configuration attributes that may be returned by
MethodDefinitionMap.lookupAttributes(Method) as it does not have
access to a method invocation at this time.
the attributes explicitly defined against this bean |
getMethodMapSize | public int getMethodMapSize()(Code) | | Obtains the number of configuration attributes explicitly defined against this bean. This method will
not return implicit configuration attributes that may be returned by
MethodDefinitionMap.lookupAttributes(Method) as it
does not have access to a method invocation at this time.
the number of configuration attributes explicitly defined against this bean |
|
|