Class AfterInvocationProviderManager
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean,- AfterInvocationManager
AfterInvocationManager.
 
 Handles configuration of a bean context defined list of AfterInvocationProvider
 s.
 
 Every AfterInvocationProvider will be polled when the
 decide(Authentication, Object, Collection, Object) 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).
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.LogDeprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.decide(Authentication authentication, Object object, Collection<ConfigAttribute> config, Object returnedObject) Deprecated.Given the details of a secure object invocation including its returnedObject, make an access control decision or optionally modify the returnedObject.Deprecated.voidsetProviders(List<?> newList) Deprecated.booleanDeprecated.Iterates through allAfterInvocationProviders and ensures each can support the presented class.booleansupports(ConfigAttribute attribute) Deprecated.Indicates whether thisAfterInvocationManageris able to process "after invocation" requests presented with the passedConfigAttribute.
- 
Field Details- 
loggerprotected static final org.apache.commons.logging.Log loggerDeprecated.
 
- 
- 
Constructor Details- 
AfterInvocationProviderManagerpublic AfterInvocationProviderManager()Deprecated.
 
- 
- 
Method Details- 
afterPropertiesSetpublic void afterPropertiesSet()Deprecated.- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
- 
decidepublic Object decide(Authentication authentication, Object object, Collection<ConfigAttribute> config, Object returnedObject) throws AccessDeniedException Deprecated.Description copied from interface:AfterInvocationManagerGiven the details of a secure object invocation including its returnedObject, make an access control decision or optionally modify the returnedObject.- Specified by:
- decidein interface- AfterInvocationManager
- Parameters:
- authentication- the caller that invoked the method
- object- the secured object that was called
- config- the configuration attributes associated with the secured object that was invoked
- returnedObject- the- Objectthat was returned from the secure object invocation
- Returns:
- the Objectthat will ultimately be returned to the caller (if an implementation does not wish to modify the object to be returned to the caller, the implementation should simply return the same object it was passed by thereturnedObjectmethod argument)
- Throws:
- AccessDeniedException- if access is denied
 
- 
getProvidersDeprecated.
- 
setProvidersDeprecated.
- 
supportsDeprecated.Description copied from interface:AfterInvocationManagerIndicates whether thisAfterInvocationManageris able to process "after invocation" 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- AfterInvocationManager
- Parameters:
- attribute- a configuration attribute that has been configured against the- AbstractSecurityInterceptor
- Returns:
- true if this AfterInvocationManagercan support the passed configuration attribute
 
- 
supportsDeprecated.Iterates through allAfterInvocationProviders and ensures each can support the presented class.If one or more providers cannot support the presented class, falseis returned.- Specified by:
- supportsin interface- AfterInvocationManager
- Parameters:
- clazz- the secure object class being queries
- Returns:
- if the AfterInvocationProviderManagercan support the secure object class, which requires every one of itsAfterInvocationProviders to support the secure object class
 
 
- 
AuthorizationManager