Class SimplePricingConfigurationParameter
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.mock.impl.SimplePricingConfigurationParameter
- All Implemented Interfaces:
PricingConfigurationParameter
public class SimplePricingConfigurationParameter
extends Object
implements PricingConfigurationParameter
Simple implementation of
PricingConfigurationParameter that is active if no SAP integration is deployed. Will
not access any persistence but just hard codes the pricing customizing for the usage with the mock configuration
engine-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertSapToIsoCode(String sapCode) Converts a given SAP code currency code into the corresponding ISO currency codeRetrieves the distribution channel used for condition determination.Retrieves the division used for condition determination.Retrieves the sales organization.booleanRetrieves the value of the flag for activating of pricing on the product configuration page.retrieveCurrencyIsoCode(CurrencyModel currencyModel) Retrieves the ISO currency code for a givenCurrencyModel.retrieveCurrencySapCode(CurrencyModel currencyModel) Won't return the SAP code as it is not available without SAP integration.retrieveUnitIsoCode(UnitModel unitModel) Retrieves the ISO unit of measure code for a givenUnitModel.retrieveUnitSapCode(UnitModel unitModel) Won't return the SAP code as it is not available without SAP integration.voidsetProductDeltaPriceDecision(Map<String, Boolean> productDeltaPriceDecision) booleanRetrieves the value of the flag for activating of displaying of the base price and selected options on the product configuration page.booleanRetrieves the value of the flag for activating of displaying of the delta prices for values.booleanshowDeltaPrices(String productCode) Retrieves the value of the flag for activating of displaying of the delta prices for values and may take the current product into account.
-
Constructor Details
-
SimplePricingConfigurationParameter
public SimplePricingConfigurationParameter()
-
-
Method Details
-
getProductDeltaPriceDecision
-
setProductDeltaPriceDecision
-
isPricingSupported
public boolean isPricingSupported()Description copied from interface:PricingConfigurationParameterRetrieves the value of the flag for activating of pricing on the product configuration page. If inactive, no pricing information is shown.- Specified by:
isPricingSupportedin interfacePricingConfigurationParameter- Returns:
- the value of the flag for activating of pricing
-
getSalesOrganization
Description copied from interface:PricingConfigurationParameterRetrieves the sales organization.- Specified by:
getSalesOrganizationin interfacePricingConfigurationParameter- Returns:
- the sales organization
-
getDistributionChannelForConditions
Description copied from interface:PricingConfigurationParameterRetrieves the distribution channel used for condition determination.- Specified by:
getDistributionChannelForConditionsin interfacePricingConfigurationParameter- Returns:
- the the distribution channel
-
getDivisionForConditions
Description copied from interface:PricingConfigurationParameterRetrieves the division used for condition determination.- Specified by:
getDivisionForConditionsin interfacePricingConfigurationParameter- Returns:
- the the division
-
retrieveCurrencySapCode
Won't return the SAP code as it is not available without SAP integration. Instead returns ISO code.- Specified by:
retrieveCurrencySapCodein interfacePricingConfigurationParameter- Parameters:
currencyModel- currency model- Returns:
- the SAP currency code
-
retrieveUnitSapCode
Won't return the SAP code as it is not available without SAP integration. Instead returns ISO code.- Specified by:
retrieveUnitSapCodein interfacePricingConfigurationParameter- Parameters:
unitModel- unit model- Returns:
- the SAP unit of measure code
-
showBasePriceAndSelectedOptions
public boolean showBasePriceAndSelectedOptions()Description copied from interface:PricingConfigurationParameterRetrieves the value of the flag for activating of displaying of the base price and selected options on the product configuration page. If inactive, no base price and selected options are shown.- Specified by:
showBasePriceAndSelectedOptionsin interfacePricingConfigurationParameter- Returns:
- the value of the flag for activating of displaying of the base price and selected options
-
showDeltaPrices
public boolean showDeltaPrices()Description copied from interface:PricingConfigurationParameterRetrieves the value of the flag for activating of displaying of the delta prices for values. If inactive, absolute value prices are shown.- Specified by:
showDeltaPricesin interfacePricingConfigurationParameter- Returns:
- the value of the flag for activating of displaying of the delta prices for values
-
showDeltaPrices
Description copied from interface:PricingConfigurationParameterRetrieves the value of the flag for activating of displaying of the delta prices for values and may take the current product into account. If inactive, absolute value prices are shown.- Specified by:
showDeltaPricesin interfacePricingConfigurationParameter- Returns:
- the value of the flag for activating of displaying of the delta prices for values
-
retrieveCurrencyIsoCode
Description copied from interface:PricingConfigurationParameterRetrieves the ISO currency code for a givenCurrencyModel.- Specified by:
retrieveCurrencyIsoCodein interfacePricingConfigurationParameter- Parameters:
currencyModel- currency model- Returns:
- the ISO currency code
-
retrieveUnitIsoCode
Description copied from interface:PricingConfigurationParameterRetrieves the ISO unit of measure code for a givenUnitModel.- Specified by:
retrieveUnitIsoCodein interfacePricingConfigurationParameter- Parameters:
unitModel- unit model- Returns:
- the ISO unit of measure code
-
convertSapToIsoCode
Description copied from interface:PricingConfigurationParameterConverts a given SAP code currency code into the corresponding ISO currency code- Specified by:
convertSapToIsoCodein interfacePricingConfigurationParameter- Parameters:
sapCode- SAP currency code- Returns:
- ISO currency code
-