Class PreloadedPriceData
java.lang.Object
com.broadleafcommerce.dataexchange.service.product.domain.PreloadedPriceData
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuildPriceDataMap(List<PriceData> existingPriceData) Builds a map of price data by target and price list.protected booleancontainsForIdentifier(String identifier, String priceListId) getPricesForProductAndPriceList(ComprehensiveProduct parent, String priceListId) Returns the price data for the given product and its variants.voidbooleanisEmpty() 
- 
Constructor Details
- 
PreloadedPriceData
public PreloadedPriceData() 
 - 
 - 
Method Details
- 
init
 - 
isEmpty
public boolean isEmpty() - 
buildPriceDataMap
protected Map<String,Map<String, buildPriceDataMapList<PriceData>>> (List<PriceData> existingPriceData) Builds a map of price data by target and price list.- Parameters:
 existingPriceData- the price data to build the map from- Returns:
 - a map of price data by target and price list
 
 - 
getPricesForProductAndPriceList
@Nullable public List<PriceData> getPricesForProductAndPriceList(@Nullable ComprehensiveProduct parent, @Nullable String priceListId) Returns the price data for the given product and its variants.- Parameters:
 parent- the product to get price data for- Returns:
 - the price data for the given product and its variants or null if none.
 
 - 
containsForIdentifier
 
 -