Class DefaultCommercePriceService
java.lang.Object
de.hybris.platform.commerceservices.price.impl.DefaultCommercePriceService
- All Implemented Interfaces:
CommercePriceService
- Direct Known Subclasses:
DefaultSubscriptionCommercePriceService
Default implementation of
CommercePriceService-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classComparator to naturally order PriceInformation by price value ascending -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillAllVariantPrices(ProductModel product, Collection<PriceInformation> prices) protected Collection<PriceInformation>getAllVariantPrices(ProductModel product) getFromPriceForProduct(ProductModel product) Retrieve the minimum price from all variantsprotected PriceInformationgetLowestVariantPrice(ProductModel product) protected PriceServicegetWebPriceForProduct(ProductModel product) Retrieve the first price returned by ProductItemvoidsetPriceService(PriceService priceService)
-
Constructor Details
-
DefaultCommercePriceService
public DefaultCommercePriceService()
-
-
Method Details
-
getFromPriceForProduct
Description copied from interface:CommercePriceServiceRetrieve the minimum price from all variants- Specified by:
getFromPriceForProductin interfaceCommercePriceService- Parameters:
product- the product- Returns:
- PriceInformation
-
getWebPriceForProduct
Description copied from interface:CommercePriceServiceRetrieve the first price returned by ProductItem- Specified by:
getWebPriceForProductin interfaceCommercePriceService- Parameters:
product- the product- Returns:
- PriceInformation
-
getLowestVariantPrice
-
getAllVariantPrices
-
fillAllVariantPrices
-
getPriceService
-
setPriceService
-