org.apache.jetspeed.userinfo
Interface UserInfoManager


public interface UserInfoManager

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

Method Summary
 Map getUserInfoMap(org.apache.pluto.om.common.ObjectID oid, RequestContext context)
          Provide the user info map of user attributes for a given portlet application.
 

Method Detail

getUserInfoMap

Map getUserInfoMap(org.apache.pluto.om.common.ObjectID oid,
                   RequestContext context)

Provide the user info map of user attributes for a given portlet application.

Parameters:
oid - The portlet application object id.
context - The request context.
Returns:
The PortletRequest.USER_INFO map.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.