November 2017
Intermediate to advanced
542 pages
14h 24m
English
Method SpEL expressions also provide a few additional properties that can be used through the o.s.s.access.expression.method.MethodSecurityExpressionRoot class:
|
Expression |
Description |
|
target |
Refers to this or the current object being secured. |
|
returnObject |
Refers to the object returned by the annotated method. |
|
filterObject |
Can be used on a collection or array in conjunction with @PreFilter or @PostFilter, to only include the elements that match the expression. The filterObject object represents the loop variable of the collection or array. |
|
#<methodArg> |
Any argument to a method can be referenced by prefixing the argument name with #. For example, a method argument named |
Read now
Unlock full access