Class BundleTemplatePopulator<SOURCE extends BundleTemplateModel,TARGET extends BundleTemplateData>

java.lang.Object
de.hybris.platform.configurablebundlefacades.converters.populator.BundleTemplatePopulator<SOURCE,TARGET>
All Implemented Interfaces:
Populator<SOURCE,TARGET>

public class BundleTemplatePopulator<SOURCE extends BundleTemplateModel,TARGET extends BundleTemplateData> extends Object implements Populator<SOURCE,TARGET>
Populator implementation for BundleTemplateModel as source and BundleTemplateData as target type.
  • Constructor Details

    • BundleTemplatePopulator

      public BundleTemplatePopulator()
  • Method Details

    • populate

      public void populate(SOURCE source, TARGET target)
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<SOURCE extends BundleTemplateModel,TARGET extends BundleTemplateData>
      Parameters:
      source - the source object
      target - the target to fill
    • getMaxNoOfProductsAllowed

      protected int getMaxNoOfProductsAllowed(BundleTemplateModel bundleTemplate)
      Helper method to find maximum possible product selections for the given BundleTemplate based on Selection criteria.
      Parameters:
      bundleTemplate -
      Returns:
      Number of products allowed to the BundleTemplate
    • getFullPath

      protected String getFullPath(SOURCE component)
    • getBundleTemplateService

      protected BundleTemplateService getBundleTemplateService()
    • setBundleTemplateService

      public void setBundleTemplateService(BundleTemplateService bundleTemplateService)