站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

UserContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.spi
Interface UserContext

All Known Implementing Classes:
ControllerUserContext, UserContextConverter.WSRPMappedUserContext, UserContextSupport

public interface UserContext

The user context valid during the scope of a single request.

Version:
$Revision: 5448 $
Author:
Julien Viet

Method Summary
 java.lang.String getId()
          Retrieves the user id or null if it is not known.
 java.util.Map getInformations()
          The user profile information keyed by P3PConstants
 java.util.Locale getLocale()
          Return the user locale.
 java.util.List getLocales()
          Retrieves the locales that the user is willing to receive information in.
 

Method Detail

getId

public java.lang.String getId()
Retrieves the user id or null if it is not known.

Returns:
the user id

getInformations

public java.util.Map getInformations()
The user profile information keyed by P3PConstants

Returns:
a map containing user profile informaton
See Also:
P3PConstants

getLocale

public java.util.Locale getLocale()
Return the user locale.

Returns:
the user locale.

getLocales

public java.util.List getLocales()
Retrieves the locales that the user is willing to receive information in.

Returns:
the locales ordered according to user preference (preferred first).