Class ProductConfigRuleUtilImpl

    • Constructor Detail

      • ProductConfigRuleUtilImpl

        public ProductConfigRuleUtilImpl()
    • Method Detail

      • getPlainCstic

        protected void getPlainCstic​(InstanceModel instance,
                                     java.util.List<CsticModel> cstics,
                                     java.util.Map<java.lang.String,​CsticModel> csticMap)
      • getPlainCsticFromSubInstance

        protected void getPlainCsticFromSubInstance​(java.util.List<InstanceModel> subInstances,
                                                    java.util.List<CsticModel> cstics,
                                                    java.util.Map<java.lang.String,​CsticModel> csticMap)
      • getPlainCstics

        protected void getPlainCstics​(InstanceModel instance,
                                      java.util.List<CsticModel> cstics,
                                      java.util.Map<java.lang.String,​CsticModel> csticMap)
      • getCstics

        public java.util.List<CsticModel> getCstics​(ConfigModel source)
        Description copied from interface: ProductConfigRuleUtil
        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.
        Specified by:
        getCstics in interface ProductConfigRuleUtil
        Parameters:
        source - configuration model
        Returns:
        characteristic list of configurable product
      • getCsticMap

        public java.util.Map<java.lang.String,​CsticModel> getCsticMap​(ConfigModel source)
        Description copied from interface: ProductConfigRuleUtil
        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.
        Specified by:
        getCsticMap in interface ProductConfigRuleUtil
        Parameters:
        source - configuration model
        Returns:
        characteristics of configurable product as a map
      • calculateInitialSize

        protected int calculateInitialSize​(ConfigModel source)
      • getCsticsForCsticName

        public java.util.List<CsticModel> getCsticsForCsticName​(ConfigModel source,
                                                                java.lang.String csticName)
        Description copied from interface: ProductConfigRuleUtil
        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.
        Specified by:
        getCsticsForCsticName in interface ProductConfigRuleUtil
        Parameters:
        source - configuration model
        csticName - characteristic name
        Returns:
        characteristic list of configurable product
      • getCsticForInstance

        protected void getCsticForInstance​(InstanceModel instance,
                                           java.util.List<CsticModel> cstics,
                                           java.lang.String csticName)