Class DefaultTravelManageStockStrategy

java.lang.Object
de.hybris.platform.travelservices.strategies.stock.transport.impl.DefaultTravelManageStockStrategy
All Implemented Interfaces:
TravelManageStockStrategy

public class DefaultTravelManageStockStrategy extends Object implements TravelManageStockStrategy
Default implementation of TravelManageStockStrategy
  • Constructor Details

    • DefaultTravelManageStockStrategy

      public DefaultTravelManageStockStrategy()
  • Method Details

    • reserve

      public void reserve(AbstractOrderEntryModel abstractOrderEntry) throws de.hybris.platform.stock.exception.InsufficientStockLevelException
      Description copied from interface: TravelManageStockStrategy
      Reserves products in the specified warehouse for a given abstractOrderEntry.
      Specified by:
      reserve in interface TravelManageStockStrategy
      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: TravelManageStockStrategy
      Release products for a given abstractOrderEntry.
      Specified by:
      release in interface TravelManageStockStrategy
      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