Class CmsUserDataRequestStore


  • public class CmsUserDataRequestStore
    extends java.lang.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.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup()
      Removes expired user data requests.
      void initialize​(CmsObject adminCms)
      Initializes the store with an admin CMS object.
      static boolean isValidKey​(java.lang.String key)
      Checks if the key is a valid user data request key.
      java.util.Optional<CmsUserDataRequestInfo> load​(java.lang.String 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isValidKey

        public static boolean isValidKey​(java.lang.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

        public java.util.Optional<CmsUserDataRequestInfoload​(java.lang.String key)
        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