Class ProductConfigRAOPopulator
java.lang.Object
de.hybris.platform.sap.productconfig.rules.rao.populator.ProductConfigRAOPopulator
- All Implemented Interfaces:
Populator<ConfigModel,ProductConfigRAO>
public class ProductConfigRAOPopulator
extends Object
implements Populator<ConfigModel,ProductConfigRAO>
Populator for the
ProductConfigRAO-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCsticRAOs(List<CsticModel> cstics, String configId) protected List<CsticValueRAO>createCsticValueRAOs(CsticModel cstic, Map<String, CsticValueRAO> assignableValuesMap, String configId) protected ConfigurationAssignmentResolverStrategyprotected List<CsticValueRAO>getCsticValueRAOs(CsticModel cstic, Map<String, CsticValueRAO> assignableValuesMap, String configId) Loops over given list of values and retrieves appropriate object from the passed assignableValuesMap.protected ProductConfigRuleFormatTranslatorprotected ProductConfigRuleUtilvoidpopulate(ConfigModel source, ProductConfigRAO target) Populate the target instance with values from the source instance.voidsetAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy) voidsetRulesFormator(ProductConfigRuleFormatTranslator rulesFormator) voidsetRuleUtil(ProductConfigRuleUtil ruleUtil)
-
Constructor Details
-
ProductConfigRAOPopulator
public ProductConfigRAOPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ConfigModel,ProductConfigRAO> - Parameters:
source- the source objecttarget- the target to fill
-
createCsticRAOs
-
createCsticValueRAOs
protected List<CsticValueRAO> createCsticValueRAOs(CsticModel cstic, Map<String, CsticValueRAO> assignableValuesMap, String configId) -
getCsticValueRAOs
protected List<CsticValueRAO> getCsticValueRAOs(CsticModel cstic, Map<String, CsticValueRAO> assignableValuesMap, String configId) Loops over given list of values and retrieves appropriate object from the passed assignableValuesMap. -
getRulesFormator
-
setRulesFormator
- Parameters:
rulesFormator-
-
getRuleUtil
-
setRuleUtil
- Parameters:
ruleUtil-
-
getAssignmentResolverStrategy
-
setAssignmentResolverStrategy
public void setAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy)
-