Hi Brad,
Thanks a lot, I find out that if I run the demo on Tomcat 5.5.23, I
could get those infomation,however for 5.5.26 and 6.x could not.
Best
Wishes
YP Lee
Brad Gardner 写道:
Taking a stab at this, so anyone feel free to correct me if I'm wrong. It
looks like you could get access to the RoleManager using something similar
to this:
RoleManager manager = (RoleManager)
getPortletContext().getAttribute(CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
Once you're there, the RoleManager has a method named getRolesForUser that
takes the username as an argument and returns a collection of the roles for
that user.
I'm relatively new at the portal development so don't quote me on this quite
yet :)
good luck!
On Fri, Apr 11, 2008 at 4:24 PM, Dan Olsen <[EMAIL PROTECTED]> wrote:
I am using Spring to develop portlets. I would like to be able to find out
what roles a user has so that I can display the appropriate information in
the portlet. What is the best way to get access to all the users
information?
- Dan
--
此致
敬礼
黎云芃