Class PackageProductStockHandler

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

public class PackageProductStockHandler extends Object implements StandardPackageProductHandler
Concrete implementation of the StandardPackageProductHandler interface. This handler is responsible to populate the stockData of the productData for each PackageProductData. If a product is not available the stock will be 0; if it is available the stock will be > 0; if it is FORCE_IN_STOCK the stock will be null.
  • Constructor Details

    • PackageProductStockHandler

      public PackageProductStockHandler()
  • 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
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
      Returns:
      the productService
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      Parameters:
      productService - the productService to set
    • getCommerceStockService

      protected TravelCommerceStockService getCommerceStockService()
      Returns:
      the commerceStockService
    • setCommerceStockService

      public void setCommerceStockService(TravelCommerceStockService commerceStockService)
      Parameters:
      commerceStockService - the commerceStockService to set
    • getWarehouseService

      protected de.hybris.platform.ordersplitting.WarehouseService getWarehouseService()
      Returns:
      the warehouseService
    • setWarehouseService

      public void setWarehouseService(de.hybris.platform.ordersplitting.WarehouseService warehouseService)
      Parameters:
      warehouseService - the warehouseService to set