Class ConfigurationOrderEntryProductInfoModelPopulator
java.lang.Object
de.hybris.platform.sap.productconfig.facades.populator.ConfigurationOrderEntryProductInfoModelPopulator
- All Implemented Interfaces:
Populator<ConfigModel,List<AbstractOrderEntryProductInfoModel>>
public class ConfigurationOrderEntryProductInfoModelPopulator
extends Object
implements Populator<ConfigModel,List<AbstractOrderEntryProductInfoModel>>
Populator to create an AbstractOrderEntryProductInfoModel from a given ConfigurationModel.
AbstractOrderEntryProductInfoModel contains a short list of some values of the related runtime configuration, so it can be used to show a configuration summary within the cart or order, without the need to instantiate the whole configuration, or even to be aware of the configuration at all.
AbstractOrderEntryProductInfoModel contains a short list of some values of the related runtime configuration, so it can be used to show a configuration summary within the cart or order, without the need to instantiate the whole configuration, or even to be aware of the configuration at all.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCsticForCartDisplay(List<AbstractOrderEntryProductInfoModel> configurationInfoModel, CsticModel csticModel, Map<String, ClassificationSystemCPQAttributesContainer> nameMap) protected voidaddInitialConfigurationInfo(List<AbstractOrderEntryProductInfoModel> configurationInfoModel) At least one ConfigurationInfo object has to be added to the target, otherwise no configuration link will be displayed.protected booleandisplayCstic(CsticModel cstic) protected StringgenerateConfigInfoInline(List<CsticValueModel> assignedValues, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isNameProviderDebugEnabled) protected ConfigurationClassificationCacheStrategyvoidpopulate(ConfigModel source, List<AbstractOrderEntryProductInfoModel> target) Populate the target instance with values from the source instance.protected intprocessGroupForCartDisplay(List<AbstractOrderEntryProductInfoModel> target, InstanceModel rootInstance, int numberOfDisplayedCstics, CsticGroup currentGroup, Map<String, ClassificationSystemCPQAttributesContainer> nameMap) voidsetClassificationCacheStrategy(ConfigurationClassificationCacheStrategy configurationClassificationCacheStrategy) voidsetMaxNumberOfDisplayedCsticsInCart(int maxNumberOfDisplayedCsticsInCart) voidsetNameProvider(ClassificationSystemCPQAttributesProvider nameProvider)
-
Constructor Details
-
ConfigurationOrderEntryProductInfoModelPopulator
public ConfigurationOrderEntryProductInfoModelPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ConfigModel,List<AbstractOrderEntryProductInfoModel>> - Parameters:
source- the source objecttarget- the target to fill
-
processGroupForCartDisplay
protected int processGroupForCartDisplay(List<AbstractOrderEntryProductInfoModel> target, InstanceModel rootInstance, int numberOfDisplayedCstics, CsticGroup currentGroup, Map<String, ClassificationSystemCPQAttributesContainer> nameMap) -
addCsticForCartDisplay
protected void addCsticForCartDisplay(List<AbstractOrderEntryProductInfoModel> configurationInfoModel, CsticModel csticModel, Map<String, ClassificationSystemCPQAttributesContainer> nameMap) -
generateConfigInfoInline
protected String generateConfigInfoInline(List<CsticValueModel> assignedValues, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isNameProviderDebugEnabled) -
displayCstic
-
addInitialConfigurationInfo
protected void addInitialConfigurationInfo(List<AbstractOrderEntryProductInfoModel> configurationInfoModel) At least one ConfigurationInfo object has to be added to the target, otherwise no configuration link will be displayed.- Parameters:
configurationInfoModel-
-
setMaxNumberOfDisplayedCsticsInCart
public void setMaxNumberOfDisplayedCsticsInCart(int maxNumberOfDisplayedCsticsInCart) - Parameters:
maxNumberOfDisplayedCsticsInCart- the maxNumberOfDisplayedCsticsInCart to set
-
getNameProvider
- Returns:
- the nameProvider
-
setNameProvider
- Parameters:
nameProvider- the nameProvider to set
-
getClassificationCacheStrategy
-
setClassificationCacheStrategy
public void setClassificationCacheStrategy(ConfigurationClassificationCacheStrategy configurationClassificationCacheStrategy)
-