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.
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getUserInfoMap(String appName,
RequestContext context)
Provide the user info map of user attributes for a given portlet application.
|
Map<String,String> getUserInfoMap(String appName, RequestContext context)
Provide the user info map of user attributes for a given portlet application.
appName
- The portlet application namecontext
- The request context.Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.