public class ExpressionBasedPreInvocationAdvice extends Object implements PreInvocationAuthorizationAdvice
| Constructor and Description |
|---|
ExpressionBasedPreInvocationAdvice() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
before(Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi,
PreInvocationAttribute attr)
The "before" advice which should be executed to perform any filtering necessary and to decide whether
the method call is authorised.
|
void |
setExpressionHandler(MethodSecurityExpressionHandler expressionHandler) |
public boolean before(Authentication authentication, org.aopalliance.intercept.MethodInvocation mi, PreInvocationAttribute attr)
PreInvocationAuthorizationAdvicebefore in interface PreInvocationAuthorizationAdviceauthentication - the information on the principal on whose account the decision should be mademi - the method invocation being attemptedattr - the attribute built from the @PreFilter and @PostFilter annotations.public void setExpressionHandler(MethodSecurityExpressionHandler expressionHandler)