public interface SessionProvider
SessionManagerImpl
with wrapper around session storage backends.Modifier and Type | Method and Description |
---|---|
void |
executeCloseSession(java.lang.String uuid)
Loads a session directly, sets its "closed" value and immediately
saves it.
|
Session |
executeInternalSession(java.lang.String uuid,
Session session) |
long |
executeNextSessionId()
Added as an attempt to cure ticket:1176
|
Session |
executeUpdate(ServiceFactory sf,
Session session,
java.lang.String uuid,
long userId,
java.lang.Long sudoerId) |
Session |
findSessionById(long id,
ServiceFactory sf)
Retrieves a session by ID.
|
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,
ServiceFactory sf) |
Session executeUpdate(ServiceFactory sf, Session session, java.lang.String uuid, long userId, java.lang.Long sudoerId)
void executeCloseSession(java.lang.String uuid)
SessionManager.close(String)
and SessionManager.closeAll()
methods
since there are other non-explicit ways for a session to be destroyed, such
as a timeout within SessionCache
and so this is called from
SessionManagerImpl.onApplicationEvent(org.springframework.context.ApplicationEvent)
when a
DestroySessionMessage
is received.long executeNextSessionId()
Session findSessionById(long id, org.hibernate.Session session)
id
- session ID to lookupsession
- active Hibernate sessionSession findSessionById(long id, ServiceFactory sf)
id
- session ID to lookupsf
- active service factoryjava.lang.Long findSessionIdByUuid(java.lang.String uuid, ServiceFactory sf)
java.lang.Long findSessionIdByUuid(java.lang.String uuid)
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.