|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodSecurityExpressionHandler
Facade which isolates Spring Security's requirements for evaluation method-security expressions from the implementation of the underlying expression objects.
| Method Summary | |
|---|---|
org.springframework.expression.EvaluationContext |
createEvaluationContext(Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi)
Provides an evaluation context in which to evaluate security expressions for a method invocation. |
java.lang.Object |
filter(java.lang.Object filterTarget,
org.springframework.expression.Expression filterExpression,
org.springframework.expression.EvaluationContext ctx)
Filters a target collection or array. |
org.springframework.expression.ExpressionParser |
getExpressionParser()
|
void |
setReturnObject(java.lang.Object returnObject,
org.springframework.expression.EvaluationContext ctx)
Used to inform the expression system of the return object for the given evaluation context. |
| Method Detail |
|---|
org.springframework.expression.ExpressionParser getExpressionParser()
org.springframework.expression.EvaluationContext createEvaluationContext(Authentication authentication,
org.aopalliance.intercept.MethodInvocation mi)
java.lang.Object filter(java.lang.Object filterTarget,
org.springframework.expression.Expression filterExpression,
org.springframework.expression.EvaluationContext ctx)
filterTarget - the array or collection to be filtered.filterExpression - the expression which should be used as the filter condition. If it returns false on
evaluation, the object will be removed from the returned collectionctx - the current evaluation context (as created through a call to
createEvaluationContext(Authentication, MethodInvocation)
void setReturnObject(java.lang.Object returnObject,
org.springframework.expression.EvaluationContext ctx)
returnObject - the return object valuectx - the context within which the object should be set (as created through a call to
createEvaluationContext(Authentication, MethodInvocation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||