org.springframework.security.vote
Class AbstractAccessDecisionManager
java.lang.Object
   org.springframework.security.vote.AbstractAccessDecisionManager
org.springframework.security.vote.AbstractAccessDecisionManager
- All Implemented Interfaces: 
- InitializingBean, MessageSourceAware, AccessDecisionManager
- Direct Known Subclasses: 
- AffirmativeBased, ConsensusBased, UnanimousBased
- public abstract class AbstractAccessDecisionManager 
- extends Object- implements AccessDecisionManager, InitializingBean, MessageSourceAware
Abstract implementation of AccessDecisionManager.
 
 Handles configuration of a bean context defined list of
 AccessDecisionVoters and the access control behaviour if all voters
 abstain from voting (defaults to deny access).
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
messages
protected MessageSourceAccessor messages
AbstractAccessDecisionManager
public AbstractAccessDecisionManager()
afterPropertiesSet
public void afterPropertiesSet()
                        throws Exception
- 
- Specified by:
- afterPropertiesSetin interface- InitializingBean
 
- 
- Throws:
- Exception
 
checkAllowIfAllAbstainDecisions
protected final void checkAllowIfAllAbstainDecisions()
- 
 
- 
 
getDecisionVoters
public List getDecisionVoters()
- 
 
- 
 
isAllowIfAllAbstainDecisions
public boolean isAllowIfAllAbstainDecisions()
- 
 
- 
 
setAllowIfAllAbstainDecisions
public void setAllowIfAllAbstainDecisions(boolean allowIfAllAbstainDecisions)
- 
 
- 
 
setDecisionVoters
public void setDecisionVoters(List newList)
- 
 
- 
 
setMessageSource
public void setMessageSource(MessageSource messageSource)
- 
- Specified by:
- setMessageSourcein interface- MessageSourceAware
 
- 
 
supports
public boolean supports(ConfigAttribute attribute)
- Description copied from interface: AccessDecisionManager
- Indicates whether this AccessDecisionManageris able to process authorization requests
 presented with the passedConfigAttribute.This allows the
 AbstractSecurityInterceptorto check every configuration attribute can be consumed by the
 configuredAccessDecisionManagerand/orRunAsManagerand/orAfterInvocationManager.
 
 
- 
- Specified by:
- supportsin interface- AccessDecisionManager
 
- 
- Parameters:
- attribute- a configuration attribute that has been configured against the- AbstractSecurityInterceptor
- Returns:
- true if this AccessDecisionManagercan support the passed configuration attribute
 
supports
public boolean supports(Class clazz)
- Iterates through all AccessDecisionVoters and ensures each can support the presented class.
 
 If one or more voters cannot support the presented class,falseis returned.
 
- 
- Specified by:
- supportsin interface- AccessDecisionManager
 
- 
- Parameters:
- clazz- the type of secured object being presented
- Returns:
- true if this type is supported
 
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.