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 void
addSession(SSession session)
void
cleanInvalidSessions()
void
deleteSessionsOfTenant(long tenantId, boolean keepTechnicalSessions)
SSession
getSession(long sessionId)
protected abstract java.util.Map<java.lang.Long,SSession>
getSessions()
protected SSession
putSession(SSession session, long id)
void
removeSession(long sessionId)
void
removeSessions()
void
updateSession(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:
addSession
in interfaceSessionProvider
- Throws:
SSessionAlreadyExistsException
-
removeSession
public void removeSession(long sessionId) throws SSessionNotFoundException
- Specified by:
removeSession
in interfaceSessionProvider
- Throws:
SSessionNotFoundException
-
getSession
public SSession getSession(long sessionId) throws SSessionNotFoundException
- Specified by:
getSession
in interfaceSessionProvider
- Throws:
SSessionNotFoundException
-
updateSession
public void updateSession(SSession session) throws SSessionNotFoundException
- Specified by:
updateSession
in interfaceSessionProvider
- Throws:
SSessionNotFoundException
-
cleanInvalidSessions
public void cleanInvalidSessions()
- Specified by:
cleanInvalidSessions
in interfaceSessionProvider
-
removeSessions
public void removeSessions()
- Specified by:
removeSessions
in interfaceSessionProvider
-
deleteSessionsOfTenant
public void deleteSessionsOfTenant(long tenantId, boolean keepTechnicalSessions)
- Specified by:
deleteSessionsOfTenant
in interfaceSessionProvider
-
-