public class DefaultCommercePriceService extends java.lang.Object implements CommercePriceService
CommercePriceService| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCommercePriceService.PriceInformationComparator
Comparator to naturally order PriceInformation by price value ascending
|
| Constructor and Description |
|---|
DefaultCommercePriceService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillAllVariantPrices(ProductModel product,
java.util.Collection<PriceInformation> prices) |
protected java.util.Collection<PriceInformation> |
getAllVariantPrices(ProductModel product) |
PriceInformation |
getFromPriceForProduct(ProductModel product)
Retrieve the minimum price from all variants
|
protected PriceInformation |
getLowestVariantPrice(ProductModel product) |
protected PriceService |
getPriceService() |
PriceInformation |
getWebPriceForProduct(ProductModel product)
Retrieve the first price returned by ProductItem
|
void |
setPriceService(PriceService priceService) |
public PriceInformation getFromPriceForProduct(ProductModel product)
CommercePriceServicegetFromPriceForProduct in interface CommercePriceServiceproduct - the productpublic PriceInformation getWebPriceForProduct(ProductModel product)
CommercePriceServicegetWebPriceForProduct in interface CommercePriceServiceproduct - the productprotected PriceInformation getLowestVariantPrice(ProductModel product)
protected java.util.Collection<PriceInformation> getAllVariantPrices(ProductModel product)
protected void fillAllVariantPrices(ProductModel product, java.util.Collection<PriceInformation> prices)
protected PriceService getPriceService()
public void setPriceService(PriceService priceService)
Copyright © 2018 SAP SE. All Rights Reserved.