Class TransportEntryManageStockStrategy

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

public class TransportEntryManageStockStrategy extends Object implements TravelManageStockByEntryTypeStrategy
Concrete implementation to handle transport type entries
  • Constructor Details

    • TransportEntryManageStockStrategy

      public TransportEntryManageStockStrategy()
  • 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
    • getTransportManageStockByProductTypeStrategyMap

      protected Map<String,TravelManageStockStrategy> getTransportManageStockByProductTypeStrategyMap()
      Returns:
      the transportManageStockByProductTypeStrategyMap
    • setTransportManageStockByProductTypeStrategyMap

      public void setTransportManageStockByProductTypeStrategyMap(Map<String,TravelManageStockStrategy> transportManageStockByProductTypeStrategyMap)
      Parameters:
      transportManageStockByProductTypeStrategyMap - the transportManageStockByProductTypeStrategyMap