Class WarehouseResponseExecutor
java.lang.Object
de.hybris.platform.ordercancel.impl.executors.WarehouseResponseExecutor
- All Implemented Interfaces:
NotificationServiceAdapterDependent,PaymentServiceAdapterDependent,OrderCancelResponseExecutor
- Direct Known Subclasses:
OmsWarehouseResponseExecutor
public class WarehouseResponseExecutor
extends Object
implements OrderCancelResponseExecutor, NotificationServiceAdapterDependent, PaymentServiceAdapterDependent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalizeCancelProcessing(OrderCancelResponse orderCancelResponse, OrderCancelRecordEntryModel cancelRequestRecordEntry) protected voidmodifyOrderAccordingToRequest(OrderCancelResponse cancelResponse) voidprocessCancelResponse(OrderCancelResponse orderCancelResponse, OrderCancelRecordEntryModel cancelRequestRecordEntry) protected voidrealizeCancelAfterWarehouseResponse(OrderCancelResponse cancelResponse) voidsetCompleteCancelStatusChangeStrategy(OrderStatusChangeStrategy completeCancelStatusChangeStrategy) voidsetModelService(ModelService modelService) voidsetNotificationServiceAdapter(OrderCancelNotificationServiceAdapter notificationServiceAdapter) voidsetOrderCancelRecordsHandler(OrderCancelRecordsHandler orderCancelRecordsHandler) voidsetPartialCancelStatusChangeStrategy(OrderStatusChangeStrategy partialCancelStatusChangeStrategy) voidsetPaymentServiceAdapter(OrderCancelPaymentServiceAdapter paymentServiceAdapter) voidsetWarehouseDenialStatusChangeStrategy(OrderStatusChangeStrategy warehouseDenialStatusChangeStrategy) voidsetWarehouseErrorStatusChangeStrategy(OrderStatusChangeStrategy warehouseErrorStatusChangeStrategy)
-
Constructor Details
-
WarehouseResponseExecutor
public WarehouseResponseExecutor()
-
-
Method Details
-
processCancelResponse
public void processCancelResponse(OrderCancelResponse orderCancelResponse, OrderCancelRecordEntryModel cancelRequestRecordEntry) throws OrderCancelException - Specified by:
processCancelResponsein interfaceOrderCancelResponseExecutor- Throws:
OrderCancelException
-
realizeCancelAfterWarehouseResponse
protected void realizeCancelAfterWarehouseResponse(OrderCancelResponse cancelResponse) throws OrderCancelException - Throws:
OrderCancelException
-
finalizeCancelProcessing
protected void finalizeCancelProcessing(OrderCancelResponse orderCancelResponse, OrderCancelRecordEntryModel cancelRequestRecordEntry) -
modifyOrderAccordingToRequest
-
getModelService
- Returns:
- the modelService
-
setModelService
- Parameters:
modelService- the modelService to set
-
getPaymentServiceAdapter
- Returns:
- the paymentServiceAdapter
-
setPaymentServiceAdapter
- Specified by:
setPaymentServiceAdapterin interfacePaymentServiceAdapterDependent- Parameters:
paymentServiceAdapter- the paymentServiceAdapter to set
-
getNotificationServiceAdapter
- Returns:
- the notificationServiceAdapter
-
setNotificationServiceAdapter
public void setNotificationServiceAdapter(OrderCancelNotificationServiceAdapter notificationServiceAdapter) - Specified by:
setNotificationServiceAdapterin interfaceNotificationServiceAdapterDependent- Parameters:
notificationServiceAdapter- the notificationServiceAdapter to set
-
getOrderCancelRecordsHandler
- Returns:
- the orderCancelRecordsHandler
-
setOrderCancelRecordsHandler
- Parameters:
orderCancelRecordsHandler- the orderCancelRecordsHandler to set
-
getCompleteCancelStatusChangeStrategy
- Returns:
- the completeCancelStatusChangeStrategy
-
setCompleteCancelStatusChangeStrategy
public void setCompleteCancelStatusChangeStrategy(OrderStatusChangeStrategy completeCancelStatusChangeStrategy) - Parameters:
completeCancelStatusChangeStrategy- the completeCancelStatusChangeStrategy to set
-
getPartialCancelStatusChangeStrategy
- Returns:
- the partialCancelStatusChangeStrategy
-
setPartialCancelStatusChangeStrategy
public void setPartialCancelStatusChangeStrategy(OrderStatusChangeStrategy partialCancelStatusChangeStrategy) - Parameters:
partialCancelStatusChangeStrategy- the partialCancelStatusChangeStrategy to set
-
getWarehouseDenialStatusChangeStrategy
- Returns:
- the warehouseDenialStatusChangeStrategy
-
setWarehouseDenialStatusChangeStrategy
public void setWarehouseDenialStatusChangeStrategy(OrderStatusChangeStrategy warehouseDenialStatusChangeStrategy) - Parameters:
warehouseDenialStatusChangeStrategy- the warehouseDenialStatusChangeStrategy to set
-
getWarehouseErrorStatusChangeStrategy
- Returns:
- the warehouseErrorStatusChangeStrategy
-
setWarehouseErrorStatusChangeStrategy
public void setWarehouseErrorStatusChangeStrategy(OrderStatusChangeStrategy warehouseErrorStatusChangeStrategy) - Parameters:
warehouseErrorStatusChangeStrategy- the warehouseErrorStatusChangeStrategy to set
-