Class DefaultTmaPriceFacade
java.lang.Object
de.hybris.platform.b2ctelcofacades.price.impl.DefaultTmaPriceFacade
- All Implemented Interfaces:
TmaPriceFacade
Default implementation for
TmaPriceFacade- Since:
- 1903.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaPriceFacade(de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel, PriceData> priceDataConverter) -
Method Summary
Modifier and TypeMethodDescriptiongetBestApplicablePrice(TmaPriceContext priceContext) Retrieves the best applicable price for a given priceContext.protected TmaCommercePriceService<T extends TmaComponentProdOfferPriceData>
List<T>getListOfPriceComponents(TmaProductOfferingPriceData productOfferingPrice, Class<T> componentPriceType) Determines the list of price components of type provided by navigating though the structure of the product offering price given.getMinimumPrice(TmaPriceContext priceContext) Retrieves the lowest price for the given, looking at both the stand alone price and price overrides of theTmaPriceContext.affectedProductprotected de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,PriceData> getPriceDataType(ProductModel product) Returns thePriceDataTypefor the given.protected ProductModelgetProduct(TmaPriceContext priceContext) protected de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,SubscriptionPricePlanData> protected TmaPriceDataFactoryvoidsetCommercePriceService(TmaCommercePriceService commercePriceService) voidsetSubscriptionPricePlanConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel, SubscriptionPricePlanData> subscriptionPricePlanConverter) voidsetTmaPriceDataFactory(TmaPriceDataFactory tmaPriceDataFactory)
-
Constructor Details
-
DefaultTmaPriceFacade
public DefaultTmaPriceFacade() -
DefaultTmaPriceFacade
public DefaultTmaPriceFacade(de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel, PriceData> priceDataConverter)
-
-
Method Details
-
getMinimumPrice
Description copied from interface:TmaPriceFacadeRetrieves the lowest price for the given, looking at both the stand alone price and price overrides of theTmaPriceContext.affectedProduct- Specified by:
getMinimumPricein interfaceTmaPriceFacade- Parameters:
priceContext- price context for which to retrieve the price- Returns:
- minimum price for the given
-
getBestApplicablePrice
Description copied from interface:TmaPriceFacadeRetrieves the best applicable price for a given priceContext.- Specified by:
getBestApplicablePricein interfaceTmaPriceFacade- Parameters:
priceContext- the price context for which we retrieve the price.- Returns:
- best applicable price for the given
-
getListOfPriceComponents
public <T extends TmaComponentProdOfferPriceData> List<T> getListOfPriceComponents(TmaProductOfferingPriceData productOfferingPrice, Class<T> componentPriceType) Determines the list of price components of type provided by navigating though the structure of the product offering price given. In case there is no price component of that type found in the structure of the product offering price given an empty list is returned.- Specified by:
getListOfPriceComponentsin interfaceTmaPriceFacade- Parameters:
productOfferingPrice- the given POPcomponentPriceType- the type of the price components that has to be determined- Returns:
- the list of price components of the type given
-
getProduct
-
getPriceDataType
Description copied from interface:TmaPriceFacadeReturns thePriceDataTypefor the given.- Specified by:
getPriceDataTypein interfaceTmaPriceFacade- Parameters:
product- product to retrieve the price data type for- Returns:
- price data type for the product given
-
getCommercePriceService
-
setCommercePriceService
-
getTmaPriceDataFactory
-
setTmaPriceDataFactory
-
getSubscriptionPricePlanConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,SubscriptionPricePlanData> getSubscriptionPricePlanConverter() -
setSubscriptionPricePlanConverter
public void setSubscriptionPricePlanConverter(de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel, SubscriptionPricePlanData> subscriptionPricePlanConverter) -
getPriceDataConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<PriceRowModel,PriceData> getPriceDataConverter()
-