Class DefaultTravelManageStockStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.stock.transport.impl.DefaultTravelManageStockStrategy
- All Implemented Interfaces:
TravelManageStockStrategy
Default implementation of
TravelManageStockStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.stock.StockServicevoidrelease(AbstractOrderEntryModel abstractOrderEntry) Release products for a given abstractOrderEntry.voidreserve(AbstractOrderEntryModel abstractOrderEntry) Reserves products in the specified warehouse for a given abstractOrderEntry.voidsetStockService(de.hybris.platform.stock.StockService stockService)
-
Constructor Details
-
DefaultTravelManageStockStrategy
public DefaultTravelManageStockStrategy()
-
-
Method Details
-
reserve
public void reserve(AbstractOrderEntryModel abstractOrderEntry) throws de.hybris.platform.stock.exception.InsufficientStockLevelException Description copied from interface:TravelManageStockStrategyReserves products in the specified warehouse for a given abstractOrderEntry.- Specified by:
reservein interfaceTravelManageStockStrategy- Parameters:
abstractOrderEntry- the abstract order entry- Throws:
de.hybris.platform.stock.exception.InsufficientStockLevelException- the insufficient stock level exception
-
release
Description copied from interface:TravelManageStockStrategyRelease products for a given abstractOrderEntry.- Specified by:
releasein interfaceTravelManageStockStrategy- 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
-