public abstract class AbstractAccessDecisionManager extends Object implements AccessDecisionManager, InitializingBean, MessageSourceAware
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).
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected MessageSourceAccessor |
messages |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAccessDecisionManager() |
protected |
AbstractAccessDecisionManager(List<AccessDecisionVoter> decisionVoters) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
checkAllowIfAllAbstainDecisions() |
List<AccessDecisionVoter> |
getDecisionVoters() |
boolean |
isAllowIfAllAbstainDecisions() |
void |
setAllowIfAllAbstainDecisions(boolean allowIfAllAbstainDecisions) |
void |
setDecisionVoters(List<AccessDecisionVoter> newList)
Deprecated.
Use constructor
|
void |
setMessageSource(MessageSource messageSource) |
boolean |
supports(Class<?> clazz)
Iterates through all
AccessDecisionVoters and ensures each can support the presented class. |
boolean |
supports(ConfigAttribute attribute)
Indicates whether this
AccessDecisionManager is able to process authorization requests
presented with the passed ConfigAttribute. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecideprotected final org.apache.commons.logging.Log logger
protected MessageSourceAccessor messages
protected AbstractAccessDecisionManager()
protected AbstractAccessDecisionManager(List<AccessDecisionVoter> decisionVoters)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionprotected final void checkAllowIfAllAbstainDecisions()
public List<AccessDecisionVoter> getDecisionVoters()
public boolean isAllowIfAllAbstainDecisions()
public void setAllowIfAllAbstainDecisions(boolean allowIfAllAbstainDecisions)
@Deprecated public void setDecisionVoters(List<AccessDecisionVoter> newList)
public void setMessageSource(MessageSource messageSource)
setMessageSource in interface MessageSourceAwarepublic boolean supports(ConfigAttribute attribute)
AccessDecisionManagerAccessDecisionManager is able to process authorization requests
presented with the passed ConfigAttribute.This allows the
AbstractSecurityInterceptor to check every configuration attribute can be consumed by the
configured AccessDecisionManager and/or RunAsManager and/or
AfterInvocationManager.
supports in interface AccessDecisionManagerattribute - a configuration attribute that has been configured against the
AbstractSecurityInterceptorAccessDecisionManager can support the passed configuration attributepublic boolean supports(Class<?> clazz)
AccessDecisionVoters and ensures each can support the presented class.
If one or more voters cannot support the presented class, false is returned.
supports in interface AccessDecisionManagerclazz - the type of secured object being presented