Class DefaultSapCpiServiceOrderOutboundService
- java.lang.Object
-
- de.hybris.platform.sap.sapserviceorder.service.impl.DefaultSapCpiServiceOrderOutboundService
-
- All Implemented Interfaces:
SapCpiServiceOrderOutboundService
public class DefaultSapCpiServiceOrderOutboundService extends java.lang.Object implements SapCpiServiceOrderOutboundService
Implementation for Service Order Outbound service
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringOUTBOUND_SERVICE_ORDER_DESTINATIONprotected static java.lang.StringOUTBOUND_SERVICE_ORDER_OBJECTprotected static java.lang.StringOUTBOUND_SERVICE_ORDER_UPDATE_DESTINATIONprotected static java.lang.StringOUTBOUND_SERVICE_ORDER_UPDATE_OBJECTprotected java.util.List<SapServiceOrderUpdateHook>sapServiceOrderUpdateHooks
-
Constructor Summary
Constructors Constructor Description DefaultSapCpiServiceOrderOutboundService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanexecuteServiceOrderUpdatePreSendHooks(SAPCpiOutboundServiceOrderModel outboundOrder)de.hybris.platform.outboundservices.facade.OutboundServiceFacadegetOutboundServiceFacade()java.util.List<SapServiceOrderUpdateHook>getSapServiceOrderUpdateHooks()protected booleanisUpdateSuccessful()rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>sendServiceOrder(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)Method for sending Service Order Create Payload to SCPIrx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>sendServiceOrderCancellation(SAPCpiOutboundServiceOrderModel order)Method for sending Service Order Cancellation to SCPIbooleansendServiceOrderUpdate(SAPCpiOutboundServiceOrderModel outboundOrder)Method for sending Service Order Update Payload to SCPIvoidsetOutboundServiceFacade(de.hybris.platform.outboundservices.facade.OutboundServiceFacade outboundServiceFacade)protected voidsetResponseSuccess()voidsetSapServiceOrderUpdateHooks(java.util.List<SapServiceOrderUpdateHook> sapServiceOrderUpdateHooks)
-
-
-
Field Detail
-
OUTBOUND_SERVICE_ORDER_OBJECT
protected static final java.lang.String OUTBOUND_SERVICE_ORDER_OBJECT
- See Also:
- Constant Field Values
-
OUTBOUND_SERVICE_ORDER_UPDATE_OBJECT
protected static final java.lang.String OUTBOUND_SERVICE_ORDER_UPDATE_OBJECT
- See Also:
- Constant Field Values
-
OUTBOUND_SERVICE_ORDER_DESTINATION
protected static final java.lang.String OUTBOUND_SERVICE_ORDER_DESTINATION
- See Also:
- Constant Field Values
-
OUTBOUND_SERVICE_ORDER_UPDATE_DESTINATION
protected static final java.lang.String OUTBOUND_SERVICE_ORDER_UPDATE_DESTINATION
- See Also:
- Constant Field Values
-
sapServiceOrderUpdateHooks
protected java.util.List<SapServiceOrderUpdateHook> sapServiceOrderUpdateHooks
-
-
Method Detail
-
sendServiceOrder
public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> sendServiceOrder(SAPCpiOutboundServiceOrderModel sapCpiOutboundServiceOrderModel)
Description copied from interface:SapCpiServiceOrderOutboundServiceMethod for sending Service Order Create Payload to SCPI- Specified by:
sendServiceOrderin interfaceSapCpiServiceOrderOutboundService- Parameters:
sapCpiOutboundServiceOrderModel- Outbound service order create payload- Returns:
- response
-
sendServiceOrderUpdate
public boolean sendServiceOrderUpdate(SAPCpiOutboundServiceOrderModel outboundOrder)
Description copied from interface:SapCpiServiceOrderOutboundServiceMethod for sending Service Order Update Payload to SCPI- Specified by:
sendServiceOrderUpdatein interfaceSapCpiServiceOrderOutboundService- Parameters:
outboundOrder- Outbound service order update payload- Returns:
- boolean response success
-
executeServiceOrderUpdatePreSendHooks
protected boolean executeServiceOrderUpdatePreSendHooks(SAPCpiOutboundServiceOrderModel outboundOrder)
-
sendServiceOrderCancellation
public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> sendServiceOrderCancellation(SAPCpiOutboundServiceOrderModel order)
Description copied from interface:SapCpiServiceOrderOutboundServiceMethod for sending Service Order Cancellation to SCPI- Specified by:
sendServiceOrderCancellationin interfaceSapCpiServiceOrderOutboundService- Parameters:
order- service order- Returns:
- response
-
isUpdateSuccessful
protected boolean isUpdateSuccessful()
-
setResponseSuccess
protected void setResponseSuccess()
-
getSapServiceOrderUpdateHooks
public java.util.List<SapServiceOrderUpdateHook> getSapServiceOrderUpdateHooks()
-
setSapServiceOrderUpdateHooks
public void setSapServiceOrderUpdateHooks(java.util.List<SapServiceOrderUpdateHook> sapServiceOrderUpdateHooks)
-
getOutboundServiceFacade
public de.hybris.platform.outboundservices.facade.OutboundServiceFacade getOutboundServiceFacade()
- Returns:
- the outboundServiceFacade
-
setOutboundServiceFacade
public void setOutboundServiceFacade(de.hybris.platform.outboundservices.facade.OutboundServiceFacade outboundServiceFacade)
- Parameters:
outboundServiceFacade- the outboundServiceFacade to set
-
-