Class PricingServiceImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.impl.PricingServiceImpl
-
- All Implemented Interfaces:
PricingService
- Direct Known Subclasses:
PricingRuleAwareServiceImpl
public class PricingServiceImpl extends java.lang.Object implements PricingService
Provides price information for configuration
-
-
Constructor Summary
Constructors Constructor Description PricingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidfillConfigPrices(PriceSummaryModel summary, ConfigModel configModel)voidfillOverviewPrices(ConfigModel configModel)Enriches ConfigModel with value prices and price summaryvoidfillValuePrices(java.util.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 backofficevoidfillValuePrices(java.util.List<PriceValueUpdateModel> updateModels, java.lang.String kbId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08protected ConfigurationAssignmentResolverStrategygetAssignmentResolverStrategy()protected ConfigurationModelCacheStrategygetConfigurationModelCacheStrategy()PriceSummaryModelgetPriceSummary(java.lang.String configId)Retrieves if present current total price, base price and selected options priceprotected PricingConfigurationParametergetPricingConfigurationParameter()protected ProductConfigurationCacheAccessServicegetProductConfigurationCacheAccessService()protected ProductConfigurationServicegetProductConfigurationService()protected ProviderFactorygetProviderFactory()booleanisActive()Indicates whether the underlying pricing provider is activeprotected ConfigModelloadConfigModel(java.lang.String configId)protected ConfigurationRetrievalOptionsprepareRetrievalOptions(ConfigModel configModel)protected ConfigurationRetrievalOptionsprepareRetrievalOptionsWithDate(ConfigModel configModel)protected voidretrieveValuePrices(ConfigModel configModel)protected voidretrieveValuePrices(java.util.List<PriceValueUpdateModel> updateModels, java.lang.String kbId, java.lang.String configId)voidsetAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy)voidsetConfigurationModelCacheStrategy(ConfigurationModelCacheStrategy configurationModelCacheStrategy)voidsetPricingConfigurationParameter(PricingConfigurationParameter pricingConfigurationParameter)voidsetProductConfigurationCacheAccessService(ProductConfigurationCacheAccessService productConfigurationCacheAccessService)voidsetProductConfigurationService(ProductConfigurationService productConfigurationService)voidsetProviderFactory(ProviderFactory providerFactory)
-
-
-
Method Detail
-
setProductConfigurationService
public void setProductConfigurationService(ProductConfigurationService productConfigurationService)
- Parameters:
productConfigurationService- the productConfigurationService to set
-
getPriceSummary
public PriceSummaryModel getPriceSummary(java.lang.String configId)
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
protected ConfigModel loadConfigModel(java.lang.String configId)
-
prepareRetrievalOptionsWithDate
protected ConfigurationRetrievalOptions prepareRetrievalOptionsWithDate(ConfigModel configModel)
-
prepareRetrievalOptions
protected ConfigurationRetrievalOptions prepareRetrievalOptions(ConfigModel configModel)
-
fillValuePrices
@Deprecated(since="1808", forRemoval=true) public void fillValuePrices(java.util.List<PriceValueUpdateModel> updateModels, java.lang.String kbId)Deprecated, for removal: This API element is subject to removal in a future version.since 18.08Description 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 filledkbId- KnowledgeBase id belonging to the runtime configuration for which absolute value prices or delta price are calculated
-
fillValuePrices
public void fillValuePrices(java.util.List<PriceValueUpdateModel> updateModels, ConfigModel configModel)
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(java.util.List<PriceValueUpdateModel> updateModels, java.lang.String kbId, java.lang.String configId) throws PricingEngineException
- Throws:
PricingEngineException
-
getProviderFactory
protected ProviderFactory getProviderFactory()
-
setProviderFactory
public void setProviderFactory(ProviderFactory providerFactory)
- 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
public void fillOverviewPrices(ConfigModel configModel)
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
protected void retrieveValuePrices(ConfigModel configModel) throws PricingEngineException
- Throws:
PricingEngineException
-
fillConfigPrices
protected void fillConfigPrices(PriceSummaryModel summary, ConfigModel configModel)
-
getPricingConfigurationParameter
protected PricingConfigurationParameter getPricingConfigurationParameter()
-
setPricingConfigurationParameter
public void setPricingConfigurationParameter(PricingConfigurationParameter pricingConfigurationParameter)
- Parameters:
pricingConfigurationParameter-
-
getConfigurationModelCacheStrategy
protected ConfigurationModelCacheStrategy getConfigurationModelCacheStrategy()
-
setConfigurationModelCacheStrategy
public void setConfigurationModelCacheStrategy(ConfigurationModelCacheStrategy configurationModelCacheStrategy)
-
getProductConfigurationCacheAccessService
protected ProductConfigurationCacheAccessService getProductConfigurationCacheAccessService()
-
setProductConfigurationCacheAccessService
public void setProductConfigurationCacheAccessService(ProductConfigurationCacheAccessService productConfigurationCacheAccessService)
-
getAssignmentResolverStrategy
protected ConfigurationAssignmentResolverStrategy getAssignmentResolverStrategy()
-
setAssignmentResolverStrategy
public void setAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy)
-
getProductConfigurationService
protected ProductConfigurationService getProductConfigurationService()
-
-