Interface ProductConfigRuleUtil

  • All Known Implementing Classes:
    ProductConfigRuleUtilImpl

    public interface ProductConfigRuleUtil
    ProductConfigRuleUtil provided characteristics of a configurable product as a flat list or map.
    • Method Detail

      • getCstics

        java.util.List<CsticModel> getCstics​(ConfigModel source)
        Retrieves 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.
        Parameters:
        source - configuration model
        Returns:
        characteristic list of configurable product
      • getCsticMap

        java.util.Map<java.lang.String,​CsticModel> getCsticMap​(ConfigModel source)
        Retrieves 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.
        Parameters:
        source - configuration model
        Returns:
        characteristics of configurable product as a map
      • getCsticsForCsticName

        java.util.List<CsticModel> getCsticsForCsticName​(ConfigModel source,
                                                         java.lang.String csticName)
        Retrieves 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.
        Parameters:
        source - configuration model
        csticName - characteristic name
        Returns:
        characteristic list of configurable product