public class CmsDefaultSessionStorageProvider extends java.lang.Object implements I_CmsSessionStorageProvider
Implementation based on a FastHashMap.
| Constructor and Description |
|---|
CmsDefaultSessionStorageProvider() |
| Modifier and Type | Method and Description |
|---|---|
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 CmsDefaultSessionStorageProvider()
public CmsSessionInfo get(CmsUUID sessionId)
I_CmsSessionStorageProviderget in interface I_CmsSessionStorageProvidersessionId - the id to lookupnull if not foundI_CmsSessionStorageProvider.get(org.opencms.util.CmsUUID)public java.util.List<CmsSessionInfo> getAll()
I_CmsSessionStorageProvidergetAll in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.getAll()public java.util.List<CmsSessionInfo> getAllOfUser(CmsUUID userId)
I_CmsSessionStorageProvidergetAllOfUser in interface 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 in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.getSize()public void initialize()
I_CmsSessionStorageProviderinitialize in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.initialize()public CmsSessionInfo put(CmsSessionInfo sessionInfo)
I_CmsSessionStorageProviderput in interface I_CmsSessionStorageProvidersessionInfo - the session info object to be storednull if noneI_CmsSessionStorageProvider.put(org.opencms.main.CmsSessionInfo)public CmsSessionInfo remove(CmsUUID sessionId)
I_CmsSessionStorageProviderremove in interface 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_CmsSessionStorageProvidershutdown in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.shutdown()public void validate()
I_CmsSessionStorageProvidervalidate in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.validate()