org.springframework.security.access.vote
Class AbstractAclVoter
java.lang.Object
org.springframework.security.access.vote.AbstractAclVoter
- All Implemented Interfaces:
- AccessDecisionVoter
- Direct Known Subclasses:
- AclEntryVoter, LabelBasedAclVoter
public abstract class AbstractAclVoter
- extends java.lang.Object
- implements AccessDecisionVoter
Provides helper methods for writing domain object ACL voters.
Not bound to any particular ACL system.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAclVoter
public AbstractAclVoter()
getDomainObjectInstance
protected java.lang.Object getDomainObjectInstance(java.lang.Object secureObject)
getProcessDomainObjectClass
public java.lang.Class<?> getProcessDomainObjectClass()
setProcessDomainObjectClass
public void setProcessDomainObjectClass(java.lang.Class<?> processDomainObjectClass)
supports
public boolean supports(java.lang.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