Class PackageProductBasicHandler

java.lang.Object
de.hybris.platform.travelfacades.facades.packages.handlers.impl.PackageProductBasicHandler
All Implemented Interfaces:
StandardPackageProductHandler

public class PackageProductBasicHandler extends Object implements 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 Details

    • PackageProductBasicHandler

      public PackageProductBasicHandler()
  • Method Details

    • handle

      public void handle(BundleTemplateData bundleTemplate, List<PackageProductData> packageProductDataList)
      Description copied from interface: StandardPackageProductHandler
      Handle method.
      Specified by:
      handle in interface StandardPackageProductHandler
      Parameters:
      bundleTemplate - the bundle template data
      packageProductDataList - the list of package product data list
    • getTotalNumberOfTravellers

      protected int getTotalNumberOfTravellers(String bundleTemplateId)
      Returns the total number of travellers based on the GuestCountModel of 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