Package org.gatein.pc.portlet.impl.spi
Class AbstractUserContext
java.lang.Object
org.gatein.pc.portlet.impl.spi.AbstractUserContext
- All Implemented Interfaces:
org.gatein.pc.api.spi.UserContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attrKey) getId()Returns the user id or null if none was provided.Returns an immutable empty map.Returns the client request locale orLocale.ENGLISHif no request was provided.Returns the client request locales or an empty list if no request was provided.voidsetAttribute(String attrKey, Object attrValue)
-
Constructor Details
-
AbstractUserContext
public AbstractUserContext(jakarta.servlet.http.HttpServletRequest clientRequest) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
AbstractUserContext
- Throws:
IllegalArgumentException
-
AbstractUserContext
public AbstractUserContext()
-
-
Method Details
-
getId
Returns the user id or null if none was provided.- Specified by:
getIdin interfaceorg.gatein.pc.api.spi.UserContext
-
getInformations
Returns an immutable empty map.- Specified by:
getInformationsin interfaceorg.gatein.pc.api.spi.UserContext
-
getLocale
Returns the client request locale orLocale.ENGLISHif no request was provided.- Specified by:
getLocalein interfaceorg.gatein.pc.api.spi.UserContext
-
getLocales
Returns the client request locales or an empty list if no request was provided.- Specified by:
getLocalesin interfaceorg.gatein.pc.api.spi.UserContext
-
setAttribute
- Specified by:
setAttributein interfaceorg.gatein.pc.api.spi.UserContext
-
getAttribute
- Specified by:
getAttributein interfaceorg.gatein.pc.api.spi.UserContext
-