|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.spi.AbstractUserContext
public class AbstractUserContext
| Constructor Summary | |
|---|---|
AbstractUserContext()
|
|
AbstractUserContext(javax.servlet.http.HttpServletRequest clientRequest)
|
|
AbstractUserContext(java.lang.String id)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attrKey)
Returns an attribute related to the user identity. |
java.lang.String |
getId()
Returns the user id or null if none was provided. |
java.util.Map<java.lang.String,java.lang.String> |
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<java.util.Locale> |
getLocales()
Returns the client request locales or an empty list if no request was provided. |
void |
setAttribute(java.lang.String attrKey,
java.lang.Object attrValue)
Set an attribute related to the user identity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractUserContext(javax.servlet.http.HttpServletRequest clientRequest)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public AbstractUserContext(java.lang.String id)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic AbstractUserContext()
| Method Detail |
|---|
public java.lang.String getId()
getId in interface UserContextpublic java.util.Map<java.lang.String,java.lang.String> getInformations()
getInformations in interface UserContextorg.jboss.portal.common.p3p.P3PConstantspublic java.util.Locale getLocale()
Locale.ENGLISH if no request was provided.
getLocale in interface UserContextpublic java.util.List<java.util.Locale> getLocales()
getLocales in interface UserContext
public void setAttribute(java.lang.String attrKey,
java.lang.Object attrValue)
UserContext
setAttribute in interface UserContextattrKey - the attribute keyattrValue - the attribute valuepublic java.lang.Object getAttribute(java.lang.String attrKey)
UserContext
getAttribute in interface UserContextattrKey - the attribute key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||