Class PackageProductStockHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.handlers.impl.PackageProductStockHandler
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TravelCommerceStockServiceprotected de.hybris.platform.product.ProductServiceprotected de.hybris.platform.ordersplitting.WarehouseServicevoidhandle(BundleTemplateData bundleTemplate, List<PackageProductData> packageProductDataList) Handle method.voidsetCommerceStockService(TravelCommerceStockService commerceStockService) voidsetProductService(de.hybris.platform.product.ProductService productService) voidsetWarehouseService(de.hybris.platform.ordersplitting.WarehouseService warehouseService)
-
Constructor Details
-
PackageProductStockHandler
public PackageProductStockHandler()
-
-
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
-
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
- Returns:
- the commerceStockService
-
setCommerceStockService
- 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
-