public class CmsDefaultSessionStorageProvider extends java.lang.Object implements I_CmsSessionStorageProvider
Implementation based on a FastHashMap.
| 构造器和说明 |
|---|
CmsDefaultSessionStorageProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public CmsSessionInfo get(CmsUUID sessionId)
I_CmsSessionStorageProviderget 在接口中 I_CmsSessionStorageProvidersessionId - the id to lookupnull if not foundI_CmsSessionStorageProvider.get(org.opencms.util.CmsUUID)public java.util.List<CmsSessionInfo> getAll()
I_CmsSessionStorageProvidergetAll 在接口中 I_CmsSessionStorageProviderI_CmsSessionStorageProvider.getAll()public java.util.List<CmsSessionInfo> getAllOfUser(CmsUUID userId)
I_CmsSessionStorageProvidergetAllOfUser 在接口中 I_CmsSessionStorageProvideruserId - the id of the user to retrieve the session info objects forI_CmsSessionStorageProvider.getAllOfUser(org.opencms.util.CmsUUID)public int getSize()
I_CmsSessionStorageProvidergetSize 在接口中 I_CmsSessionStorageProviderI_CmsSessionStorageProvider.getSize()public void initialize()
I_CmsSessionStorageProviderpublic CmsSessionInfo put(CmsSessionInfo sessionInfo)
I_CmsSessionStorageProviderput 在接口中 I_CmsSessionStorageProvidersessionInfo - the session info object to be storednull if noneI_CmsSessionStorageProvider.put(org.opencms.main.CmsSessionInfo)public CmsSessionInfo remove(CmsUUID sessionId)
I_CmsSessionStorageProviderremove 在接口中 I_CmsSessionStorageProvidersessionId - the id that identifies the stored session info object to removenull if noneI_CmsSessionStorageProvider.remove(org.opencms.util.CmsUUID)public void shutdown()
I_CmsSessionStorageProviderpublic void validate()
I_CmsSessionStorageProvider