|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.riotfamily.riot.security.session.UserHolder
public class UserHolder
Class that holds a reference to a RiotUser. An instance of this class is stored in the HttpSession. Additionally each instance is placed in a static set which allows us to access/update all currently logged in users.
The class also implements the HttpSessionBindingListener interface and persists the SessionMetaData as soon as the session expires.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
SessionMetaData |
getSessionMetaData()
|
RiotUser |
getUser()
|
String |
getUserId()
|
int |
hashCode()
|
protected RiotUser |
reloadUser(UserLookupAuthenticationService lookupService)
Reloads the transient user object. |
void |
valueBound(HttpSessionBindingEvent event)
Adds itself to the static set of users. |
void |
valueUnbound(HttpSessionBindingEvent event)
Removes itself from the static set of users and persists the SessionMetaData. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public RiotUser getUser()
public String getUserId()
public SessionMetaData getSessionMetaData()
public void valueBound(HttpSessionBindingEvent event)
valueBound in interface HttpSessionBindingListenerHttpSessionBindingListener.valueBound(HttpSessionBindingEvent)public void valueUnbound(HttpSessionBindingEvent event)
valueUnbound in interface HttpSessionBindingListenerHttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)protected RiotUser reloadUser(UserLookupAuthenticationService lookupService)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||