portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: Custom user attributes in a layout decorator
Date Tue, 12 Sep 2006 19:12:09 GMT
O'Connell, Iain wrote:
> Hi folks,
> 
> I'm trying to figure out how to access custom user attributes that I set in
> the user admin portlet from a the header of a layout decorator and I've
> tried a few different possibilities but nothing seems to be working for me
> and I was hoping that somebody might have a pointer for me on where I can
> get this information if you've done this before.

 From a portlet, just use the portlet api:

Map userInfo = (Map)request.getAttribute(PortletRequest.USER_INFO);

If you want to access them via the jetspeed user manager component:

User user = userManager.getUser(userName);
user.getUserAttributes();


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Mime
View raw message