Class PackageProductBasicHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.handlers.impl.PackageProductBasicHandler
- All Implemented Interfaces:
StandardPackageProductHandler
Concrete implementation of the
StandardPackageProductHandler interface. This handler is responsible to create one
PackageProductData for each productModel in the given bundleTemplate and to set the productData and the quantity on the
newly created PackageProductData.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateServiceprotected intgetTotalNumberOfTravellers(String bundleTemplateId) Returns the total number of travellers based on theGuestCountModelof the root template for the given bundle Idvoidhandle(BundleTemplateData bundleTemplate, List<PackageProductData> packageProductDataList) Handle method.voidsetBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService)
-
Constructor Details
-
PackageProductBasicHandler
public PackageProductBasicHandler()
-
-
Method Details
-
handle
public void handle(BundleTemplateData bundleTemplate, List<PackageProductData> packageProductDataList) Description copied from interface:StandardPackageProductHandlerHandle method.- Specified by:
handlein interfaceStandardPackageProductHandler- Parameters:
bundleTemplate- the bundle template datapackageProductDataList- the list of package product data list
-
getTotalNumberOfTravellers
Returns the total number of travellers based on theGuestCountModelof the root template for the given bundle Id- Parameters:
bundleTemplateId- the bundleTemplate id- Returns:
- the int representing the total number of travellers
-
getBundleTemplateService
protected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService getBundleTemplateService()- Returns:
- the bundleTemplateService
-
setBundleTemplateService
public void setBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) - Parameters:
bundleTemplateService- the bundleTemplateService to set
-