colorfool
11-17-2008, 10:26 AM
I am trying to show different charts in a dashboard depending on which roles the logged in user belongs to. How can I get a list of the user's roles?
I have played around with the session (userSession.getAttribute("SECURITY_PRINCIPAL")) and tried my luck in many classes... I suppose I might need UserRoleListService? Anyhow, I am not used to Java and I am having a hard time finding my way. I would sure appreciate it if someone can give me the two lines of code that do the trick : )
All the best,
Axel
I have played around with the session (userSession.getAttribute("SECURITY_PRINCIPAL")) and tried my luck in many classes... I suppose I might need UserRoleListService? Anyhow, I am not used to Java and I am having a hard time finding my way. I would sure appreciate it if someone can give me the two lines of code that do the trick : )
All the best,
Axel