:) I don't know about Liferay, but a portal is also supposed to support the role mechanism outlined in J2EE. That is also in the JSR-168 api. So you may just be able to assign the roles to the authenticated user and check for those roles. The good thing about using this mechanism is that many portal's allow you to restrict access to portlets and whatnot based on role which means you don't have to check for basic access rights. In a "homegrown" system, you basically own everything.

Nebinger, David wrote:
I have a JSF application in a Liferay Portal rendered as portlet using MyFacesGenericPortlet class. I want to access user information that is provided by the portal.

I'm not sure what you're going after, but I'm using
request.getRemoteUser().  It returns the liferay user id for the logged
in user.

Rather than trying to hack my additional user info into liferay, I've
got a separate table keyed by liferay user id.  So the portlet gets the
remote user and then looks up the additional user info (or, if you need
the liferay stuff, you can use the liferay user id to get to it also).


Reply via email to