Class PostInvocationAdviceProvider
- java.lang.Object
- 
- org.springframework.security.access.prepost.PostInvocationAdviceProvider
 
- 
- All Implemented Interfaces:
- AfterInvocationProvider
 
 public class PostInvocationAdviceProvider extends java.lang.Object implements AfterInvocationProvider AfterInvocationProvider which delegates to aPostInvocationAuthorizationAdviceinstance passing it the PostInvocationAttribute created from @PostAuthorize and @PostFilter annotations.- Since:
- 3.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.apache.commons.logging.Loglogger
 - 
Constructor SummaryConstructors Constructor Description PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdecide(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> config, java.lang.Object returnedObject)booleansupports(java.lang.Class<?> clazz)Indicates whether theAfterInvocationProvideris able to provide "after invocation" processing for the indicated secured object type.booleansupports(ConfigAttribute attribute)Indicates whether thisAfterInvocationProvideris able to participate in a decision involving the passedConfigAttribute.
 
- 
- 
- 
Constructor Detail- 
PostInvocationAdviceProviderpublic PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice) 
 
- 
 - 
Method Detail- 
decidepublic java.lang.Object decide(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> config, java.lang.Object returnedObject) throws AccessDeniedException - Specified by:
- decidein interface- AfterInvocationProvider
- Throws:
- AccessDeniedException
 
 - 
supportspublic boolean supports(ConfigAttribute attribute) Description copied from interface:AfterInvocationProviderIndicates whether thisAfterInvocationProvideris able to participate in a decision involving the passedConfigAttribute.This allows the AbstractSecurityInterceptorto check every configuration attribute can be consumed by the configuredAccessDecisionManagerand/orRunAsManagerand/orAccessDecisionManager.- Specified by:
- supportsin interface- AfterInvocationProvider
- Parameters:
- attribute- a configuration attribute that has been configured against the- AbstractSecurityInterceptor
- Returns:
- true if this AfterInvocationProvidercan support the passed configuration attribute
 
 - 
supportspublic boolean supports(java.lang.Class<?> clazz) Description copied from interface:AfterInvocationProviderIndicates whether theAfterInvocationProvideris able to provide "after invocation" processing for the indicated secured object type.- Specified by:
- supportsin interface- AfterInvocationProvider
- Parameters:
- clazz- the class of secure object that is being queried
- Returns:
- true if the implementation can process the indicated class
 
 
- 
 
-