org.springframework.security.access.vote
Class AbstractAclVoter

java.lang.Object
  extended by org.springframework.security.access.vote.AbstractAclVoter
All Implemented Interfaces:
AccessDecisionVoter
Direct Known Subclasses:
AclEntryVoter, LabelBasedAclVoter

public abstract class AbstractAclVoter
extends Object
implements AccessDecisionVoter

Provides helper methods for writing domain object ACL voters. Not bound to any particular ACL system.


Field Summary
 
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
AbstractAclVoter()
           
 
Method Summary
protected  Object getDomainObjectInstance(Object secureObject)
           
 Class<?> getProcessDomainObjectClass()
           
 void setProcessDomainObjectClass(Class<?> processDomainObjectClass)
           
 boolean supports(Class<?> clazz)
          This implementation supports only MethodSecurityInterceptor, because it queries the presented MethodInvocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.security.access.AccessDecisionVoter
supports, vote
 

Constructor Detail

AbstractAclVoter

public AbstractAclVoter()
Method Detail

getDomainObjectInstance

protected Object getDomainObjectInstance(Object secureObject)

getProcessDomainObjectClass

public Class<?> getProcessDomainObjectClass()

setProcessDomainObjectClass

public void setProcessDomainObjectClass(Class<?> processDomainObjectClass)

supports

public boolean supports(Class<?> clazz)
This implementation supports only MethodSecurityInterceptor, because it queries the presented MethodInvocation.

Specified by:
supports in interface AccessDecisionVoter
Parameters:
clazz - the secure object
Returns:
true if the secure object is MethodInvocation, false otherwise