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 TypeMethodDescriptionhydrate
(FileUploadState unhydrated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Gets the IDs ofAssets
that are referenced byunhydrated
, 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 ofAssets
that are referenced byunhydrated
, finds the corresponding items in the data store, and then replaces each reference with the fully populated representation of the item.- Parameters:
unhydrated
- the unhydratedFileUploadState
whose references should be hydratedcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the given
unhydrated
instance after hydrating its references
-