Class RelatedProductsCategoryContextConsolidator

java.lang.Object
com.broadleafcommerce.catalog.service.category.commerce.context.consolidator.RelatedProductsCategoryContextConsolidator
All Implemented Interfaces:
CategoryDetailsContextConsolidator, org.springframework.core.Ordered

public class RelatedProductsCategoryContextConsolidator extends Object implements CategoryDetailsContextConsolidator
Consolidates all of the context info for related products onto those products.
Author:
Nathan Moore (nathandmoore)
  • Field Details

  • Constructor Details

    • RelatedProductsCategoryContextConsolidator

      public RelatedProductsCategoryContextConsolidator(PriceInfoContributionUtils priceInfoContributionUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • consolidate

      public void consolidate(@NonNull @NonNull CategoryDetailsContext categoryDetailsContext)
      Description copied from interface: CategoryDetailsContextConsolidator
      Consolidate context information provided on a CategoryDetailsContext. This is expected to directly mutate the context.
      Specified by:
      consolidate in interface CategoryDetailsContextConsolidator
      Parameters:
      categoryDetailsContext - Context on which to perform some consolidation operations.
    • consolidateProductAssets

      protected void consolidateProductAssets(@NonNull @NonNull CategoryDetailsContext categoryDetailsContext)
    • consolidateProductVariants

      protected void consolidateProductVariants(@NonNull @NonNull CategoryDetailsContext categoryDetailsContext)
    • consolidateProductPriceInfo

      protected void consolidateProductPriceInfo(@NonNull @NonNull CategoryDetailsContext categoryDetailsContext)
    • consolidateProductTags

      protected void consolidateProductTags(@NonNull @NonNull CategoryDetailsContext categoryDetailsContext)
    • getPriceInfoContributionUtils

      protected PriceInfoContributionUtils getPriceInfoContributionUtils()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()