Interface ProductDetailsContextConsolidator
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
ItemChoiceCategoriesProductContextConsolidator
,RelatedProductsProductContextConsolidator
,RelatedPromotionalProductsProductContextConsolidator
,RelatedVariantsProductContextConsolidator
public interface ProductDetailsContextConsolidator
extends org.springframework.core.Ordered
Services implementing this interface should handle consolidating context information provided by
ProductDetailsContextContributors
as needed such as
consolidating product assets onto the related products.
ProductDetailsContextContributors
should handle any
necessary DB queries to gather the related entities while contributors merge the data together
before they are contributed to a ProductDetails
.
- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescription<T extends ProductDetailsContext>
voidconsolidate
(Collection<T> productDetailsContexts) Consolidate context information provided onProductDetailsContexts
.Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
consolidate
Consolidate context information provided onProductDetailsContexts
. This is expected to directly mutate the context.- Parameters:
productDetailsContexts
- Contexts on which to perform some consolidation operations.
-