| org.josso.gateway.session.service.store.SessionStore
All known Subclasses: org.josso.gateway.session.service.store.AbstractSessionStore,
SessionStore | public interface SessionStore (Code) | | Represents a resource to store sessions.
Implementations define the specific persistence mechanism to store sessions.
author: Sebastian Gonzalez Oyuela version: $Id: SessionStore.java 508 2008-02-18 13:32:29Z sgonzalez $ |
Method Summary | |
void | clear() Remove all Sessions from this Store. | int | getSize() Return the number of Sessions present in this Store. | String[] | keys() Return an array containing the session identifiers of all Sessions
currently saved in this Store. | BaseSession | load(String id) Load and return the BaseSession associated with the specified session
identifier from this Store, without removing it. | BaseSession[] | loadAll() Return an array of all BaseSessions in this store. | BaseSession[] | loadByLastAccessTime(Date time) | BaseSession[] | loadByUsername(String name) Load and return the BaseSession associated with the specified username
from this Store, without removing it. | BaseSession[] | loadByValid(boolean valid) Load and return the BaseSessions whose valid property is equals to the valid argument. | void | remove(String id) Remove the BaseSession with the specified session identifier from
this Store, if present. | void | save(BaseSession session) Save the specified BaseSession into this Store. |
keys | String[] keys() throws SSOSessionException(Code) | | Return an array containing the session identifiers of all Sessions
currently saved in this Store. If there are no such Sessions, a
zero-length array is returned.
|
load | BaseSession load(String id) throws SSOSessionException(Code) | | Load and return the BaseSession associated with the specified session
identifier from this Store, without removing it. If there is no
such stored BaseSession, return null .
Parameters: id - BaseSession identifier of the session to load |
loadByUsername | BaseSession[] loadByUsername(String name) throws SSOSessionException(Code) | | Load and return the BaseSession associated with the specified username
from this Store, without removing it. If there is no
such stored BaseSession, return null .
Parameters: name - username of the session to load |
remove | void remove(String id) throws SSOSessionException(Code) | | Remove the BaseSession with the specified session identifier from
this Store, if present. If no such BaseSession is present, this method
takes no action.
Parameters: id - BaseSession identifier of the BaseSession to be removed |
save | void save(BaseSession session) throws SSOSessionException(Code) | | Save the specified BaseSession into this Store. Any previously saved
information for the associated session identifier is replaced.
Parameters: session - BaseSession to be saved |
|
|