views:

1225

answers:

1

Hello, I'm attempting to develop a portlet for liferay. How can I get access to the username and password (and other data liferay has?) of the user that's currently logged in. I'd also like to be able to execute some code when users change their password.

Thank you! Joshua

A: 

You can get the User ID by calling this method in the PortletRequest object. This is defined by JSR-168 therefore it's cross-portal compatible.

Once you have the ID you can fetch the additional informations by calling Liferay-specific services This is something not covered by Portlet API specification, so it locks you to the Liferay.

Jaromir Hamala