|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.server.auth.ESSessions
public class ESSessions
Utility class for handling session management.
Constructor Summary | |
---|---|
ESSessions()
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESSessions()
Method Detail |
---|
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 checked
SessionTimedOutException
- in case the session is unknownpublic ESUser resolveUser(ESSessionId sessionId) throws AccessControlException
sessionId
- the session ID of the user who should be retrieved
AccessControlException
- in case the session active session check failspublic ESOrgUnitId resolveToOrgUnitId(ESSessionId sessionId) throws AccessControlException
sessionId
- the session ID of the user who should be retrieved
AccessControlException
- in case the session active session check failspublic ESUser getRawUser(ESSessionId sessionId)
sessionId
- the session ID of the user who should be retrieved
public 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 resolved
null
, if no session
with the given session ID exists
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |