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

UserContextSupport - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.portlet.support.spi
Class UserContextSupport

java.lang.Object
  extended byorg.jboss.portal.portlet.support.spi.UserContextSupport
All Implemented Interfaces:
UserContext
Direct Known Subclasses:
SimpleUserContext

public class UserContextSupport
extends java.lang.Object
implements UserContext


Constructor Summary
UserContextSupport()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserContextSupport

public UserContextSupport()
Method Detail

getId

public java.lang.String getId()
Description copied from interface: UserContext
Retrieves the user id or null if it is not known.

Specified by:
getId in interface UserContext
Returns:
the user id

getInformations

public java.util.Map getInformations()
Description copied from interface: UserContext
The user profile information keyed by P3PConstants

Specified by:
getInformations in interface UserContext
Returns:
a map containing user profile informaton
See Also:
P3PConstants

getLocale

public java.util.Locale getLocale()
Description copied from interface: UserContext
Return the user locale.

Specified by:
getLocale in interface UserContext
Returns:
the user locale.

getLocales

public java.util.List getLocales()
Description copied from interface: UserContext
Retrieves the locales that the user is willing to receive information in.

Specified by:
getLocales in interface UserContext
Returns:
the locales ordered according to user preference (preferred first).