Class S4CMSendConsignmentToExternalFulfillmentSystemStrategy
- java.lang.Object
-
- de.hybris.platform.ysapcpis4cmomsfulfillment.strategy.S4CMSendConsignmentToExternalFulfillmentSystemStrategy
-
- All Implemented Interfaces:
de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
public class S4CMSendConsignmentToExternalFulfillmentSystemStrategy extends java.lang.Object implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
-
Constructor Summary
Constructors Constructor Description S4CMSendConsignmentToExternalFulfillmentSystemStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description de.hybris.platform.servicelayer.model.ModelServicegetModelService()de.hybris.platform.orderhistory.OrderHistoryServicegetOrderHistoryService()de.hybris.platform.order.OrderServicegetOrderService()static java.lang.StringgetPropertyValue(org.springframework.http.ResponseEntity<java.util.Map> responseEntityMap, java.lang.String property)SapCpiServiceOrderOutboundConversionServicegetSapCpiServiceOrderOutboundConversionService()SapCpiServiceOrderOutboundServicegetSapCpiServiceOrderOutboundService()SapPlantLogSysOrgServicegetSapPlantLogSysOrgService()de.hybris.platform.servicelayer.time.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 orderstatic booleanisSentSuccessfully(org.springframework.http.ResponseEntity<java.util.Map> responseEntityMap)protected voidlogServiceOrderPlacementErrorReason(java.lang.Throwable error)voidsendConsignment(ConsignmentModel consignment)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 ordervoidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)voidsetOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService)voidsetOrderService(de.hybris.platform.order.OrderService orderService)voidsetSapCpiServiceOrderOutboundConversionService(SapCpiServiceOrderOutboundConversionService sapCpiServiceOrderOutboundConversionService)voidsetSapCpiServiceOrderOutboundService(SapCpiServiceOrderOutboundService sapCpiServiceOrderOutboundService)voidsetSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService)voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
-
-
-
Method Detail
-
sendConsignment
public void sendConsignment(ConsignmentModel consignment)
- Specified by:
sendConsignmentin interfacede.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
logServiceOrderPlacementErrorReason
protected void logServiceOrderPlacementErrorReason(java.lang.Throwable error)
-
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
-
isSentSuccessfully
public static boolean isSentSuccessfully(org.springframework.http.ResponseEntity<java.util.Map> responseEntityMap)
-
getPropertyValue
public static java.lang.String getPropertyValue(org.springframework.http.ResponseEntity<java.util.Map> responseEntityMap, java.lang.String property)
-
getSapPlantLogSysOrgService
public SapPlantLogSysOrgService getSapPlantLogSysOrgService()
- Returns:
- the sapPlantLogSysOrgService
-
setSapPlantLogSysOrgService
public void setSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService)
- Parameters:
sapPlantLogSysOrgService- the sapPlantLogSysOrgService to set
-
getOrderHistoryService
public de.hybris.platform.orderhistory.OrderHistoryService getOrderHistoryService()
- Returns:
- the orderHistoryService
-
setOrderHistoryService
public void setOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService)
- Parameters:
orderHistoryService- the orderHistoryService to set
-
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService()
- Returns:
- the modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
- Parameters:
modelService- the modelService to set
-
getSapCpiServiceOrderOutboundService
public SapCpiServiceOrderOutboundService getSapCpiServiceOrderOutboundService()
- Returns:
- the sapCpiServiceOrderOutboundService
-
setSapCpiServiceOrderOutboundService
public void setSapCpiServiceOrderOutboundService(SapCpiServiceOrderOutboundService sapCpiServiceOrderOutboundService)
- Parameters:
sapCpiServiceOrderOutboundService- the sapCpiServiceOrderOutboundService to set
-
getSapCpiServiceOrderOutboundConversionService
public SapCpiServiceOrderOutboundConversionService getSapCpiServiceOrderOutboundConversionService()
-
setSapCpiServiceOrderOutboundConversionService
public void setSapCpiServiceOrderOutboundConversionService(SapCpiServiceOrderOutboundConversionService sapCpiServiceOrderOutboundConversionService)
-
getOrderService
public de.hybris.platform.order.OrderService getOrderService()
- Returns:
- the orderService
-
setOrderService
public void setOrderService(de.hybris.platform.order.OrderService orderService)
- Parameters:
orderService- the orderService to set
-
getTimeService
public de.hybris.platform.servicelayer.time.TimeService getTimeService()
- Returns:
- the timeService
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
- Parameters:
timeService- the timeService to set
-
-