org.springframework.security.access.expression.method
Class ExpressionBasedPreInvocationAdvice
java.lang.Object
org.springframework.security.access.expression.method.ExpressionBasedPreInvocationAdvice
- All Implemented Interfaces:
- AopInfrastructureBean, PreInvocationAuthorizationAdvice
public class ExpressionBasedPreInvocationAdvice
- extends Object
- implements PreInvocationAuthorizationAdvice
Method pre-invocation handling based on expressions.
- Since:
- Version:
- $Id: ExpressionBasedPreInvocationAdvice.java 3723 2009-06-15 23:41:20Z ltaylor $
- Author:
- Luke Taylor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionBasedPreInvocationAdvice
public ExpressionBasedPreInvocationAdvice()
before
public boolean before(Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi,
PreInvocationAttribute attr)
- Description copied from interface:
PreInvocationAuthorizationAdvice
- The "before" advice which should be executed to perform any filtering necessary and to decide whether
the method call is authorised.
- Specified by:
before
in interface PreInvocationAuthorizationAdvice
- Parameters:
authentication
- 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.
- Returns:
- true if authorised, false otherwise
setExpressionHandler
public void setExpressionHandler(MethodSecurityExpressionHandler expressionHandler)
Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.