Class SessionProviderInDb

  • All Implemented Interfaces:
    SessionProvider, ReadOnlyStatus.IsAware

    public class SessionProviderInDb
    extends java.lang.Object
    implements SessionProvider, ReadOnlyStatus.IsAware
    Is for ISession a cache and will be kept there in sync? OR Factors out the logic from ISession and SessionManagerI Therefore either called directly, or via synchronous messages. Uses the name of a Principal as the key to the session. We may need to limit user names to prevent this. (Strictly alphanumeric) Receives notifications as an ApplicationListener, which should be used to keep the Session instances up-to-date.
    Since:
    3.0-Beta3
    • Method Summary

      All Methods Instance Methods Concrete 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:1176
      ome.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)  
      boolean isReadOnly​(ReadOnlyStatus readOnly)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait