Class SapSendConsignmentToExternalFulfillmentSystemStrategy
- java.lang.Object
-
- de.hybris.platform.sap.ysapcpiomsfulfillment.strategy.SapSendConsignmentToExternalFulfillmentSystemStrategy
-
- All Implemented Interfaces:
SendConsignmentToExternalFulfillmentSystemStrategy
public class SapSendConsignmentToExternalFulfillmentSystemStrategy extends java.lang.Object implements SendConsignmentToExternalFulfillmentSystemStrategy
-
-
Constructor Summary
Constructors Constructor Description SapSendConsignmentToExternalFulfillmentSystemStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelServicegetModelService()protected OrderHistoryServicegetOrderHistoryService()protected OrderServicegetOrderService()protected SapCpiOrderOutboundConversionServicegetSapCpiOrderOutboundConversionService()protected SapCpiOutboundServicegetSapCpiOutboundService()protected SapPlantLogSysOrgServicegetSapPlantLogSysOrgService()protected TimeServicegetTimeService()protected OrderHistoryEntryModelinitializeOrderHistory(OrderModel order, java.lang.String logicalSystem)Initialize an entry in the order history for the SAP order before sending it to the external systemprotected SAPOrderModelinitializeSapOrder(OrderHistoryEntryModel orderHistoryEntry, ConsignmentModel consignment)Initialize an SAP order from the parent Hybris ordervoidsendConsignment(ConsignmentModel consignment)SendsConsignmentModelto external fulfillment systemprotected rx.Single<org.springframework.http.ResponseEntity<java.util.Map>>sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry)Send the consignment to the external system after wrapping it within an ordervoidsetModelService(ModelService modelService)voidsetOrderHistoryService(OrderHistoryService orderHistoryService)voidsetOrderService(OrderService orderService)voidsetSapCpiOrderOutboundConversionService(SapCpiOrderOutboundConversionService sapCpiOrderOutboundConversionService)voidsetSapCpiOutboundService(SapCpiOutboundService sapCpiOutboundService)voidsetSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService)voidsetTimeService(TimeService timeService)
-
-
-
Method Detail
-
sendConsignment
public void sendConsignment(ConsignmentModel consignment)
SendsConsignmentModelto external fulfillment system- Specified by:
sendConsignmentin interfaceSendConsignmentToExternalFulfillmentSystemStrategy- Parameters:
consignment- theConsignmentModel
-
sendOrderToScpi
protected rx.Single<org.springframework.http.ResponseEntity<java.util.Map>> sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry)
Send the consignment to the external system after wrapping it within an order- Parameters:
consignment-- Returns:
-
initializeOrderHistory
protected OrderHistoryEntryModel initializeOrderHistory(OrderModel order, java.lang.String logicalSystem)
Initialize an entry in the order history for the SAP order before sending it to the external system- Parameters:
order-logicalSystem-- Returns:
-
initializeSapOrder
protected SAPOrderModel initializeSapOrder(OrderHistoryEntryModel orderHistoryEntry, ConsignmentModel consignment)
Initialize an SAP order from the parent Hybris order- Parameters:
orderHistoryEntry-consignment-- Returns:
- SAPOrderModel
-
getSapPlantLogSysOrgService
protected SapPlantLogSysOrgService getSapPlantLogSysOrgService()
-
setSapPlantLogSysOrgService
public void setSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService)
-
getOrderHistoryService
protected OrderHistoryService getOrderHistoryService()
-
setOrderHistoryService
public void setOrderHistoryService(OrderHistoryService orderHistoryService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getSapCpiOutboundService
protected SapCpiOutboundService getSapCpiOutboundService()
-
setSapCpiOutboundService
public void setSapCpiOutboundService(SapCpiOutboundService sapCpiOutboundService)
-
getSapCpiOrderOutboundConversionService
protected SapCpiOrderOutboundConversionService getSapCpiOrderOutboundConversionService()
-
setSapCpiOrderOutboundConversionService
public void setSapCpiOrderOutboundConversionService(SapCpiOrderOutboundConversionService sapCpiOrderOutboundConversionService)
-
getOrderService
protected OrderService getOrderService()
-
setOrderService
public void setOrderService(OrderService orderService)
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
-