Interface ProductDetailsContextConsolidator

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
ItemChoiceCategoriesProductContextConsolidator, RelatedOptionTemplatesProductContextConsolidator, 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 Type
    Method
    Description
    <T extends ProductDetailsContext>
    void
    consolidate(Collection<T> productDetailsContexts)
    Consolidate context information provided on ProductDetailsContexts.

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • consolidate

      <T extends ProductDetailsContext> void consolidate(Collection<T> productDetailsContexts)
      Consolidate context information provided on ProductDetailsContexts. This is expected to directly mutate the context.
      Parameters:
      productDetailsContexts - Contexts on which to perform some consolidation operations.