|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to define the session storage implementation provider.
Method Summary | |
CmsSessionInfo |
get(CmsUUID sessionId)
Returns the stored session info object with the given id. |
java.util.List |
getAll()
Returns all current stored session info objects. |
java.util.List |
getAllOfUser(CmsUUID userId)
Returns all current stored session info objects for the given user. |
int |
getSize()
Returns the current number of stored session info objects. |
void |
initialize()
Initializes the storage. |
CmsSessionInfo |
put(CmsSessionInfo sessionInfo)
Stores the given session info object. |
CmsSessionInfo |
remove(CmsUUID sessionId)
Removes the stored session info object identified by the given session id. |
void |
shutdown()
Last cleanup possibility. |
void |
validate()
Validates all session info objects removing any session that have became invalidated. |
Method Detail |
public void validate()
public CmsSessionInfo get(CmsUUID sessionId)
sessionId
- the id to lookup
null
if not foundpublic java.util.List getAll()
public java.util.List getAllOfUser(CmsUUID userId)
userId
- the id of the user to retrieve the session info objects for
public int getSize()
public void initialize() throws CmsInitException
CmsInitException
- if initialization failspublic CmsSessionInfo put(CmsSessionInfo sessionInfo)
sessionInfo
- the session info object to be stored
null
if nonepublic CmsSessionInfo remove(CmsUUID sessionId)
sessionId
- the id that identifies the stored session info object to remove
null
if nonepublic void shutdown() throws java.lang.Exception
java.lang.Exception
- if something goes wrong
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |