Class BaseProductPriceableTargetsBuilder

java.lang.Object
com.broadleafcommerce.datafeed.service.collector.product.support.BaseProductPriceableTargetsBuilder
All Implemented Interfaces:
ProductPriceableTargetsBuilder

public class BaseProductPriceableTargetsBuilder extends Object implements ProductPriceableTargetsBuilder
  • Constructor Details

  • Method Details

    • buildTargetsForProducts

      public Map<Object,Set<com.broadleafcommerce.pricing.client.domain.PriceableTarget>> buildTargetsForProducts(@NonNull @NonNull Collection<? extends CollectedProduct> products)
      Description copied from interface: ProductPriceableTargetsBuilder
      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.
      Specified by:
      buildTargetsForProducts in interface ProductPriceableTargetsBuilder
      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.
    • getUtils

      protected ProductPriceableTargetUtils getUtils()
    • getCollectedProductJsonAccessorUtils

      protected CollectedProductJsonAccessorUtils getCollectedProductJsonAccessorUtils()