Class VariantsProductPriceableTargetsBuilder
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.product.support.VariantsProductPriceableTargetsBuilder
- All Implemented Interfaces:
- ProductPriceableTargetsBuilder
public class VariantsProductPriceableTargetsBuilder
extends Object
implements ProductPriceableTargetsBuilder
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionVariantsProductPriceableTargetsBuilder(VariantPriceableTargetUtils utils, CollectedProductJsonAccessorUtils collectedProductJsonAccessorUtils) 
- 
Method SummaryModifier and TypeMethodDescriptionbuildTargetsForProducts(@NonNull Collection<? extends CollectedProduct> products) BuildsPriceableTargetsfor multipleProductsor one of the relationships such as their Variants.This returns a map where the key is the entity to which the PriceableTarget corresponds, which helps when mappingPriceInfosback onto the entity represented by thePriceableTarget.protected CollectedProductJsonAccessorUtilsprotected VariantPriceableTargetUtilsgetUtils()
- 
Field Details- 
VARIANT_PRICING_TARGET_TYPE- See Also:
 
 
- 
- 
Constructor Details- 
VariantsProductPriceableTargetsBuilderpublic VariantsProductPriceableTargetsBuilder(VariantPriceableTargetUtils utils, CollectedProductJsonAccessorUtils collectedProductJsonAccessorUtils) 
 
- 
- 
Method Details- 
buildTargetsForProductspublic Map<Object,Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>> buildTargetsForProducts(@NonNull @NonNull Collection<? extends CollectedProduct> products) Description copied from interface:ProductPriceableTargetsBuilderBuildsPriceableTargetsfor multipleProductsor one of the relationships such as their Variants.This returns a map where the key is the entity to which the PriceableTarget corresponds, which helps when mappingPriceInfosback onto the entity represented by thePriceableTarget.Note that in some cases, multiple targets can be created for the same entity if there are multiple ways of identifying some of them. - Specified by:
- buildTargetsForProductsin interface- ProductPriceableTargetsBuilder
- Parameters:
- products- Multiple- Productsall for which to build- PriceableTargets
- Returns:
- A map of all the PriceableTargetsthe givenProductsor one of their relationships.
 
- 
getUtils
- 
getCollectedProductJsonAccessorUtils
 
-