org.acegisecurity.vote
Class AbstractAclVoter

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

public abstract class AbstractAclVoter
extends java.lang.Object
implements AccessDecisionVoter

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

Version:
$Id: AbstractAclVoter.java 1754 2006-11-17 02:01:21Z benalex $
Author:
Ben Alex

Field Summary
 
Fields inherited from interface org.acegisecurity.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
 
Constructor Summary
AbstractAclVoter()
           
 
Method Summary
protected  java.lang.Object getDomainObjectInstance(java.lang.Object secureObject)
           
 java.lang.Class getProcessDomainObjectClass()
           
 void setProcessDomainObjectClass(java.lang.Class processDomainObjectClass)
           
 boolean supports(java.lang.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.acegisecurity.vote.AccessDecisionVoter
supports, vote
 

Constructor Detail

AbstractAclVoter

public AbstractAclVoter()
Method Detail

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


Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.