Class DefaultEntryTypeManageStockStrategy

java.lang.Object
de.hybris.platform.travelservices.strategies.stock.impl.DefaultEntryTypeManageStockStrategy
All Implemented Interfaces:
TravelManageStockByEntryTypeStrategy
Direct Known Subclasses:
ShoppingDefaultEntryTypeManageStockStrategy

public class DefaultEntryTypeManageStockStrategy extends Object implements TravelManageStockByEntryTypeStrategy
Strategy to reserve and release stocks for products belonging to default warehouse
  • Constructor Details

    • DefaultEntryTypeManageStockStrategy

      public DefaultEntryTypeManageStockStrategy()
  • Method Details

    • reserve

      public void reserve(AbstractOrderEntryModel abstractOrderEntry) throws de.hybris.platform.stock.exception.InsufficientStockLevelException
      Description copied from interface: TravelManageStockByEntryTypeStrategy
      Handles stock reservation for a given abstractOrderEntry belonging to a given type.
      Specified by:
      reserve in interface TravelManageStockByEntryTypeStrategy
      Parameters:
      abstractOrderEntry - the abstract order entry
      Throws:
      de.hybris.platform.stock.exception.InsufficientStockLevelException - the insufficient stock level exception
    • release

      public void release(AbstractOrderEntryModel abstractOrderEntry)
      Description copied from interface: TravelManageStockByEntryTypeStrategy
      Handles stock releasing for a given abstractOrderEntry belonging to a given type.
      Specified by:
      release in interface TravelManageStockByEntryTypeStrategy
      Parameters:
      abstractOrderEntry - the abstract order entry
    • getStockService

      protected de.hybris.platform.stock.StockService getStockService()
      Returns:
      the stockService
    • setStockService

      public void setStockService(de.hybris.platform.stock.StockService stockService)
      Parameters:
      stockService - the stockService 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