Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.portlet.impl.spi
Class AbstractUserContext

    java.lang.Object
      org.jboss.portal.portlet.impl.spi.AbstractUserContext

All Implemented Interfaces:
  UserContext

    public class AbstractUserContext

extends java.lang.Object
implements UserContext

Version:
  $Revision: 1.1 $
Author:
  Julien Viet

Constructor Summary
`AbstractUserContext()`
`AbstractUserContext(javax.servlet.http.HttpServletRequest clientRequest)`
`AbstractUserContext(java.lang.String id)`

Method Summary
`java.lang.String` | `getId()` Returns the user id or null if none was provided.
`java.util.Map` | `getInformations()` Returns an immutable empty map.
`java.util.Locale` | `getLocale()` Returns the client request locale or `Locale.ENGLISH` if no request was provided.
`java.util.List` | `getLocales()` Returns the client request locales or an empty list if no request was provided.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractUserContext

    public AbstractUserContext(javax.servlet.http.HttpServletRequest clientRequest)
                        throws java.lang.IllegalArgumentException

Throws:
  `java.lang.IllegalArgumentException`

### AbstractUserContext

    public AbstractUserContext(java.lang.String id)
                        throws java.lang.IllegalArgumentException

Throws:
  `java.lang.IllegalArgumentException`

### AbstractUserContext

    public AbstractUserContext()

Method Detail

### getId

    public java.lang.String getId()

  Returns the user id or null if none was provided.

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

### getInformations

    public java.util.Map getInformations()

  Returns an immutable empty map.

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

### getLocale

    public java.util.Locale getLocale()

  Returns the client request locale or `Locale.ENGLISH` if no request was provided.

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

### getLocales

    public java.util.List getLocales()

  Returns the client request locales or an empty list if no request was provided.

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD