I am trying to get user information in my portlet (JSR 286 portlet deployed in JBoss GateIn), for example
Map userInfo = (Map) request.getAttribute(PortletRequest.USER_INFO);
but I got nothing. My .xml portlet has the following options:
<user-attribute>
<description>User Name</description>
<name>user.name</name>
</user-attribute>
<user-attribute>
<description>User Id</description>
<name>user.id</name>
</user-attribute>
GateIn provides a PortalRequestContext that gives the getRemoteUser () method to enter the user ID. This identifier can then be used by OrganizationService to obtain the User, but it all depends on GateIn, and not according to the JSR286 standard. JSR 286 claims that user-related attributes can be retrieved from PortletRequest.USER_INFO as described above. Please guide.
Thanks in advance!
Ps: Similar posts in the JBoss community http://community.jboss.org/message/425683#425683