Package com.aquima.web.sessionmanager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildSession
(String parentSessionId, com.blueriq.component.api.IAquimaSession session) void
addSession
(com.blueriq.component.api.IAquimaSession aquimaSession) void
void
closeSession
(String aquimaSessionId) void
destroy()
void
flush()
List<com.blueriq.component.api.IAquimaSession>
getChildSessions
(String sessionId) List<com.blueriq.component.api.IAquimaSession>
getChildSessions
(String sessionId, String pageName) com.blueriq.component.api.IAquimaSession
getRootSession
(String currentSessionId) com.blueriq.component.api.IAquimaSession
getSession
(String aquimaSessionId) com.blueriq.component.api.IAquimaSession
getSession
(String aquimaSessionId, com.blueriq.component.api.FlushMode flushMode) long
boolean
hasSession
(String aquimaSessionId) void
void
updateSession
(com.blueriq.component.api.IAquimaSession aquimaSession) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.blueriq.component.api.IAquimaSessionsMap
terminateSession
-
Constructor Details
-
SingleSessionManager
public SingleSessionManager()
-
-
Method Details
-
getSessionTimeoutMillis
public long getSessionTimeoutMillis()- Specified by:
getSessionTimeoutMillis
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
hasSession
- Specified by:
hasSession
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
addSession
public void addSession(com.blueriq.component.api.IAquimaSession aquimaSession) - Specified by:
addSession
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.blueriq.component.api.IAquimaSessionsMap
-
closeSession
public void closeSession(String aquimaSessionId) throws com.blueriq.component.api.exception.UnknownSessionException - Specified by:
closeSession
in interfacecom.blueriq.component.api.IAquimaSessionsMap
- Throws:
com.blueriq.component.api.exception.UnknownSessionException
-
cleanIdleSessions
public void cleanIdleSessions()- Specified by:
cleanIdleSessions
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
keepAlive
public void keepAlive(String aquimaSessionId) throws com.blueriq.component.api.exception.UnknownSessionException - Specified by:
keepAlive
in interfacecom.blueriq.component.api.IAquimaSessionsMap
- Throws:
com.blueriq.component.api.exception.UnknownSessionException
-
getAvailableSessionIds
- Specified by:
getAvailableSessionIds
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
flush
public void flush()- Specified by:
flush
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
addChildSession
public void addChildSession(String parentSessionId, com.blueriq.component.api.IAquimaSession session) - Specified by:
addChildSession
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
getMainSessionIds
- Specified by:
getMainSessionIds
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
getChildSessions
- Specified by:
getChildSessions
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
getChildSessions
public List<com.blueriq.component.api.IAquimaSession> getChildSessions(String sessionId, String pageName) - Specified by:
getChildSessions
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-
getRootSession
- Specified by:
getRootSession
in interfacecom.blueriq.component.api.IAquimaSessionsMap
-