public interface SessionService
SessionData.| Modifier and Type | Method and Description |
|---|---|
boolean |
clear()
Clears all recorded data
|
void |
endSession(String sessionId)
Mark a session as complete.
|
long |
getActiveSessionsCount()
Returns a number of active sessions, i.e.
|
long |
getAllSessionsCount()
Returns a number of sessions, active or otherwise
|
long |
getCompletedSessionsCount()
Returns a number of completed sessions, i.e.
|
com.mongodb.DBObject |
getSessionData(String sessionId) |
long |
getSessionElapsedTime(String sessionId)
Get the session elapsed time
|
long |
getSessionEndTime(String sessionId)
Get the session end time
|
long |
getSessionStartTime(String sessionId)
Get the session start time
|
void |
setSessionData(String sessionId,
com.mongodb.DBObject data)
Update or set the persistable data associated with a session
|
String |
startSession(com.mongodb.DBObject data)
Starts a new session, persisting the given data and giving back a unique session ID.
|
String startSession(com.mongodb.DBObject data)
data - a map of session data to be stored (null allowed)void endSession(String sessionId)
sessionId - the unique session IDIllegalStateException - if the session has already been endedRuntimeException - if the session ID is invalidvoid setSessionData(String sessionId, com.mongodb.DBObject data)
sessionId - the unique session IDdata - any persistable session data (null allowed)RuntimeException - if the session ID is invalidcom.mongodb.DBObject getSessionData(String sessionId)
sessionId - the unique session IDRuntimeException - if the session ID is invalidlong getSessionStartTime(String sessionId)
sessionId - the unique session IDRuntimeException - if the session ID is invalidlong getSessionEndTime(String sessionId)
sessionId - the unique session IDRuntimeException - if the session ID is invalidlong getSessionElapsedTime(String sessionId)
sessionId - the unique session IDRuntimeException - if the session ID is invalidlong getActiveSessionsCount()
long getCompletedSessionsCount()
long getAllSessionsCount()
boolean clear()
Copyright © 2005–2018 Alfresco Software. All rights reserved.