Class ConfigurationOrderEntryProductInfoModelPopulator
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.populator.ConfigurationOrderEntryProductInfoModelPopulator
-
- All Implemented Interfaces:
Populator<ConfigModel,java.util.List<AbstractOrderEntryProductInfoModel>>
public class ConfigurationOrderEntryProductInfoModelPopulator extends java.lang.Object implements Populator<ConfigModel,java.util.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.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationOrderEntryProductInfoModelPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCsticForCartDisplay(java.util.List<AbstractOrderEntryProductInfoModel> configurationInfoModel, CsticModel csticModel, java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> nameMap)protected voidaddInitialConfigurationInfo(java.util.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 java.lang.StringgenerateConfigInfoInline(java.util.List<CsticValueModel> assignedValues, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isNameProviderDebugEnabled)protected ConfigurationClassificationCacheStrategygetClassificationCacheStrategy()ClassificationSystemCPQAttributesProvidergetNameProvider()voidpopulate(ConfigModel source, java.util.List<AbstractOrderEntryProductInfoModel> target)Populate the target instance with values from the source instance.protected intprocessGroupForCartDisplay(java.util.List<AbstractOrderEntryProductInfoModel> target, InstanceModel rootInstance, int numberOfDisplayedCstics, CsticGroupModel currentGroup, java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> nameMap)voidsetClassificationCacheStrategy(ConfigurationClassificationCacheStrategy configurationClassificationCacheStrategy)voidsetMaxNumberOfDisplayedCsticsInCart(int maxNumberOfDisplayedCsticsInCart)voidsetNameProvider(ClassificationSystemCPQAttributesProvider nameProvider)
-
-
-
Method Detail
-
populate
public void populate(ConfigModel source, java.util.List<AbstractOrderEntryProductInfoModel> target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ConfigModel,java.util.List<AbstractOrderEntryProductInfoModel>>- Parameters:
source- the source objecttarget- the target to fill
-
processGroupForCartDisplay
protected int processGroupForCartDisplay(java.util.List<AbstractOrderEntryProductInfoModel> target, InstanceModel rootInstance, int numberOfDisplayedCstics, CsticGroupModel currentGroup, java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> nameMap)
-
addCsticForCartDisplay
protected void addCsticForCartDisplay(java.util.List<AbstractOrderEntryProductInfoModel> configurationInfoModel, CsticModel csticModel, java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> nameMap)
-
generateConfigInfoInline
protected java.lang.String generateConfigInfoInline(java.util.List<CsticValueModel> assignedValues, CsticModel csticModel, ClassificationSystemCPQAttributesContainer cpqAttributes, boolean isNameProviderDebugEnabled)
-
displayCstic
protected boolean displayCstic(CsticModel cstic)
-
addInitialConfigurationInfo
protected void addInitialConfigurationInfo(java.util.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
public ClassificationSystemCPQAttributesProvider getNameProvider()
- Returns:
- the nameProvider
-
setNameProvider
public void setNameProvider(ClassificationSystemCPQAttributesProvider nameProvider)
- Parameters:
nameProvider- the nameProvider to set
-
getClassificationCacheStrategy
protected ConfigurationClassificationCacheStrategy getClassificationCacheStrategy()
-
setClassificationCacheStrategy
public void setClassificationCacheStrategy(ConfigurationClassificationCacheStrategy configurationClassificationCacheStrategy)
-
-