Package de.hybris.platform.product
Interface PriceService
-
- All Known Implementing Classes:
DefaultPriceService,NetPriceService
public interface PriceServiceService for the product prices of a product.- Spring Bean ID:
- priceService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ProductPriceInformationsgetAllPriceInformation(PriceCriteria priceCriteria)ReturnsProductPriceInformationsproduct price containing all applicable prices, discounts and taxes for the given criteria (product and net/gross state)default java.util.List<PriceInformation>getPriceInformations(PriceCriteria priceCriteria)Calculates all applicable prices for given criteria.java.util.List<PriceInformation>getPriceInformationsForProduct(ProductModel model)Returns all availablePriceInformationfor the givenProductModeland the current session user.
-
-
-
Method Detail
-
getPriceInformationsForProduct
java.util.List<PriceInformation> getPriceInformationsForProduct(ProductModel model)
Returns all availablePriceInformationfor the givenProductModeland the current session user.- Parameters:
model- the product- Returns:
- an empty list if no price information exists for the product and current session user.
-
getPriceInformations
default java.util.List<PriceInformation> getPriceInformations(PriceCriteria priceCriteria)
Calculates all applicable prices for given criteria.- Parameters:
priceCriteria-PriceCriteria- Returns:
- the list of
PriceInformation
-
getAllPriceInformation
default ProductPriceInformations getAllPriceInformation(PriceCriteria priceCriteria)
ReturnsProductPriceInformationsproduct price containing all applicable prices, discounts and taxes for the given criteria (product and net/gross state)This default implementation just calls
FindPriceStrategy.getPriceInformation(BaseCriteria),FindTaxValuesStrategy.getTaxInformation(BaseCriteria)andFindDiscountValuesStrategy.getDiscountInformation(BaseCriteria)and wraps the results inside aProductPriceInformationsobject.- Parameters:
priceCriteria-PriceCriteria- Returns:
ProductPriceInformationsthat contains prices,discount, taxes for given priceCriteria
-
-