Let's say I am in a business method SomeRandomService.doOperationXyz(int someparam). The method does not get user's authorization or any security -related data as parameters.
Can I access current user's roles somehow? Does acegi offer some interface for this purpose? I understand current authorization is bound to ThreadLocal, so this should be possible?
What I want to achieve is
I already posted threadCode:class SomeRandomService { public void doOperationXyz(int someparam) { doBasicStuff(); if (current user has role "ADMIN") { doAdminStuff(); }
http://forum.springframework.org/showthread.php?t=46733
but I guess my question was too vague or something...


