public class ESSessions extends Object
| Constructor and Description |
|---|
ESSessions()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ESAuthenticationInformation authenticationInformation)
Add the information of the given
ESAuthenticationInformation to the session map. |
ESUser |
getRawUser(ESSessionId sessionId)
Returns the user associated with the given session ID.
|
void |
isValid(ESSessionId sessionId)
Checks whether the given session ID belongs to a known session.
|
void |
remove(ESSessionId sessionId)
Removes the session with the given ID from the sessions map.
|
ESSessionId |
resolveSessionById(String sessionId)
Resolves a given Session ID string to a valid
SessionId object. |
ESOrgUnitId |
resolveToOrgUnitId(ESSessionId sessionId)
Returns the user associated with the given session ID and checks if the
user has an active session.
|
ESUser |
resolveUser(ESSessionId sessionId)
Returns the user associated with the given session ID and checks if the
user has an active session.
|
public void add(ESAuthenticationInformation authenticationInformation)
ESAuthenticationInformation to the session map.authenticationInformation - the AuthenticationInformation containing the valid session IDpublic void isValid(ESSessionId sessionId) throws SessionTimedOutException
sessionId - the ID of the session to be checkedSessionTimedOutException - in case the session is unknownpublic ESUser resolveUser(ESSessionId sessionId) throws AccessControlException
sessionId - the session ID of the user who should be retrievedAccessControlException - in case the session active session check failspublic ESOrgUnitId resolveToOrgUnitId(ESSessionId sessionId) throws AccessControlException
sessionId - the session ID of the user who should be retrievedAccessControlException - in case the session active session check failspublic ESUser getRawUser(ESSessionId sessionId)
sessionId - the session ID of the user who should be retrievedpublic void remove(ESSessionId sessionId)
sessionId - the ID of the session to be removedpublic ESSessionId resolveSessionById(String sessionId)
SessionId object.sessionId - the session ID to be resolvednull, if no session
with the given session ID existsCopyright © 2017. All rights reserved.