Add PostFilter support for Optionals #10109
Labels
in: core
An issue in spring-security-core
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Expected Behavior
Add functionality to use
@PostFilter
onOptional
return types.Current Behavior
Currently filtering is supported for collections, arrays, maps and streams. To add support for optional filtering, you have to create a custom handler extending the
DefaultMethodSecurityExpressionHandler
, add an implementation for optionals filtering (through stream filtering) and then register this new handler. This is very cumbersome.The text was updated successfully, but these errors were encountered: