I was trying to figure out a way to get list of all preauthorize annotations from a spring container
Assume I have something like below.
@PreAuthorize("hasPermission(null, 'opetussuunnitelma', 'LUONTI1')")
@PreAuthorize("hasPermission(null, 'opetussuunnitelma', 'LUONTI2')")
@PreAuthorize("hasPermission(null, 'opetussuunnitelma', 'LUONTI3')")
> I need to get that string(hasPermission(null, 'opetussuunnitelma',
> 'LUONTI2')) or at least List<Map> (x=null,y='opetussuunnitelma',
> z='LUONTI1')
Is there any way I could accomplish this, as I have n number of such annotations and I need to parse all those annotation strings and do something with that.