|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.infoglue.cms.applications.common.Session
Session wrapper to ease getting things out of the Session. Abstract it so that I can work well with a Map (for testing, or ActionContext.getSession()) or an HttpSession, but not rely on an HttpSession.
| Constructor Summary | |
Session()
|
|
Session(javax.servlet.http.HttpSession httpSession)
|
|
Session(java.util.Map session)
|
|
| Method Summary | |
InfoGluePrincipal |
getInfoGluePrincipal()
Returns the InfoGlue principal associated with the current user and session. |
java.util.Locale |
getLocale()
Returns the locale used for the session. |
SystemUser |
getUser()
Returns the user of the session. |
void |
setInfoGluePrincipal(InfoGluePrincipal p)
Sets the InfoGlue principal associated with the current user and session. |
void |
setLocale(java.util.Locale locale)
Sets the locale used for the session. |
void |
setSystemUser(SystemUser systemUser)
Sets the user of the session. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Session()
public Session(java.util.Map session)
public Session(javax.servlet.http.HttpSession httpSession)
| Method Detail |
public final java.util.Locale getLocale()
public final void setLocale(java.util.Locale locale)
locale - the locale to use for the session.public final SystemUser getUser()
public final void setSystemUser(SystemUser systemUser)
systemUser - the user of the session.public InfoGluePrincipal getInfoGluePrincipal()
public void setInfoGluePrincipal(InfoGluePrincipal p)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||