Class DefaultTmaPriceOverrideService
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaPriceOverrideService
-
- All Implemented Interfaces:
TmaPriceOverrideService
@Deprecated(since="1903", forRemoval=true) public class DefaultTmaPriceOverrideService extends java.lang.Object implements TmaPriceOverrideServiceDeprecated, for removal: This API element is subject to removal in a future version.since 1903. Use insteadDefaultTmaCommercePriceService.Default implementation of theTmaPriceOverrideService.
-
-
Constructor Summary
Constructors Constructor Description DefaultTmaPriceOverrideService()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected TmaCommercePriceServicegetCommercePriceService()Deprecated, for removal: This API element is subject to removal in a future version.PriceRowModelgetMinimumApplicablePriceForContext(TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the minimumPriceRowModelwhich may be applicable for the context and the {@param priceContext#product} given, be it either the stand alone price of the product or a price override for which the {@param priceContext#product} represents theSubscriptionPricePlanModel.getAffectedProductOffering()of the price, regardless of the required products and price class.SubscriptionPricePlanModelgetMinimumBpoPriceForContext(TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the minimumSubscriptionPricePlanModelconfigured at the bpo level, for the bpo provided asTmaPriceContext.productapplicable for the {@param priceContext#affectedProduct} given.protected PriceRowModelgetMinimumPrice(SubscriptionPricePlanModel bpoPrice, PriceRowModel spoPrice)Deprecated, for removal: This API element is subject to removal in a future version.Returns the minimum price between the ones provided.PriceRowModelgetMinimumPriceForContext(TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the minimum stand alonePriceRowModelapplicable for the {@param priceContext#affectedProduct} given, meaning that theTmaPriceContext.productrepresents thePDTRowModel.getProduct().PriceRowModelgetMinimumSpoPriceForBpo(TmaPriceContext priceContext, TmaSimpleProductOfferingModel spo, TmaBundledProductOfferingModel bpo)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the minimum price of the {@param spo} when bought as part of the {@param bpo} given, applicable for the {@param priceContext} provided.protected de.hybris.platform.servicelayer.model.ModelServicegetModelService()Deprecated, for removal: This API element is subject to removal in a future version.protected TmaEurope1PriceFactorygetPriceFactory()Deprecated, for removal: This API element is subject to removal in a future version.java.util.Set<SubscriptionPricePlanModel>getPriceOverridesForContext(TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves allSubscriptionPricePlanModels for the {@param priceContext} provided or null if none are found.protected PriceRowModelComparatorgetPriceRowComparator()Deprecated, for removal: This API element is subject to removal in a future version.ProductModelgetProductFromContext(TmaPriceContext priceContext)Deprecated, for removal: This API element is subject to removal in a future version.Returns the product for which to calculate the price.protected TmaSubscriptionPricePlanDaogetSubscriptionPricePlanDao()Deprecated, for removal: This API element is subject to removal in a future version.protected SubscriptionPricePlanModelComparatorgetSubscriptionPricePlanModelComparator()Deprecated, for removal: This API element is subject to removal in a future version.voidsetCommercePriceService(TmaCommercePriceService commercePriceService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPriceFactory(TmaEurope1PriceFactory priceFactory)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPriceRowComparator(PriceRowModelComparator priceRowModelComparator)Deprecated, for removal: This API element is subject to removal in a future version.voidsetSubscriptionPricePlanDao(TmaSubscriptionPricePlanDao subscriptionPricePlanDao)Deprecated, for removal: This API element is subject to removal in a future version.voidsetSubscriptionPricePlanModelComparator(SubscriptionPricePlanModelComparator subscriptionPricePlanModelComparator)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getPriceOverridesForContext
public java.util.Set<SubscriptionPricePlanModel> getPriceOverridesForContext(TmaPriceContext priceContext)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TmaPriceOverrideServiceRetrieves allSubscriptionPricePlanModels for the {@param priceContext} provided or null if none are found.- Specified by:
getPriceOverridesForContextin interfaceTmaPriceOverrideService- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
- all
SubscriptionPricePlanModels having the configuration as on the {@param priceContext} provided
-
getMinimumPriceForContext
public PriceRowModel getMinimumPriceForContext(TmaPriceContext priceContext)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TmaPriceOverrideServiceRetrieves the minimum stand alonePriceRowModelapplicable for the {@param priceContext#affectedProduct} given, meaning that theTmaPriceContext.productrepresents thePDTRowModel.getProduct().- Specified by:
getMinimumPriceForContextin interfaceTmaPriceOverrideService- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
- minimum
PriceRowModelapplicable for the {@param priceContext#affectedProduct} given
-
getMinimumSpoPriceForBpo
public PriceRowModel getMinimumSpoPriceForBpo(TmaPriceContext priceContext, TmaSimpleProductOfferingModel spo, TmaBundledProductOfferingModel bpo)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TmaPriceOverrideServiceRetrieves the minimum price of the {@param spo} when bought as part of the {@param bpo} given, applicable for the {@param priceContext} provided. If either there is no bpo price having the {@param spo} as affected product or the bpo price is greater than the stand alone price of the spo, the stand alone price will be returned.- Specified by:
getMinimumSpoPriceForBpoin interfaceTmaPriceOverrideService- Parameters:
priceContext- price context for which the price should be applicablespo- spo for which to retrieve the price (SubscriptionPricePlanModel.AFFECTEDPRODUCTOFFERING)bpo- bpo to which the spo belongs to, to retrieve the price from (PDTRowModel.PRODUCT)- Returns:
- minimum applicable price of the spo when bought as part of the bpo given
-
getMinimumPrice
protected PriceRowModel getMinimumPrice(SubscriptionPricePlanModel bpoPrice, PriceRowModel spoPrice)
Deprecated, for removal: This API element is subject to removal in a future version.Returns the minimum price between the ones provided. Method compares bothSubscriptionPricePlanModelandPriceRowModel, as it compares spo to bpo price.- Parameters:
bpoPrice- bpo price to be used for comparisonspoPrice- spo stand alone price to be used for comparison- Returns:
- minimum between the provided prices
-
getMinimumApplicablePriceForContext
public PriceRowModel getMinimumApplicablePriceForContext(TmaPriceContext priceContext)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TmaPriceOverrideServiceRetrieves the minimumPriceRowModelwhich may be applicable for the context and the {@param priceContext#product} given, be it either the stand alone price of the product or a price override for which the {@param priceContext#product} represents theSubscriptionPricePlanModel.getAffectedProductOffering()of the price, regardless of the required products and price class. This represents the "starting from" price which can be taken by the {@param priceContext#product} under certain conditions.- Specified by:
getMinimumApplicablePriceForContextin interfaceTmaPriceOverrideService- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
- minimum
PriceRowModelapplicable for the {@param priceContext#product} given
-
getProductFromContext
public ProductModel getProductFromContext(TmaPriceContext priceContext)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TmaPriceOverrideServiceReturns the product for which to calculate the price. If theTmaPriceContext.productis a BPO, the price will be computed for theTmaPriceContext.affectedProduct.- Specified by:
getProductFromContextin interfaceTmaPriceOverrideService- Parameters:
priceContext- price context to retrieve the product from- Returns:
- product for which the price should be computed
-
getMinimumBpoPriceForContext
public SubscriptionPricePlanModel getMinimumBpoPriceForContext(TmaPriceContext priceContext)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TmaPriceOverrideServiceRetrieves the minimumSubscriptionPricePlanModelconfigured at the bpo level, for the bpo provided asTmaPriceContext.productapplicable for the {@param priceContext#affectedProduct} given.- Specified by:
getMinimumBpoPriceForContextin interfaceTmaPriceOverrideService- Parameters:
priceContext- priceContext to retrieve the configuration from- Returns:
- minimum
SubscriptionPricePlanModelapplicable for the {@param priceContext#affectedProduct} given
-
getSubscriptionPricePlanDao
protected TmaSubscriptionPricePlanDao getSubscriptionPricePlanDao()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setSubscriptionPricePlanDao
public void setSubscriptionPricePlanDao(TmaSubscriptionPricePlanDao subscriptionPricePlanDao)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setSubscriptionPricePlanModelComparator
public void setSubscriptionPricePlanModelComparator(SubscriptionPricePlanModelComparator subscriptionPricePlanModelComparator)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSubscriptionPricePlanModelComparator
protected SubscriptionPricePlanModelComparator getSubscriptionPricePlanModelComparator()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPriceRowComparator
protected PriceRowModelComparator getPriceRowComparator()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPriceRowComparator
public void setPriceRowComparator(PriceRowModelComparator priceRowModelComparator)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPriceFactory
protected TmaEurope1PriceFactory getPriceFactory()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPriceFactory
public void setPriceFactory(TmaEurope1PriceFactory priceFactory)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCommercePriceService
protected TmaCommercePriceService getCommercePriceService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCommercePriceService
public void setCommercePriceService(TmaCommercePriceService commercePriceService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-