public interface PlatformSessionService
| Modifier and Type | Method and Description |
|---|---|
SPlatformSession |
createSession(java.lang.String username)
Create a new session for the given user;
|
void |
deleteSession(long sessionId)
Delete a session having the given id
|
long |
getDefaultSessionDuration()
Retrieve the default sessions's duration
|
SPlatformSession |
getSession(long sessionId)
Retrieve a session by its id
|
long |
getSessionsDuration()
Retrieve the duration of new created sessions.
|
boolean |
isValid(long sessionId)
Verify if a session is valid
|
void |
renewSession(long sessionId)
Update the expiration and the last update dates of the session.
|
void |
setSessionDuration(long duration)
Define how long new created sessions will be valid.
|
SPlatformSession createSession(java.lang.String username) throws SSessionException
username - user nameSSessionException - if some error arrives while creating the sessionvoid deleteSession(long sessionId)
throws SSessionNotFoundException
sessionId - the session's idSSessionNotFoundException - if no session exists for the given idboolean isValid(long sessionId)
throws SSessionNotFoundException
sessionId - the session's idSSessionNotFoundExceptionSPlatformSession getSession(long sessionId) throws SSessionNotFoundException
sessionId - the session's idSSessionNotFoundException - if no session exists for the given idvoid setSessionDuration(long duration)
duration - session's durationlong getDefaultSessionDuration()
long getSessionsDuration()
void renewSession(long sessionId)
throws SSessionException
sessionId - the session's idSSessionException