public class

ExpressionBasedPreInvocationAdvice

extends Object
implements PreInvocationAuthorizationAdvice
java.lang.Object
   ↳ org.springframework.security.access.expression.method.ExpressionBasedPreInvocationAdvice

Class Overview

Method pre-invocation handling based on expressions.

Summary

Public Constructors
ExpressionBasedPreInvocationAdvice()
Public Methods
boolean before(Authentication authentication, 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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.access.prepost.PreInvocationAuthorizationAdvice

Public Constructors

public ExpressionBasedPreInvocationAdvice ()

Public Methods

public boolean before (Authentication authentication, 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.

Parameters
authentication the information on the principal on whose account the decision should be made
mi the method invocation being attempted
attr the attribute built from the @PreFilter and @PostFilter annotations.
Returns
  • true if authorised, false otherwise

public void setExpressionHandler (MethodSecurityExpressionHandler expressionHandler)