public class SessionServiceImpl extends Object implements SessionService
SYSTEM| Constructor and Description |
|---|
SessionServiceImpl(SessionProvider sessionProvider,
String applicationName,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanInvalidSessions() |
org.bonitasoft.engine.session.model.SSession |
createSession(long tenantId,
long userId,
String userName,
boolean isTechnicalUser) |
org.bonitasoft.engine.session.model.SSession |
createSession(long tenantId,
String userName) |
void |
deleteSession(long sessionId) |
void |
deleteSessions() |
void |
deleteSessionsOfTenant(long tenantId) |
void |
deleteSessionsOfTenantExceptTechnicalUser(long tenantId) |
long |
getDefaultSessionDuration() |
long |
getLoggedUserFromSession(org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor) |
org.bonitasoft.engine.session.model.SSession |
getSession(long sessionId) |
long |
getSessionDuration() |
boolean |
isValid(long sessionId) |
void |
renewSession(long sessionId) |
void |
setSessionDuration(long duration) |
public SessionServiceImpl(SessionProvider sessionProvider, String applicationName, org.bonitasoft.engine.log.technical.TechnicalLoggerService logger)
public org.bonitasoft.engine.session.model.SSession createSession(long tenantId, String userName) throws SSessionException
createSession in interface SessionServiceSSessionExceptionpublic org.bonitasoft.engine.session.model.SSession createSession(long tenantId, long userId, String userName, boolean isTechnicalUser) throws SSessionException
createSession in interface SessionServiceSSessionExceptionpublic void deleteSession(long sessionId)
throws SSessionNotFoundException
deleteSession in interface SessionServiceSSessionNotFoundExceptionpublic boolean isValid(long sessionId)
throws SSessionNotFoundException
isValid in interface SessionServiceSSessionNotFoundExceptionpublic org.bonitasoft.engine.session.model.SSession getSession(long sessionId) throws SSessionNotFoundException
getSession in interface SessionServiceSSessionNotFoundExceptionpublic long getLoggedUserFromSession(org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor)
getLoggedUserFromSession in interface SessionServicepublic void setSessionDuration(long duration)
setSessionDuration in interface SessionServicepublic long getDefaultSessionDuration()
getDefaultSessionDuration in interface SessionServicepublic long getSessionDuration()
getSessionDuration in interface SessionServicepublic void renewSession(long sessionId)
throws SSessionException
renewSession in interface SessionServiceSSessionExceptionpublic void cleanInvalidSessions()
cleanInvalidSessions in interface SessionServicepublic void deleteSessionsOfTenant(long tenantId)
deleteSessionsOfTenant in interface SessionServicepublic void deleteSessionsOfTenantExceptTechnicalUser(long tenantId)
deleteSessionsOfTenantExceptTechnicalUser in interface SessionServicepublic void deleteSessions()
deleteSessions in interface SessionServiceCopyright © 2017 Bonitasoft S.A.. All rights reserved.