public class ConfigurationContextAndPricingWrapperImpl extends Object implements ConfigurationContextAndPricingWrapper
| Constructor and Description |
|---|
ConfigurationContextAndPricingWrapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributeToDocumentPricingContext(IDocument documentPricingContext,
String attributeName,
String attributeValue) |
protected void |
addCountrySapCodeToContext(Map<String,String> configContext) |
protected void |
addCustomerNumberToContext(Map<String,String> configContext) |
protected void |
addDistributionChannelToContext(Map<String,String> configContext) |
protected void |
addDivisionsForConditionsToContext(Map<String,String> configContext) |
protected void |
addSalesOrganisationToContext(Map<String,String> configContext) |
protected ConfigModelFactory |
getConfigModelFactory() |
protected ConfigurationParameterB2B |
getConfigurationParameterB2B() |
protected IDocument |
getDocumentPricingContext() |
protected CommonI18NService |
getI18NService() |
protected IItemInfo |
getItemPricingContext(KBKey kbKey) |
protected PricingConfigurationParameter |
getPricingConfigurationParameter() |
protected ProductService |
getProductService() |
protected void |
logConditions(IPricingCondition[] pricingConditions) |
protected void |
logDocumentPricingConditions(IPricingDocument pricingDocument) |
protected void |
logDocumentPricingContext(IDocument documentPricingContext) |
protected void |
logItemPricingContext(IItemInfo itemPricingContext) |
protected void |
logPrices(ICurrencyValue netValue,
Map<String,ICurrencyValue> condFuncValuesMap) |
protected void |
logPricingConditions(IPricingItem pricingItem) |
protected void |
logPricingConfigurationParameters() |
void |
preparePricingContext(IConfigSession session,
String configId,
KBKey kbKey)
Prepares pricing context.
|
void |
processPrice(IConfigSession session,
String configId,
ConfigModel configModel)
Starts price calculation is configuration and pricing engine and put retrieved prices to the configuration model.
|
protected void |
provideCurrentTotalPriceModel(ConfigModel configModel,
ICurrencyValue netValue) |
protected void |
retrieveBasePrice(String targetForBasePrice,
Map<String,ICurrencyValue> condFuncValuesMap,
ConfigModel configModel) |
Hashtable<String,String> |
retrieveConfigurationContext(KBKey kbKey)
Retrieves configuration context.
|
protected void |
retrieveSelectedOptionsPrice(String targetForSelectedOptionsPrice,
Map<String,ICurrencyValue> condFuncValuesMap,
ConfigModel configModel) |
void |
setConfigModelFactory(ConfigModelFactory configModelFactory) |
void |
setConfigurationParameterB2B(ConfigurationParameterB2B configurationParameterB2B) |
void |
setI18NService(CommonI18NService i18nService) |
void |
setPricingConfigurationParameter(PricingConfigurationParameter pricingConfigurationParameter) |
void |
setProductService(ProductService productService) |
public ConfigurationContextAndPricingWrapperImpl()
public void preparePricingContext(IConfigSession session,
String configId,
KBKey kbKey)
throws InteractivePricingException
ConfigurationContextAndPricingWrapperpreparePricingContext in interface ConfigurationContextAndPricingWrappersession - SSC sessionconfigId - configuration IdkbKey - knowledge base dataInteractivePricingExceptionprotected IDocument getDocumentPricingContext()
protected void logDocumentPricingContext(IDocument documentPricingContext)
protected IItemInfo getItemPricingContext(KBKey kbKey)
protected void logItemPricingContext(IItemInfo itemPricingContext)
public void processPrice(IConfigSession session,
String configId,
ConfigModel configModel)
throws InteractivePricingException
ConfigurationContextAndPricingWrapperprocessPrice in interface ConfigurationContextAndPricingWrappersession - SSC sessionconfigId - configuration IdconfigModel - configuration modelInteractivePricingExceptionprotected void provideCurrentTotalPriceModel(ConfigModel configModel, ICurrencyValue netValue)
protected void retrieveBasePrice(String targetForBasePrice, Map<String,ICurrencyValue> condFuncValuesMap, ConfigModel configModel)
protected void retrieveSelectedOptionsPrice(String targetForSelectedOptionsPrice, Map<String,ICurrencyValue> condFuncValuesMap, ConfigModel configModel)
protected void logPrices(ICurrencyValue netValue,
Map<String,ICurrencyValue> condFuncValuesMap)
protected void logPricingConditions(IPricingItem pricingItem)
protected void logDocumentPricingConditions(IPricingDocument pricingDocument)
protected void logConditions(IPricingCondition[] pricingConditions)
protected void logPricingConfigurationParameters()
public Hashtable<String,String> retrieveConfigurationContext(KBKey kbKey)
ConfigurationContextAndPricingWrapperHashtable here instead of the preferred Map as SSC needs
it for its map representing the configuration contextretrieveConfigurationContext in interface ConfigurationContextAndPricingWrapperkbKey - knowledge base dataprotected void addDivisionsForConditionsToContext(Map<String,String> configContext)
protected void addDistributionChannelToContext(Map<String,String> configContext)
protected void addSalesOrganisationToContext(Map<String,String> configContext)
protected void addCountrySapCodeToContext(Map<String,String> configContext)
protected void addCustomerNumberToContext(Map<String,String> configContext)
protected void addAttributeToDocumentPricingContext(IDocument documentPricingContext,
String attributeName,
String attributeValue)
public void setI18NService(CommonI18NService i18nService)
public void setPricingConfigurationParameter(PricingConfigurationParameter pricingConfigurationParameter)
public void setConfigurationParameterB2B(ConfigurationParameterB2B configurationParameterB2B)
public void setProductService(ProductService productService)
protected CommonI18NService getI18NService()
protected PricingConfigurationParameter getPricingConfigurationParameter()
protected ConfigurationParameterB2B getConfigurationParameterB2B()
protected ProductService getProductService()
public void setConfigModelFactory(ConfigModelFactory configModelFactory)
protected ConfigModelFactory getConfigModelFactory()
Copyright © 2017 SAP SE. All Rights Reserved.