Class AbstractSessionProvider
- java.lang.Object
-
- org.bonitasoft.engine.session.impl.AbstractSessionProvider
-
- All Implemented Interfaces:
SessionProvider
- Direct Known Subclasses:
SessionProviderImpl
public abstract class AbstractSessionProvider extends java.lang.Object implements SessionProvider
- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description AbstractSessionProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddSession(SSession session)voidcleanInvalidSessions()voiddeleteSessionsOfTenant(long tenantId, boolean keepTechnicalSessions)SSessiongetSession(long sessionId)protected abstract java.util.Map<java.lang.Long,SSession>getSessions()protected SSessionputSession(SSession session, long id)voidremoveSession(long sessionId)voidremoveSessions()voidupdateSession(SSession session)
-
-
-
Method Detail
-
getSessions
protected abstract java.util.Map<java.lang.Long,SSession> getSessions()
-
addSession
public void addSession(SSession session) throws SSessionAlreadyExistsException
- Specified by:
addSessionin interfaceSessionProvider- Throws:
SSessionAlreadyExistsException
-
removeSession
public void removeSession(long sessionId) throws SSessionNotFoundException- Specified by:
removeSessionin interfaceSessionProvider- Throws:
SSessionNotFoundException
-
getSession
public SSession getSession(long sessionId) throws SSessionNotFoundException
- Specified by:
getSessionin interfaceSessionProvider- Throws:
SSessionNotFoundException
-
updateSession
public void updateSession(SSession session) throws SSessionNotFoundException
- Specified by:
updateSessionin interfaceSessionProvider- Throws:
SSessionNotFoundException
-
cleanInvalidSessions
public void cleanInvalidSessions()
- Specified by:
cleanInvalidSessionsin interfaceSessionProvider
-
removeSessions
public void removeSessions()
- Specified by:
removeSessionsin interfaceSessionProvider
-
deleteSessionsOfTenant
public void deleteSessionsOfTenant(long tenantId, boolean keepTechnicalSessions)- Specified by:
deleteSessionsOfTenantin interfaceSessionProvider
-
-