public abstract class AbstractSessionService extends Object implements SessionService
| Constructor and Description |
|---|
AbstractSessionService() |
| Modifier and Type | Method and Description |
|---|---|
void |
endSession(String sessionId)
Mark a session as complete.
|
protected abstract SessionData |
findSessionData(String sessionId)
Find session data for the given ID
|
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
|
protected abstract String |
newSession(SessionData sessionData)
Persist session data.
|
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.
|
protected abstract boolean |
updateSessionData(String sessionId,
com.mongodb.DBObject data)
Update session's client-provided data matching the ID.
|
protected abstract void |
updateSessionEndTime(String sessionId,
long endTime)
Update session end time.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getActiveSessionsCount, getAllSessionsCount, getCompletedSessionsCountprotected abstract String newSession(SessionData sessionData)
protected abstract SessionData findSessionData(String sessionId)
protected abstract void updateSessionEndTime(String sessionId, long endTime)
protected abstract boolean updateSessionData(String sessionId, com.mongodb.DBObject data)
public String startSession(com.mongodb.DBObject data)
SessionServicestartSession in interface SessionServicedata - a map of session data to be stored (null allowed)public void endSession(String sessionId)
SessionServiceendSession in interface SessionServicesessionId - the unique session IDpublic void setSessionData(String sessionId, com.mongodb.DBObject data)
SessionServicesetSessionData in interface SessionServicesessionId - the unique session IDdata - any persistable session data (null allowed)public com.mongodb.DBObject getSessionData(String sessionId)
getSessionData in interface SessionServicesessionId - the unique session IDpublic long getSessionStartTime(String sessionId)
SessionServicegetSessionStartTime in interface SessionServicesessionId - the unique session IDpublic long getSessionEndTime(String sessionId)
SessionServicegetSessionEndTime in interface SessionServicesessionId - the unique session IDpublic long getSessionElapsedTime(String sessionId)
SessionServicegetSessionElapsedTime in interface SessionServicesessionId - the unique session IDCopyright © 2005–2018 Alfresco Software. All rights reserved.