Class PreloadedPriceData
java.lang.Object
com.broadleafcommerce.dataexchange.service.pricing.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) getPriceDataForCurrencyIdentifierType(ComprehensiveProduct parent, Prices prices) getPriceDataForIdIdentifierType(ComprehensiveProduct parent, Prices prices) getPricesForProductAndPriceList(ComprehensiveProduct parent, Prices prices) 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 Prices prices) 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.
-
getPriceDataForCurrencyIdentifierType
@Nullable protected List<PriceData> getPriceDataForCurrencyIdentifierType(ComprehensiveProduct parent, Prices prices) -
getPriceDataForIdIdentifierType
@Nullable protected List<PriceData> getPriceDataForIdIdentifierType(ComprehensiveProduct parent, Prices prices) -
containsForIdentifier
-