@ApplicationScoped public class LoggedUserTracker extends Object
| Constructor and Description |
|---|
LoggedUserTracker() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void addUserId(Long id, String sessionId)
id - - user id to addsessionId - - sessionIdpublic void removeUserId(Long id)
id - - user id to removepublic boolean containsUser(Long id, String sessionId)
id - - user id to checksessionId - - session id to checkpublic boolean containsUserId(Long id)
id - - user id to checkCopyright © 2014. All Rights Reserved.