This Acl voter will evaluate methods based on labels applied to incoming arguments. It will only check
methods that have been properly tagged in the MethodSecurityInterceptor with the value stored in
attributeIndicatingLabeledOperation. If a method has been tagged, then it examines each argument, and if the
argument implements
LabeledData , then it will asses if the user's list of granted authorities matches.
By default, if none of the arguments are labeled, then the access will be granted. This can be overridden by
setting allowAccessIfNoAttributesAreLabeled to false in the Spring context file.
In many situations, different values are linked together to define a common label, it is necessary to
define a map in the application context that links user-assigned label access to domain object labels. This is done
by setting up the labelMap in the application context.
author: Greg Turnquist version: $Id: LabelBasedAclVoter.java 1962 2007-08-27 17:21:16Z luke_t $ See Also: org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor |