Class DefaultOrderCreateOrderEntriesHandler
java.lang.Object
de.hybris.platform.ndc182facades.facades.order.handlers.impl.DefaultOrderCreateOrderEntriesHandler
- All Implemented Interfaces:
OrderCreateHandler
The ndc 18.2 implementation of of
OrderCreateHandler interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.order.CalculationServiceGets calculation service.protected NDCOrderServiceGets ndc order service.protected Map<String,OrderCreateOrderEntriesStrategy> Gets order create order entries strategy map.voidhandle(Map<String, List<NDCOfferData>> ndcOfferDataMap, OrderModel order, IATAOrderCreateRQ orderCreateRQ) This handler creates all the order entries by applying a strategy based on the type of the ndcOfferData.voidsetCalculationService(de.hybris.platform.order.CalculationService calculationService) Sets calculation service.voidsetNdcOrderService(NDCOrderService ndcOrderService) Sets ndc order service.voidsetOrderCreateOrderEntriesStrategyMap(Map<String, OrderCreateOrderEntriesStrategy> orderCreateOrderEntriesStrategyMap) Sets order create order entries strategy map.
-
Constructor Details
-
DefaultOrderCreateOrderEntriesHandler
public DefaultOrderCreateOrderEntriesHandler()
-
-
Method Details
-
handle
public void handle(Map<String, List<NDCOfferData>> ndcOfferDataMap, OrderModel order, IATAOrderCreateRQ orderCreateRQ) throws NDCExceptionThis handler creates all the order entries by applying a strategy based on the type of the ndcOfferData. The first entries to be added must be of the type NDCCarrierOfferData, since we need to add the bundles before the ancillaries.- Specified by:
handlein interfaceOrderCreateHandler- Parameters:
ndcOfferDataMap- the ndcOfferDataMaporder- the orderorderCreateRQ- the orderCreateRQ- Throws:
NDCException
-
getOrderCreateOrderEntriesStrategyMap
Gets order create order entries strategy map.- Returns:
- the order create order entries strategy map
-
setOrderCreateOrderEntriesStrategyMap
public void setOrderCreateOrderEntriesStrategyMap(Map<String, OrderCreateOrderEntriesStrategy> orderCreateOrderEntriesStrategyMap) Sets order create order entries strategy map.- Parameters:
orderCreateOrderEntriesStrategyMap- the order create order entries strategy map
-
getCalculationService
protected de.hybris.platform.order.CalculationService getCalculationService()Gets calculation service.- Returns:
- the calculation service
-
setCalculationService
public void setCalculationService(de.hybris.platform.order.CalculationService calculationService) Sets calculation service.- Parameters:
calculationService- the calculation service
-
getNdcOrderService
Gets ndc order service.- Returns:
- the ndc order service
-
setNdcOrderService
Sets ndc order service.- Parameters:
ndcOrderService- the ndc order service
-