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 Type
    Method
    Description
    Map<Object,Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>>
    Builds PriceableTargets for multiple Products 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 mapping PriceInfos back onto the entity represented by the PriceableTarget.
  • Method Details

    • buildTargetsForProducts

      Map<Object,Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>> buildTargetsForProducts(Collection<? extends CollectedProduct> products)
      Builds PriceableTargets for multiple Products 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 mapping PriceInfos back onto the entity represented by the PriceableTarget.

      Note that in some cases, multiple targets can be created for the same entity if there are multiple ways of identifying some of them.
      Parameters:
      products - Multiple Products all for which to build PriceableTargets
      Returns:
      A map of all the PriceableTargets the given Products or one of their relationships.