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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BundleTemplateServiceprotected StringgetFullPath(SOURCE component) protected intgetMaxNoOfProductsAllowed(BundleTemplateModel bundleTemplate) Helper method to find maximum possible product selections for the given BundleTemplate based on Selection criteria.voidPopulate the target instance with values from the source instance.voidsetBundleTemplateService(BundleTemplateService bundleTemplateService)
-
Constructor Details
-
BundleTemplatePopulator
public BundleTemplatePopulator()
-
-
Method Details
-
populate
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
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
-
getBundleTemplateService
-
setBundleTemplateService
-