Class PricingServiceImpl
java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.PricingServiceImpl
- All Implemented Interfaces:
PricingService
- Direct Known Subclasses:
PricingRuleAwareServiceImpl
Provides price information for configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillConfigPrices(PriceSummaryModel summary, ConfigModel configModel) voidfillOverviewPrices(ConfigModel configModel) Enriches ConfigModel with value prices and price summaryvoidfillValuePrices(List<PriceValueUpdateModel> updateModels, ConfigModel configModel) Fills absolute value prices or delta prices into the price value update models that represent a characteristic dependent on setting in backofficeprotected ConfigurationAssignmentResolverStrategyprotected ConfigurationModelCacheStrategygetPriceSummary(String configId) Retrieves if present current total price, base price and selected options priceprotected ProductConfigurationCacheAccessServiceprotected ProductConfigurationServiceprotected ProviderFactorybooleanisActive()Indicates whether the underlying pricing provider is activeprotected ConfigModelloadConfigModel(String configId) protected ConfigurationRetrievalOptionsprepareRetrievalOptions(ConfigModel configModel) protected ConfigurationRetrievalOptionsprepareRetrievalOptionsWithDate(ConfigModel configModel) protected voidretrieveValuePrices(ConfigModel configModel) protected voidretrieveValuePrices(List<PriceValueUpdateModel> updateModels, String kbId, String configId) voidsetAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy) voidsetConfigurationModelCacheStrategy(ConfigurationModelCacheStrategy configurationModelCacheStrategy) voidsetProductConfigurationCacheAccessService(ProductConfigurationCacheAccessService productConfigurationCacheAccessService) voidsetProductConfigurationService(ProductConfigurationService productConfigurationService) voidsetProviderFactory(ProviderFactory providerFactory)
-
Constructor Details
-
PricingServiceImpl
public PricingServiceImpl()
-
-
Method Details
-
setProductConfigurationService
- Parameters:
productConfigurationService- the productConfigurationService to set
-
getPriceSummary
Description copied from interface:PricingServiceRetrieves if present current total price, base price and selected options price- Specified by:
getPriceSummaryin interfacePricingService- Parameters:
configId- runtime id of the configuration- Returns:
- map of current total price, base price and selected options price
-
loadConfigModel
-
prepareRetrievalOptionsWithDate
-
prepareRetrievalOptions
-
fillValuePrices
Description copied from interface:PricingServiceFills absolute value prices or delta prices into the price value update models that represent a characteristic dependent on setting in backoffice- Specified by:
fillValuePricesin interfacePricingService- Parameters:
updateModels- each list entry represents a characteristic for which absolute value prices or delta prices are filledconfigModel- Configuration for which absolute value prices or delta price are calculated
-
retrieveValuePrices
protected void retrieveValuePrices(List<PriceValueUpdateModel> updateModels, String kbId, String configId) throws PricingEngineException - Throws:
PricingEngineException
-
getProviderFactory
-
setProviderFactory
- Parameters:
providerFactory- the providerFactory to set
-
isActive
public boolean isActive()Description copied from interface:PricingServiceIndicates whether the underlying pricing provider is active- Specified by:
isActivein interfacePricingService- Returns:
- true if the underlying pricing provider is active
-
fillOverviewPrices
Description copied from interface:PricingServiceEnriches ConfigModel with value prices and price summary- Specified by:
fillOverviewPricesin interfacePricingService- Parameters:
configModel- configuration for which prices are filled
-
retrieveValuePrices
- Throws:
PricingEngineException
-
fillConfigPrices
-
getConfigurationModelCacheStrategy
-
setConfigurationModelCacheStrategy
public void setConfigurationModelCacheStrategy(ConfigurationModelCacheStrategy configurationModelCacheStrategy) -
getProductConfigurationCacheAccessService
-
setProductConfigurationCacheAccessService
public void setProductConfigurationCacheAccessService(ProductConfigurationCacheAccessService productConfigurationCacheAccessService) -
getAssignmentResolverStrategy
-
setAssignmentResolverStrategy
public void setAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy) -
getProductConfigurationService
-