Package ome.services.sessions
Interface SessionProvider
-
- All Known Implementing Classes:
SessionProviderInDb
,SessionProviderInMemory
,SessionProviderWrapper
public interface SessionProvider
ProvidesSessionManagerImpl
with wrapper around session storage backends.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeCloseSession(java.lang.String uuid)
Loads a session directly, sets its "closed" value and immediately saves it.ome.model.meta.Session
executeInternalSession(java.lang.String uuid, ome.model.meta.Session session)
long
executeNextSessionId()
Added as an attempt to cure ticket:1176ome.model.meta.Session
executeUpdate(ome.system.ServiceFactory sf, ome.model.meta.Session session, java.lang.String uuid, long userId, java.lang.Long sudoerId)
ome.model.meta.Session
findSessionById(long id, ome.system.ServiceFactory sf)
Retrieves a session by ID.ome.model.meta.Session
findSessionById(long id, org.hibernate.Session session)
Retrieves a session by ID.java.lang.Long
findSessionIdByUuid(java.lang.String uuid)
java.lang.Long
findSessionIdByUuid(java.lang.String uuid, ome.system.ServiceFactory sf)
-
-
-
Method Detail
-
executeUpdate
ome.model.meta.Session executeUpdate(ome.system.ServiceFactory sf, ome.model.meta.Session session, java.lang.String uuid, long userId, java.lang.Long sudoerId)
-
executeCloseSession
void executeCloseSession(java.lang.String uuid)
Loads a session directly, sets its "closed" value and immediately saves it. This method is not called directly from theSessionManager.close(String)
andSessionManager.closeAll()
methods since there are other non-explicit ways for a session to be destroyed, such as a timeout withinSessionCache
and so this is called fromSessionManagerImpl.onApplicationEvent(org.springframework.context.ApplicationEvent)
when aDestroySessionMessage
is received.
-
executeInternalSession
ome.model.meta.Session executeInternalSession(java.lang.String uuid, ome.model.meta.Session session)
-
executeNextSessionId
long executeNextSessionId()
Added as an attempt to cure ticket:1176
-
findSessionById
ome.model.meta.Session findSessionById(long id, org.hibernate.Session session)
Retrieves a session by ID.- Parameters:
id
- session ID to lookupsession
- active Hibernate session- Returns:
- See above.
-
findSessionById
ome.model.meta.Session findSessionById(long id, ome.system.ServiceFactory sf)
Retrieves a session by ID.- Parameters:
id
- session ID to lookupsf
- active service factory- Returns:
- See above.
-
findSessionIdByUuid
java.lang.Long findSessionIdByUuid(java.lang.String uuid, ome.system.ServiceFactory sf)
-
findSessionIdByUuid
java.lang.Long findSessionIdByUuid(java.lang.String uuid)
-
-