public class DefaultUserSessionRegistry extends Object implements UserSessionRegistry
UserSessionRegistry
.Constructor and Description |
---|
DefaultUserSessionRegistry() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getSessionIds(String user)
Return the active session id's for the given user.
|
void |
registerSessionId(String user,
String sessionId)
Register an active session id for the given user.
|
void |
unregisterSessionId(String userName,
String sessionId)
Unregister the session id for a user.
|
public Set<String> getSessionIds(String user)
UserSessionRegistry
getSessionIds
in interface UserSessionRegistry
user
- the userpublic void registerSessionId(String user, String sessionId)
UserSessionRegistry
registerSessionId
in interface UserSessionRegistry
user
- the usersessionId
- the session idpublic void unregisterSessionId(String userName, String sessionId)
UserSessionRegistry
unregisterSessionId
in interface UserSessionRegistry
userName
- the usersessionId
- the session id