public interface I_CmsSessionStorageProvider
| 限定符和类型 | 方法和说明 |
|---|---|
CmsSessionInfo |
get(CmsUUID sessionId)
Returns the stored session info object with the given id.
|
java.util.List<CmsSessionInfo> |
getAll()
Returns all current stored session info objects.
|
java.util.List<CmsSessionInfo> |
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.
|
void validate()
CmsSessionInfo get(CmsUUID sessionId)
sessionId - the id to lookupnull if not foundjava.util.List<CmsSessionInfo> getAll()
java.util.List<CmsSessionInfo> getAllOfUser(CmsUUID userId)
userId - the id of the user to retrieve the session info objects forint getSize()
void initialize()
throws CmsInitException
CmsInitException - if initialization failsCmsSessionInfo put(CmsSessionInfo sessionInfo)
sessionInfo - the session info object to be storednull if noneCmsSessionInfo remove(CmsUUID sessionId)
sessionId - the id that identifies the stored session info object to removenull if nonevoid shutdown()
throws java.lang.Exception
java.lang.Exception - if something goes wrong