org.apache.jetspeed.userinfo
Interface UserInfoManager

All Superinterfaces:
org.apache.pluto.container.UserInfoService

public interface UserInfoManager
extends org.apache.pluto.container.UserInfoService

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
 java.util.Map<java.lang.String,java.lang.String> getUserInfoMap(java.lang.String appName, RequestContext context)
          Provide the user info map of user attributes for a given portlet application.
 
Methods inherited from interface org.apache.pluto.container.UserInfoService
getUserInfo
 

Method Detail

getUserInfoMap

java.util.Map<java.lang.String,java.lang.String> getUserInfoMap(java.lang.String appName,
                                                                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-2011 The Apache Software Foundation. All Rights Reserved.