| java.lang.Object org.sakaibrary.xserver.session.MetasearchSessionManager
MetasearchSessionManager | public class MetasearchSessionManager implements java.io.Serializable(Code) | | MetasearchSessionManager is a Singleton class designed for session
management in metasearching applications. It makes use of ehcache
and MetasearchSession objects indexed by globally unique identifiers
to hold all session state for individual sessions.
author: gbhatnag |
getInstance | public static synchronized MetasearchSessionManager getInstance()(Code) | | Gets the Singleton instance of MetasearchSessionManager
an instance of MetasearchSessionManager |
getMetasearchSession | public MetasearchSession getMetasearchSession(String guid)(Code) | | Gets the MetasearchSession object out of the MetasearchSessionManager
cache indexed by the guid.
Parameters: guid - a globally unique identifier String the MetasearchSession object if it exists and has not expired,otherwise, null |
putMetasearchSession | public void putMetasearchSession(String guid, MetasearchSession ms)(Code) | | Puts the MetasearchSession object into the MetasearchSessionManager
cache indexed by the guid. If the guid already exists, the
MetasearchSession object is updated with the given object.
Parameters: guid - a globally unique identifier String Parameters: ms - the MetasearchSession object to be put/updated in theMetasearchSessionManager cache. |
|
|