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

UserContextConverter.WSRPMappedUserContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.wsrp
Class UserContextConverter.WSRPMappedUserContext

java.lang.Object
  extended byorg.jboss.portal.wsrp.UserContextConverter.WSRPMappedUserContext
All Implemented Interfaces:
UserContext
Enclosing class:
UserContextConverter

static class UserContextConverter.WSRPMappedUserContext
extends java.lang.Object
implements UserContext

Builds a Portal UserContext from a WSRP org.jboss.portal.wsrp.core.UserContext.

Since:
2.4 (May 8, 2006)
Author:
Chris Laprun

Field Summary
private  java.lang.String[] desiredLocales
           
private  java.lang.String id
           
private  java.util.Map infos
           
private  java.util.Locale locale
           
 
Constructor Summary
UserContextConverter.WSRPMappedUserContext(org.jboss.portal.wsrp.core.UserContext userContext, java.lang.String[] desiredLocales, java.lang.String preferredLocale)
           
 
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.
private  void populateContactInfo(Contact contact, boolean isBusiness)
           
private  void populateTelephoneInfo(TelephoneNum telephoneNum, java.lang.String prefix, boolean isBusiness)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

infos

private java.util.Map infos

desiredLocales

private java.lang.String[] desiredLocales

locale

private java.util.Locale locale

id

private java.lang.String id
Constructor Detail

UserContextConverter.WSRPMappedUserContext

public UserContextConverter.WSRPMappedUserContext(org.jboss.portal.wsrp.core.UserContext userContext,
                                                  java.lang.String[] desiredLocales,
                                                  java.lang.String preferredLocale)
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

populateContactInfo

private void populateContactInfo(Contact contact,
                                 boolean isBusiness)

populateTelephoneInfo

private void populateTelephoneInfo(TelephoneNum telephoneNum,
                                   java.lang.String prefix,
                                   boolean isBusiness)

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).