java.lang.Object
org.acegisecurity.afterinvocation.AfterInvocationProviderManager
- All Implemented Interfaces:
- org.acegisecurity.AfterInvocationManager, org.springframework.beans.factory.InitializingBean
- public class AfterInvocationProviderManager
- extends java.lang.Object
- implements org.acegisecurity.AfterInvocationManager, org.springframework.beans.factory.InitializingBean
Provider-based implementation of org.acegisecurity.AfterInvocationManager.
Handles configuration of a bean context defined list of AfterInvocationProviders.
Every AfterInvocationProvider will be polled when the decide(Authentication, Object, ConfigAttributeDefinition, Object) 55 method
is called. The Object returned from each provider will be
presented to the successive provider for processing. This means each
provider must ensure they return the Object, even if
they are not interested in the "after invocation" decision (perhaps as the
secure object invocation did not include a configuration attribute a given
provider is configured to respond to).
- Version:
- $Id: AfterInvocationProviderManager.java,v 1.3 2005/11/17 00:55:56 benalex Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
providers
private java.util.List providers
AfterInvocationProviderManager
public AfterInvocationProviderManager()
setProviders
public void setProviders(java.util.List newList)
getProviders
public java.util.List getProviders()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Description copied from interface:
org.springframework.beans.factory.InitializingBean
- Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only
possible when all bean properties have been set and to throw an
exception in the event of misconfiguration.
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
decide
public java.lang.Object decide(org.acegisecurity.Authentication authentication,
java.lang.Object object,
ConfigAttributeDefinition config,
java.lang.Object returnedObject)
throws org.acegisecurity.AccessDeniedException
- Description copied from interface:
org.acegisecurity.AfterInvocationManager
- Given the details of a secure object invocation including its returned
Object, make an access control decision or optionally
modify the returned Object.
- Specified by:
decide in interface org.acegisecurity.AfterInvocationManager
supports
public boolean supports(ConfigAttribute attribute)
- Description copied from interface:
org.acegisecurity.AfterInvocationManager
- Indicates whether this
AfterInvocationManager is able to
process "after invocation" 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.
- Specified by:
supports in interface org.acegisecurity.AfterInvocationManager
checkIfValidList
private void checkIfValidList(java.util.List listToCheck)