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 Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionRelatedProductsCategoryContextConsolidator
(PriceInfoContributionUtils priceInfoContributionUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
consolidate
(@NonNull CategoryDetailsContext categoryDetailsContext) Consolidate context information provided on aCategoryDetailsContext
.protected void
consolidateProductAssets
(@NonNull CategoryDetailsContext categoryDetailsContext) protected void
consolidateProductPriceInfo
(@NonNull CategoryDetailsContext categoryDetailsContext) protected void
consolidateProductTags
(@NonNull CategoryDetailsContext categoryDetailsContext) protected void
consolidateProductVariants
(@NonNull CategoryDetailsContext categoryDetailsContext) int
getOrder()
protected PriceInfoContributionUtils
protected com.broadleafcommerce.common.extension.TypeFactory
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
-
Constructor Details
-
RelatedProductsCategoryContextConsolidator
public RelatedProductsCategoryContextConsolidator(PriceInfoContributionUtils priceInfoContributionUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
consolidate
Description copied from interface:CategoryDetailsContextConsolidator
Consolidate context information provided on aCategoryDetailsContext
. This is expected to directly mutate the context.- Specified by:
consolidate
in interfaceCategoryDetailsContextConsolidator
- 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
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-