Package org.opencms.jsp.userdata
Class CmsUserDataRequestStore
java.lang.Object
org.opencms.jsp.userdata.CmsUserDataRequestStore
Class which handles loading/saving user data requests.
Currently stores user data requests in a special RFS directory, with their ID as a filename. Expired user data requests are removed each hour.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Removes expired user data requests.void
initialize
(CmsObject adminCms) Initializes the store with an admin CMS object.static boolean
isValidKey
(String key) Checks if the key is a valid user data request key.Loads the user data request with the given id.void
save
(CmsUserDataRequestInfo info) Saves the user data request, with the id taken from the user data request itself.
-
Constructor Details
-
CmsUserDataRequestStore
public CmsUserDataRequestStore()Creates a new instance.
-
-
Method Details
-
isValidKey
Checks if the key is a valid user data request key.- Parameters:
key
- the key to check- Returns:
- true if the key is valid
-
cleanup
Removes expired user data requests. -
initialize
Initializes the store with an admin CMS object.- Parameters:
adminCms
- the admin CMS object
-
load
Loads the user data request with the given id.- Parameters:
key
- the id- Returns:
- the user data request with the id, or null if it was not found
-
save
Saves the user data request, with the id taken from the user data request itself.- Parameters:
info
- the user data request to save
-