| org.acegisecurity.concurrent.SessionRegistry
All known Subclasses: org.acegisecurity.concurrent.SessionRegistryImpl,
SessionRegistry | public interface SessionRegistry (Code) | | Maintains a registry of SessionInformation instances.
author: Ben Alex version: $Id: SessionRegistry.java 1784 2007-02-24 21:00:24Z luke_t $ |
getAllSessions | SessionInformation[] getAllSessions(Object principal, boolean includeExpiredSessions)(Code) | | Obtains all the known sessions for the specified principal. Sessions that have been destroyed are not
returned. Sessions that have expired may be returned, depending on the passed argument.
Parameters: principal - to locate sessions for (should never be null ) Parameters: includeExpiredSessions - if true , the returned sessions will also include those that haveexpired for the principal the matching sessions for this principal, or null if none were found |
getSessionInformation | SessionInformation getSessionInformation(String sessionId)(Code) | | Obtains the session information for the specified sessionId . Even expired sessions are
returned (although destroyed sessions are never returned).
Parameters: sessionId - to lookup (should never be null ) the session information, or null if not found |
refreshLastRequest | void refreshLastRequest(String sessionId)(Code) | | Updates the given sessionId so its last request time is equal to the present date and time.
Silently returns if the given sessionId cannot be found or the session is marked to expire.
Parameters: sessionId - for which to update the date and time of the last request (should never be null ) |
registerNewSession | void registerNewSession(String sessionId, Object principal) throws SessionAlreadyUsedException(Code) | | Registers a new session for the specified principal. The newly registered session will not be marked for
expiration.
Parameters: sessionId - to associate with the principal (should never be null ) Parameters: principal - to associate with the session (should never be null ) throws: SessionAlreadyUsedException - DOCUMENT ME! |
removeSessionInformation | void removeSessionInformation(String sessionId)(Code) | | Deletes all the session information being maintained for the specified sessionId . If the
sessionId is not found, the method gracefully returns.
Parameters: sessionId - to delete information for (should never be null ) |
|
|