Interface ProductPriceableTargetsBuilder
- All Known Implementing Classes:
BaseProductPriceableTargetsBuilder
,VariantsProductPriceableTargetsBuilder
public interface ProductPriceableTargetsBuilder
This interface defines components that can build
PriceableTarget
instances from lists of
products. This class was repurposed from a component of the same name in CatalogBrowseService,- Author:
- Kelly Tisdell (ktisdell)
-
Method Summary
Modifier and TypeMethodDescriptionbuildTargetsForProducts
(Collection<? extends CollectedProduct> products) BuildsPriceableTargets
for multipleProducts
or 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 mappingPriceInfos
back onto the entity represented by thePriceableTarget
.
-
Method Details
-
buildTargetsForProducts
Map<Object,Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>> buildTargetsForProducts(Collection<? extends CollectedProduct> products) BuildsPriceableTargets
for multipleProducts
or 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 mappingPriceInfos
back 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.
-