public class PlatformSessionServiceImpl extends Object implements org.bonitasoft.engine.platform.session.PlatformSessionService
| Constructor and Description |
|---|
PlatformSessionServiceImpl(org.bonitasoft.engine.platform.session.PlatformSessionProvider platformSessionProvider,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.platform.session.model.SPlatformSession |
createSession(String username) |
void |
deleteSession(long sessionId) |
long |
getDefaultSessionDuration() |
org.bonitasoft.engine.platform.session.model.SPlatformSession |
getSession(long sessionId) |
long |
getSessionsDuration() |
boolean |
isValid(long sessionId) |
void |
renewSession(long sessionId) |
void |
setSessionDuration(long duration) |
public PlatformSessionServiceImpl(org.bonitasoft.engine.platform.session.PlatformSessionProvider platformSessionProvider, org.bonitasoft.engine.log.technical.TechnicalLoggerService logger)
public org.bonitasoft.engine.platform.session.model.SPlatformSession createSession(String username) throws org.bonitasoft.engine.platform.session.SSessionException
createSession in interface org.bonitasoft.engine.platform.session.PlatformSessionServiceorg.bonitasoft.engine.platform.session.SSessionExceptionpublic void deleteSession(long sessionId)
throws org.bonitasoft.engine.platform.session.SSessionNotFoundException
deleteSession in interface org.bonitasoft.engine.platform.session.PlatformSessionServiceorg.bonitasoft.engine.platform.session.SSessionNotFoundExceptionpublic boolean isValid(long sessionId)
throws org.bonitasoft.engine.platform.session.SSessionNotFoundException
isValid in interface org.bonitasoft.engine.platform.session.PlatformSessionServiceorg.bonitasoft.engine.platform.session.SSessionNotFoundExceptionpublic org.bonitasoft.engine.platform.session.model.SPlatformSession getSession(long sessionId) throws org.bonitasoft.engine.platform.session.SSessionNotFoundException
getSession in interface org.bonitasoft.engine.platform.session.PlatformSessionServiceorg.bonitasoft.engine.platform.session.SSessionNotFoundExceptionpublic void setSessionDuration(long duration)
setSessionDuration in interface org.bonitasoft.engine.platform.session.PlatformSessionServicepublic long getDefaultSessionDuration()
getDefaultSessionDuration in interface org.bonitasoft.engine.platform.session.PlatformSessionServicepublic long getSessionsDuration()
getSessionsDuration in interface org.bonitasoft.engine.platform.session.PlatformSessionServicepublic void renewSession(long sessionId)
throws org.bonitasoft.engine.platform.session.SSessionException
renewSession in interface org.bonitasoft.engine.platform.session.PlatformSessionServiceorg.bonitasoft.engine.platform.session.SSessionExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.