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 ofAssetsthat 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 ofAssetsthat 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 unhydratedFileUploadStatewhose references should be hydratedcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the given
unhydratedinstance after hydrating its references
-