Class ThreadLocalSessionAccessor
java.lang.Object
org.bonitasoft.engine.sessionaccessor.ThreadLocalSessionAccessor
- All Implemented Interfaces:
ReadSessionAccessor,SessionAccessor
Store and access the current session id of the current thread
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlongGet current session idvoidsetSessionId(long sessionId)
-
Constructor Details
-
ThreadLocalSessionAccessor
public ThreadLocalSessionAccessor()
-
-
Method Details
-
getSessionId
Description copied from interface:ReadSessionAccessorGet current session id- Specified by:
getSessionIdin interfaceReadSessionAccessor- Returns:
- the identifier of current session
- Throws:
SessionIdNotSetException- if no session exists for the given id, throw exception
-
setSessionId
public void setSessionId(long sessionId) - Specified by:
setSessionIdin interfaceSessionAccessor
-
deleteSessionId
public void deleteSessionId()- Specified by:
deleteSessionIdin interfaceSessionAccessor
-