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 java.lang.Object implements Populator<SOURCE,TARGET>
Populator implementation forBundleTemplateModelas source andBundleTemplateDataas target type.
-
-
Constructor Summary
Constructors Constructor Description BundleTemplatePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BundleTemplateServicegetBundleTemplateService()protected java.lang.StringgetFullPath(SOURCE component)protected intgetMaxNoOfProductsAllowed(BundleTemplateModel bundleTemplate)Helper method to find maximum possible product selections for the given BundleTemplate based on Selection criteria.voidpopulate(SOURCE source, TARGET target)Populate the target instance with values from the source instance.voidsetBundleTemplateService(BundleTemplateService bundleTemplateService)
-
-
-
Method Detail
-
populate
public void populate(SOURCE source, TARGET target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SOURCE extends BundleTemplateModel,TARGET extends BundleTemplateData>- Parameters:
source- the source objecttarget- 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 java.lang.String getFullPath(SOURCE component)
-
getBundleTemplateService
protected BundleTemplateService getBundleTemplateService()
-
setBundleTemplateService
public void setBundleTemplateService(BundleTemplateService bundleTemplateService)
-
-