« Return to Thread: user information roles and groups

Re: user information roles and groups

by Laurent Laudinet :: Rate this Message:

Reply to Author | View in Thread

Hi,

First you get the user login :

String login = portletRequest.getRemoteUser();

Then you ask the OrganizationService about it

OrganizationService aOrgService = (OrganizationService)
                PortalContainer.getInstance().getComponentInstanceOfType
(OrganizationService.class);
UserHandler aUsrHdler = aOrgService.getUserHandler();
User myUser = aUsrHdler.findUserByName(login);

Best regards,


On Tue, 2007-05-22 at 15:58 +0200, jeremie garcia wrote:

> hi community ,
>
> I am currently writting a portlet, the main interface will be adapted
> according to the user.
> consequently I need to know how to get information from the current user,
> I need to know how exoplatform manages user's information , user's
> groups,etc..
>
> does someone have informations or any direction to look at?
>
> thanks
>
> plain text document attachment (message-footer.txt)
> --
> You receive this message as a subscriber of the exoplatform@... mailing list.
> To unsubscribe: mailto:exoplatform-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Laurent Laudinet
Open Source Software Architect - ThereSIS
THALES
RD 128;Palaiseau Cedex 91767
Phone : 33169415905
laurent.laudinet@...




--
You receive this message as a subscriber of the exoplatform@... mailing list.
To unsubscribe: mailto:exoplatform-unsubscribe@...
For general help: mailto:sympa@...?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

 « Return to Thread: user information roles and groups