|
RichFaces Photoalbum 4.3.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.photoalbum.manager.LoggedUserTracker
@ApplicationScoped public class LoggedUserTracker
Special wrapper for Map, that contains pairs(userId, sessionId) to track what sessionId is actual by specified user. Used to determine need to expire user's session, that session's id not equal to stored in this map.
| Constructor Summary | |
|---|---|
LoggedUserTracker()
|
|
| Method Summary | |
|---|---|
void |
addUserId(Long id,
String sessionId)
Add user id and session id to store after each successfull authentication. |
boolean |
containsUser(Long id,
String sessionId)
Checks if in the store contained user with specified user id and session id |
boolean |
containsUserId(Long id)
Checks if in the store contained user with specified user id |
void |
removeUserId(Long id)
Remove user id from store after each logout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggedUserTracker()
| Method Detail |
|---|
public void addUserId(Long id,
String sessionId)
id - - user id to addsessionId - - sessionIdpublic void removeUserId(Long id)
id - - user id to remove
public boolean containsUser(Long id,
String sessionId)
id - - user id to checksessionId - - session id to check
public boolean containsUserId(Long id)
id - - user id to check
|
RichFaces Photoalbum 4.3.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||