Class ConfigurationOverviewValuePopulator
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.populator.ConfigurationOverviewValuePopulator
-
- All Implemented Interfaces:
ConfigurablePopulator<CsticValueModel,CharacteristicValue,java.util.Map>
public class ConfigurationOverviewValuePopulator extends java.lang.Object implements ConfigurablePopulator<CsticValueModel,CharacteristicValue,java.util.Map>
Transforms anCsticValueModelinto into a list ofCharacteristicValuedata as required by the configuration overview page.
It is typically called by theConfigurationOverviewInstancePopulator.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationOverviewValuePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigPricingImplgetConfigPricing()protected java.lang.StringgetCsticPriceDescription(PriceData price)protected ClassificationSystemCPQAttributesProvidergetNameProvider()ValueFormatTranslatorgetValueFormatTranslator()voidpopulate(CsticValueModel source, CharacteristicValue target, java.util.Collection<java.util.Map> options)Populate the target instance from the source instance.protected CharacteristicValueMessageprocessMessage(ProductConfigMessage productConfigMessage)protected java.util.List<CharacteristicValueMessage>processMessages(java.util.Set<ProductConfigMessage> sourceMessages)voidsetConfigPricing(ConfigPricingImpl configPricing)voidsetNameProvider(ClassificationSystemCPQAttributesProvider nameProvider)voidsetValueFormatTranslator(ValueFormatTranslator valueFormatTranslator)Set the value format translator
-
-
-
Method Detail
-
populate
public void populate(CsticValueModel source, CharacteristicValue target, java.util.Collection<java.util.Map> options)
Description copied from interface:ConfigurablePopulatorPopulate the target instance from the source instance. The collection of options is used to control what data is populated.- Specified by:
populatein interfaceConfigurablePopulator<CsticValueModel,CharacteristicValue,java.util.Map>- Parameters:
source- the source objecttarget- the target to filloptions- options used to control what data is populated
-
processMessages
protected java.util.List<CharacteristicValueMessage> processMessages(java.util.Set<ProductConfigMessage> sourceMessages)
-
processMessage
protected CharacteristicValueMessage processMessage(ProductConfigMessage productConfigMessage)
-
getCsticPriceDescription
protected java.lang.String getCsticPriceDescription(PriceData price)
-
getNameProvider
protected ClassificationSystemCPQAttributesProvider getNameProvider()
- Returns:
- the hybris characteristic and value name provider
-
setNameProvider
public void setNameProvider(ClassificationSystemCPQAttributesProvider nameProvider)
- Parameters:
nameProvider- hybris characteristic and value name provider
-
getConfigPricing
public ConfigPricingImpl getConfigPricing()
- Returns:
- the configPricing
-
setConfigPricing
public void setConfigPricing(ConfigPricingImpl configPricing)
- Parameters:
configPricing- the configPricing to set
-
getValueFormatTranslator
public ValueFormatTranslator getValueFormatTranslator()
- Returns:
- The valueformat translator
-
setValueFormatTranslator
public void setValueFormatTranslator(ValueFormatTranslator valueFormatTranslator)
Set the value format translator- Parameters:
valueFormatTranslator- the value format translator
-
-