Class CmsUserDataRequestStore

java.lang.Object
org.opencms.jsp.userdata.CmsUserDataRequestStore

public class CmsUserDataRequestStore extends Object
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 Details

  • Method Details

    • isValidKey

      public static boolean isValidKey(String key)
      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

      public void cleanup()
      Removes expired user data requests.
    • initialize

      public void initialize(CmsObject adminCms)
      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

      public void save(CmsUserDataRequestInfo info)
      Saves the user data request, with the id taken from the user data request itself.
      Parameters:
      info - the user data request to save