| java.lang.Object com.lutris.appserver.server.sessionEnhydra.BasicSessionUserTable
All known Subclasses: com.lutris.appserver.server.sessionEnhydra.PagedSessionUserTable,
BasicSessionUserTable | class BasicSessionUserTable implements StandardSessionUserTable(Code) | | Table used by StandardSessionManager to cross reference User
objects and sessions. This table does not hold references to the
user and session objects. Instead it only cross-references the
session keys and user names. An underlying assumption is that the
user name can be used as a unique reference to the user.
N.B. It is assumed that this class is only used by StandardSessionManager
and that it is responsible for providing high level locks instead of
synchronizing
version: $Revision: 1.2 $ author: Mark Diekhans author: Kyle Clark |
Method Summary | |
public void | add(String sessionKey, User user) Add a session key to the user name of the session xref table. | protected void | debug(int level, String msg) Prints debug information under Logger.DEBUG. | public Enumeration | getSessionKeys(User user) Returns the session keys associated with a particular user.
Parameters: user - The user object to check for. | public int | numSessions(User user) Get the number of sessions for a user.
Parameters: user - The user object to check for. | public void | remove(String sessionKey, User user) Remove a session from the user to session mapping table. | public void | remove(String sessionKey) Removes all references to a session from the user session table. | public void | shutdown() Shutdown this session user table as required. |
BasicSessionUserTable | public BasicSessionUserTable(Config config)(Code) | | Creates an instance of this table. The config options
are ignored.
Parameters: config - configuration options for this table. |
add | public void add(String sessionKey, User user)(Code) | | Add a session key to the user name of the session xref table.
Parameters: session - The session key. Parameters: user - the user to associated with the session key. |
debug | protected void debug(int level, String msg)(Code) | | Prints debug information under Logger.DEBUG.
Parameters: level - the debug level. Parameters: msg - the message to print. |
getSessionKeys | public Enumeration getSessionKeys(User user)(Code) | | Returns the session keys associated with a particular user.
Parameters: user - The user object to check for. An enumeration of the session keys associatedwith the user. |
numSessions | public int numSessions(User user)(Code) | | Get the number of sessions for a user.
Parameters: user - The user object to check for. The count of the number of sessions associated with thisuser. |
remove | public void remove(String sessionKey, User user)(Code) | | Remove a session from the user to session mapping table.
If the session is not it the table, it is ignored.
Parameters: sessionKey - The session key, with the user alreadyfilled in. Parameters: user - the user associated with the session. |
remove | public void remove(String sessionKey)(Code) | | Removes all references to a session from the user session table.
Parameters: sessionKey - The session key, with the user alreadyfilled in. |
shutdown | public void shutdown()(Code) | | Shutdown this session user table as required. The session
user table should not be used after this method has been called
|
|
|