Class DefaultTransportProductManageStockStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.stock.transport.impl.DefaultTransportProductManageStockStrategy
- All Implemented Interfaces:
TravelManageStockStrategy
- Direct Known Subclasses:
DefaultShoppingTravelManageStockStrategy
public class DefaultTransportProductManageStockStrategy
extends Object
implements TravelManageStockStrategy
Concrete implementation to handle release and reservation for product types with no specific strategy. This strategy
behaves as a dispatcher to call a specific strategy from a map according with the AddToCartCriteria
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AddToCartCriteriaTypegetAddToCartCriteria(ProductModel product) protected Map<AddToCartCriteriaType,TravelManageStockStrategy> protected TravelRestrictionServicevoidrelease(AbstractOrderEntryModel abstractOrderEntry) Release products for a given abstractOrderEntry.voidreserve(AbstractOrderEntryModel abstractOrderEntry) Reserves products in the specified warehouse for a given abstractOrderEntry.voidsetTravelManageStockStrategyMap(Map<AddToCartCriteriaType, TravelManageStockStrategy> travelManageStockStrategyMap) voidsetTravelRestrictionService(TravelRestrictionService travelRestrictionService)
-
Constructor Details
-
DefaultTransportProductManageStockStrategy
public DefaultTransportProductManageStockStrategy()
-
-
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
-
getAddToCartCriteria
-
getTravelManageStockStrategyMap
-
setTravelManageStockStrategyMap
public void setTravelManageStockStrategyMap(Map<AddToCartCriteriaType, TravelManageStockStrategy> travelManageStockStrategyMap) -
getTravelRestrictionService
-
setTravelRestrictionService
-