The
UserInfoManager retrieve the Map that will be set as a
(PortletRequest.USER_INFO request attribute for a specific
portlet application
The portlet specification defines user info as follow (PLT 17):
Portlets can obtain an unmodifiable Map object containing the user attributes,
of user associated with the current request, from the request attributes.
The Map object can be retrieved using the USER_INFO constant defined in the
PortletRequest interface. If the request is done in the context of an
un-authenticated user, calls to the getAttribute method of the request
using the USER_INFO constant must return null. If the user is
authenticated and there are no user attributes available, the Map must
be an empty Map. The Map object must contain a String name value pair for each available user
attribute. The Map object should only contain user attributes that have been mapped
during deployment.
Portlets can obtain an unmodifiable Map object containing the user attributes, of user
associated with the current request, from the request attributes. The Map object can be
retrieved using the USER_INFO constant defined in the PortletRequest interface. If the
request is done in the context of an un-authenticated user, calls to the getAttribute
method of the request using the USER_INFO constant must return null. If the user is
authenticated and there are no user attributes available, the Map must be an empty Map.
The Map object must contain a String name value pair for each available user attribute.
The Map object should only contain user attributes that have been mapped during
deployment.
author: David Le Strat |