Class AbstractUserContext

java.lang.Object
org.gatein.pc.portlet.impl.spi.AbstractUserContext
All Implemented Interfaces:
org.gatein.pc.api.spi.UserContext

public class AbstractUserContext extends Object implements org.gatein.pc.api.spi.UserContext
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Returns the user id or null if none was provided.
      Specified by:
      getId in interface org.gatein.pc.api.spi.UserContext
    • getInformations

      public Map<String,String> getInformations()
      Returns an immutable empty map.
      Specified by:
      getInformations in interface org.gatein.pc.api.spi.UserContext
    • getLocale

      public Locale getLocale()
      Returns the client request locale or Locale.ENGLISH if no request was provided.
      Specified by:
      getLocale in interface org.gatein.pc.api.spi.UserContext
    • getLocales

      public List<Locale> getLocales()
      Returns the client request locales or an empty list if no request was provided.
      Specified by:
      getLocales in interface org.gatein.pc.api.spi.UserContext
    • setAttribute

      public void setAttribute(String attrKey, Object attrValue)
      Specified by:
      setAttribute in interface org.gatein.pc.api.spi.UserContext
    • getAttribute

      public Object getAttribute(String attrKey)
      Specified by:
      getAttribute in interface org.gatein.pc.api.spi.UserContext