Interface FileUploadStateHydrationService

All Known Implementing Classes:
DefaultFileUploadStateHydrationService

public interface FileUploadStateHydrationService
Responsible for performing simple hydration of the references to Assets made within a FileUploadState by querying for those references and populating their full values.
Author:
Samarth Dhruva (samarthd)
  • Method Summary

    Modifier and Type
    Method
    Description
    hydrate(FileUploadState unhydrated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Gets the IDs of Assets that are referenced by unhydrated, finds the corresponding items in the data store, and then replaces each reference with the fully populated representation of the item.
  • Method Details

    • hydrate

      FileUploadState hydrate(FileUploadState unhydrated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Gets the IDs of Assets that are referenced by unhydrated, finds the corresponding items in the data store, and then replaces each reference with the fully populated representation of the item.
      Parameters:
      unhydrated - the unhydrated FileUploadState whose references should be hydrated
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the given unhydrated instance after hydrating its references