Class RelatedOptionTemplatesProductContextConsolidator
java.lang.Object
com.broadleafcommerce.catalog.service.product.commerce.context.consolidator.RelatedOptionTemplatesProductContextConsolidator
- All Implemented Interfaces:
ProductDetailsContextConsolidator
,org.springframework.core.Ordered
public class RelatedOptionTemplatesProductContextConsolidator
extends Object
implements ProductDetailsContextConsolidator
Generates
ProductOptions
onto the related products using the
OptionTemplates
that they reference.- Author:
- Susana Cruz (susanaccruz)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ProductDetailsContext>
voidconsolidate
(@NonNull Collection<T> productDetailsContexts) Consolidate context information provided onProductDetailsContexts
.int
getOrder()
protected void
hydrateTemplateOntoProduct
(OptionTemplate optionTemplate, Product relatedProduct)
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
-
Constructor Details
-
RelatedOptionTemplatesProductContextConsolidator
public RelatedOptionTemplatesProductContextConsolidator()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
consolidate
public <T extends ProductDetailsContext> void consolidate(@NonNull @NonNull Collection<T> productDetailsContexts) Description copied from interface:ProductDetailsContextConsolidator
Consolidate context information provided onProductDetailsContexts
. This is expected to directly mutate the context.- Specified by:
consolidate
in interfaceProductDetailsContextConsolidator
- Parameters:
productDetailsContexts
- Contexts on which to perform some consolidation operations.
-
hydrateTemplateOntoProduct
-