Class SingleSessionManager

java.lang.Object
com.aquima.web.sessionmanager.SingleSessionManager
All Implemented Interfaces:
com.blueriq.component.api.IAquimaSessionsMap, Serializable, org.springframework.beans.factory.DisposableBean

public class SingleSessionManager extends Object implements com.blueriq.component.api.IAquimaSessionsMap, Serializable, org.springframework.beans.factory.DisposableBean
Class to allow only one aquima session (per http session)
Since:
8.1
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • SingleSessionManager

      public SingleSessionManager()
  • Method Details

    • getSessionTimeoutMillis

      public long getSessionTimeoutMillis()
      Specified by:
      getSessionTimeoutMillis in interface com.blueriq.component.api.IAquimaSessionsMap
    • hasSession

      public boolean hasSession(String aquimaSessionId)
      Specified by:
      hasSession in interface com.blueriq.component.api.IAquimaSessionsMap
    • addSession

      public void addSession(com.blueriq.component.api.IAquimaSession aquimaSession)
      Specified by:
      addSession in interface com.blueriq.component.api.IAquimaSessionsMap
    • getSession

      public com.blueriq.component.api.IAquimaSession getSession(String aquimaSessionId) throws com.blueriq.component.api.exception.UnknownSessionException
      Specified by:
      getSession in interface com.blueriq.component.api.IAquimaSessionsMap
      Throws:
      com.blueriq.component.api.exception.UnknownSessionException
    • getSession

      public com.blueriq.component.api.IAquimaSession getSession(String aquimaSessionId, com.blueriq.component.api.FlushMode flushMode) throws com.blueriq.component.api.exception.UnknownSessionException
      Specified by:
      getSession in interface com.blueriq.component.api.IAquimaSessionsMap
      Throws:
      com.blueriq.component.api.exception.UnknownSessionException
    • updateSession

      public void updateSession(com.blueriq.component.api.IAquimaSession aquimaSession)
      Specified by:
      updateSession in interface com.blueriq.component.api.IAquimaSessionsMap
    • closeSession

      public void closeSession(String aquimaSessionId) throws com.blueriq.component.api.exception.UnknownSessionException
      Specified by:
      closeSession in interface com.blueriq.component.api.IAquimaSessionsMap
      Throws:
      com.blueriq.component.api.exception.UnknownSessionException
    • cleanIdleSessions

      public void cleanIdleSessions()
      Specified by:
      cleanIdleSessions in interface com.blueriq.component.api.IAquimaSessionsMap
    • keepAlive

      public void keepAlive(String aquimaSessionId) throws com.blueriq.component.api.exception.UnknownSessionException
      Specified by:
      keepAlive in interface com.blueriq.component.api.IAquimaSessionsMap
      Throws:
      com.blueriq.component.api.exception.UnknownSessionException
    • getAvailableSessionIds

      public List<String> getAvailableSessionIds()
      Specified by:
      getAvailableSessionIds in interface com.blueriq.component.api.IAquimaSessionsMap
    • flush

      public void flush()
      Specified by:
      flush in interface com.blueriq.component.api.IAquimaSessionsMap
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • addChildSession

      public void addChildSession(String parentSessionId, com.blueriq.component.api.IAquimaSession session)
      Specified by:
      addChildSession in interface com.blueriq.component.api.IAquimaSessionsMap
    • getMainSessionIds

      public List<String> getMainSessionIds()
      Specified by:
      getMainSessionIds in interface com.blueriq.component.api.IAquimaSessionsMap
    • getChildSessions

      public List<com.blueriq.component.api.IAquimaSession> getChildSessions(String sessionId)
      Specified by:
      getChildSessions in interface com.blueriq.component.api.IAquimaSessionsMap
    • getChildSessions

      public List<com.blueriq.component.api.IAquimaSession> getChildSessions(String sessionId, String pageName)
      Specified by:
      getChildSessions in interface com.blueriq.component.api.IAquimaSessionsMap
    • getRootSession

      public com.blueriq.component.api.IAquimaSession getRootSession(String currentSessionId)
      Specified by:
      getRootSession in interface com.blueriq.component.api.IAquimaSessionsMap