Package org.opencms.main
Class CmsDefaultSessionStorageProvider
java.lang.Object
org.opencms.main.CmsDefaultSessionStorageProvider
- All Implemented Interfaces:
I_CmsSessionStorageProvider
The default session storage provider implementation.
Implementation based on a FastHashMap.
- Since:
- 6.5.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the stored session info object with the given id.getAll()Returns all current stored session info objects.getAllOfUser(CmsUUID userId) Returns all current stored session info objects for the given user.intgetSize()Returns the current number of stored session info objects.voidInitializes the storage.put(CmsSessionInfo sessionInfo) Stores the given session info object.Removes the stored session info object identified by the given session id.voidshutdown()Last cleanup possibility.voidvalidate()Validates all session info objects removing any session that have became invalidated.
-
Constructor Details
-
CmsDefaultSessionStorageProvider
public CmsDefaultSessionStorageProvider()
-
-
Method Details
-
get
Description copied from interface:I_CmsSessionStorageProviderReturns the stored session info object with the given id.- Specified by:
getin interfaceI_CmsSessionStorageProvider- Parameters:
sessionId- the id to lookup- Returns:
- the stored session info object, or
nullif not found - See Also:
-
getAll
Description copied from interface:I_CmsSessionStorageProviderReturns all current stored session info objects.- Specified by:
getAllin interfaceI_CmsSessionStorageProvider- Returns:
- all current stored session info objects
- See Also:
-
getAllOfUser
Description copied from interface:I_CmsSessionStorageProviderReturns all current stored session info objects for the given user.- Specified by:
getAllOfUserin interfaceI_CmsSessionStorageProvider- Parameters:
userId- the id of the user to retrieve the session info objects for- Returns:
- all current stored session info objects for the given user
- See Also:
-
getSize
Description copied from interface:I_CmsSessionStorageProviderReturns the current number of stored session info objects.- Specified by:
getSizein interfaceI_CmsSessionStorageProvider- Returns:
- the current number of stored session info objects, or zero if empty
- See Also:
-
initialize
Description copied from interface:I_CmsSessionStorageProviderInitializes the storage.- Specified by:
initializein interfaceI_CmsSessionStorageProvider- See Also:
-
put
Description copied from interface:I_CmsSessionStorageProviderStores the given session info object.- Specified by:
putin interfaceI_CmsSessionStorageProvider- Parameters:
sessionInfo- the session info object to be stored- Returns:
- the session info object previously stored with the same session id, or
nullif none - See Also:
-
remove
Description copied from interface:I_CmsSessionStorageProviderRemoves the stored session info object identified by the given session id.- Specified by:
removein interfaceI_CmsSessionStorageProvider- Parameters:
sessionId- the id that identifies the stored session info object to remove- Returns:
- the removed cached entry or
nullif none - See Also:
-
shutdown
Description copied from interface:I_CmsSessionStorageProviderLast cleanup possibility.- Specified by:
shutdownin interfaceI_CmsSessionStorageProvider- See Also:
-
validate
Description copied from interface:I_CmsSessionStorageProviderValidates all session info objects removing any session that have became invalidated.- Specified by:
validatein interfaceI_CmsSessionStorageProvider- See Also:
-