Class PriceInfoProductDetailsContributor
java.lang.Object
com.broadleafcommerce.catalog.service.product.commerce.contributor.PriceInfoProductDetailsContributor
- All Implemented Interfaces:
ProductDetailsContributor
,org.springframework.core.Ordered
This contributor is responsible for the
ProductDetails'
price info
.- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionPriceInfoProductDetailsContributor
(PriceInfoContributionUtils priceInfoContributionUtils) -
Method Summary
Modifier and TypeMethodDescription<D extends ProductDetails,
C extends ProductDetailsContext>
Collection<D>contribute
(@NonNull Collection<D> productDetailsList, @NonNull Collection<C> productDetailsContexts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Contributes to the suppliedProductDetails
.int
getOrder()
protected PriceInfoContributionUtils
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
-
Constructor Details
-
PriceInfoProductDetailsContributor
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
contribute
public <D extends ProductDetails,C extends ProductDetailsContext> Collection<D> contribute(@NonNull @NonNull Collection<D> productDetailsList, @NonNull @NonNull Collection<C> productDetailsContexts, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ProductDetailsContributor
Contributes to the suppliedProductDetails
. This should not mutate the inputted details, but return a new one with the new contributions.- Specified by:
contribute
in interfaceProductDetailsContributor
- Parameters:
productDetailsList
- The details to which to contributeproductDetailsContexts
- The context containing information that may be important for contributors such as active price lists.contextInfo
- context information surrounding sandboxing/multitenant state- Returns:
- An version of the supplied
ProductDetails
with the new contributions.
-
getPriceInfoContributionUtils
-