Class ProductConfigRuleUtilImpl
java.lang.Object
de.hybris.platform.sap.productconfig.rules.service.impl.ProductConfigRuleUtilImpl
- All Implemented Interfaces:
ProductConfigRuleUtil
Default implementation of the
ProductConfigRuleUtil.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateInitialSize(ConfigModel source) protected voidgetCsticForInstance(InstanceModel instance, List<CsticModel> cstics, String csticName) getCsticMap(ConfigModel source) Retrieves characteristics of configurable product as a map.getCstics(ConfigModel source) Retrieves flat characteristic list of configurable product.getCsticsForCsticName(ConfigModel source, String csticName) Retrieves characteristic list of configurable product for characteristics with given name .protected voidgetPlainCstic(InstanceModel instance, List<CsticModel> cstics, Map<String, CsticModel> csticMap) protected voidgetPlainCsticFromSubInstance(List<InstanceModel> subInstances, List<CsticModel> cstics, Map<String, CsticModel> csticMap) protected voidgetPlainCstics(InstanceModel instance, List<CsticModel> cstics, Map<String, CsticModel> csticMap)
-
Field Details
-
LIST_INITIAL_CAPACITY_CALCULATE_DIVISOR
public static final double LIST_INITIAL_CAPACITY_CALCULATE_DIVISOR- See Also:
-
LIST_INITIAL_CAPACITY_CALCULATOR_SCALE
public static final int LIST_INITIAL_CAPACITY_CALCULATOR_SCALE- See Also:
-
-
Constructor Details
-
ProductConfigRuleUtilImpl
public ProductConfigRuleUtilImpl()
-
-
Method Details
-
getPlainCstic
protected void getPlainCstic(InstanceModel instance, List<CsticModel> cstics, Map<String, CsticModel> csticMap) -
getPlainCsticFromSubInstance
protected void getPlainCsticFromSubInstance(List<InstanceModel> subInstances, List<CsticModel> cstics, Map<String, CsticModel> csticMap) -
getPlainCstics
protected void getPlainCstics(InstanceModel instance, List<CsticModel> cstics, Map<String, CsticModel> csticMap) -
getCstics
Description copied from interface:ProductConfigRuleUtilRetrieves flat characteristic list of configurable product. In case of multilevel product sub-instance cstics are considered as well. If a cstic is available in more than one (sub-)instance, only its first occurrence is used.- Specified by:
getCsticsin interfaceProductConfigRuleUtil- Parameters:
source- configuration model- Returns:
- characteristic list of configurable product
-
getCsticMap
Description copied from interface:ProductConfigRuleUtilRetrieves characteristics of configurable product as a map. In case of multilevel product sub-instance cstics are considered as well. If a cstic is available in more than one (sub-)instance, only its first occurrence is used.- Specified by:
getCsticMapin interfaceProductConfigRuleUtil- Parameters:
source- configuration model- Returns:
- characteristics of configurable product as a map
-
calculateInitialSize
-
getCsticsForCsticName
Description copied from interface:ProductConfigRuleUtilRetrieves characteristic list of configurable product for characteristics with given name . In case of multilevel product sub-instance cstics are considered as well. If a cstic is available in more than one (sub-)instance, all occurrences are retrieved.- Specified by:
getCsticsForCsticNamein interfaceProductConfigRuleUtil- Parameters:
source- configuration modelcsticName- characteristic name- Returns:
- characteristic list of configurable product
-
getCsticForInstance
protected void getCsticForInstance(InstanceModel instance, List<CsticModel> cstics, String csticName)
-