public class PostInvocationAdviceProvider extends Object implements AfterInvocationProvider
PostInvocationAuthorizationAdvice instance passing it the
PostInvocationAttribute created from @PostAuthorize and @PostFilter
annotations.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decide(Authentication authentication,
Object object,
Collection<ConfigAttribute> config,
Object returnedObject) |
boolean |
supports(Class<?> clazz)
Indicates whether the
AfterInvocationProvider is able to provide
"after invocation" processing for the indicated secured object type. |
boolean |
supports(ConfigAttribute attribute)
Indicates whether this
AfterInvocationProvider is able to participate
in a decision involving the passed ConfigAttribute. |
public PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice)
public Object decide(Authentication authentication, Object object, Collection<ConfigAttribute> config, Object returnedObject) throws AccessDeniedException
decide in interface AfterInvocationProviderAccessDeniedExceptionpublic boolean supports(ConfigAttribute attribute)
AfterInvocationProviderAfterInvocationProvider is able to participate
in a decision involving the passed ConfigAttribute.
This allows the AbstractSecurityInterceptor to check every
configuration attribute can be consumed by the configured
AccessDecisionManager and/or RunAsManager and/or
AccessDecisionManager.
supports in interface AfterInvocationProviderattribute - a configuration attribute that has been configured against the
AbstractSecurityInterceptorAfterInvocationProvider can support the passed
configuration attributepublic boolean supports(Class<?> clazz)
AfterInvocationProviderAfterInvocationProvider is able to provide
"after invocation" processing for the indicated secured object type.supports in interface AfterInvocationProviderclazz - the class of secure object that is being queried