Class DefaultPunchOutService
java.lang.Object
de.hybris.platform.b2b.punchout.services.impl.DefaultPunchOutService
- All Implemented Interfaces:
PunchOutService
Default implementation of
PunchOutService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PunchOutOutboundProcessorprotected PunchOutCredentialServiceprotected PunchOutOutboundProcessorprotected PunchOutInboundProcessorprotected PunchOutInboundProcessorprotected PunchOutInboundProcessorCreates the cancel message for Ariba.processProfileRequest(CXML request) Processes a profile request by returned a ProfileResponse with populated supported transactions.Creates the cmxl message for aPunchOutOrderMessageto send an Order, using the session cart.processPunchOutSetUpRequest(CXML request) Processes a new PunchOut setup request.processPurchaseOrderRequest(CXML requestBody) Processes a purchase order (OrderRequest) by populating a cart and handles the response in the form ofCXML.retrieveIdentity(CXML request) Retrieve the user id of the originator of the cXML request.
f.y.i.: as there may be multiple credentials declared, the first valid one will be used.voidsetPunchOutCancelOrderMessageProcessor(PunchOutOutboundProcessor punchOutCancelOrderMessageProcessor) voidsetPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService) voidsetPunchOutOrderMessageProcessor(PunchOutOutboundProcessor punchOutOrderMessageProcessor) voidsetPunchOutOrderRequestProcessor(PunchOutInboundProcessor punchOutOrderRequestProcessor) voidsetPunchOutProfileRequestProcessor(PunchOutInboundProcessor punchOutProfileRequestProcessor) voidsetPunchOutSetupRequestProcessor(PunchOutInboundProcessor punchOutSetupRequestProcessor)
-
Constructor Details
-
DefaultPunchOutService
public DefaultPunchOutService()
-
-
Method Details
-
processPunchOutSetUpRequest
Description copied from interface:PunchOutServiceProcesses a new PunchOut setup request.- Specified by:
processPunchOutSetUpRequestin interfacePunchOutService- Parameters:
request- the request- Returns:
- the
CXMLresponse
-
processPunchOutOrderMessage
Description copied from interface:PunchOutServiceCreates the cmxl message for aPunchOutOrderMessageto send an Order, using the session cart.- Specified by:
processPunchOutOrderMessagein interfacePunchOutService- Returns:
- the
CXMLobject representing an OrderMessage filled with information from the session cart.
-
processCancelPunchOutOrderMessage
Description copied from interface:PunchOutServiceCreates the cancel message for Ariba.- Specified by:
processCancelPunchOutOrderMessagein interfacePunchOutService- Returns:
- the
CXMLwith the cancel message.
-
processPurchaseOrderRequest
Description copied from interface:PunchOutServiceProcesses a purchase order (OrderRequest) by populating a cart and handles the response in the form ofCXML.- Specified by:
processPurchaseOrderRequestin interfacePunchOutService- Parameters:
requestBody- the requestCXMLobject- Returns:
- the
CXMLresponse
-
retrieveIdentity
Description copied from interface:PunchOutServiceRetrieve the user id of the originator of the cXML request.
f.y.i.: as there may be multiple credentials declared, the first valid one will be used.- Specified by:
retrieveIdentityin interfacePunchOutService- Parameters:
request- the cXML request.- Returns:
- the identity in the "From" tag.
-
processProfileRequest
Description copied from interface:PunchOutServiceProcesses a profile request by returned a ProfileResponse with populated supported transactions.- Specified by:
processProfileRequestin interfacePunchOutService- Parameters:
request- the profile request- Returns:
- the resulting
CXMLinstance with aProfileResponsepart of it
-
getPunchOutCredentialService
-
setPunchOutCredentialService
-
getPunchOutOrderMessageProcessor
- Returns:
- the punchOutOrderMessageProcessor
-
setPunchOutOrderMessageProcessor
public void setPunchOutOrderMessageProcessor(PunchOutOutboundProcessor punchOutOrderMessageProcessor) - Parameters:
punchOutOrderMessageProcessor- the punchOutOrderMessageProcessor to set
-
getPunchOutCancelOrderMessageProcessor
- Returns:
- the punchOutCancelOrderMessageProcessor
-
setPunchOutCancelOrderMessageProcessor
public void setPunchOutCancelOrderMessageProcessor(PunchOutOutboundProcessor punchOutCancelOrderMessageProcessor) - Parameters:
punchOutCancelOrderMessageProcessor- the punchOutCancelOrderMessageProcessor to set
-
getPunchOutProfileRequestProcessor
- Returns:
- the punchOutProfileRequestProcessor
-
setPunchOutProfileRequestProcessor
public void setPunchOutProfileRequestProcessor(PunchOutInboundProcessor punchOutProfileRequestProcessor) - Parameters:
punchOutProfileRequestProcessor- the punchOutProfileRequestProcessor to set
-
getPunchOutSetupRequestProcessor
- Returns:
- the punchOutSetupRequestProcessor
-
setPunchOutSetupRequestProcessor
public void setPunchOutSetupRequestProcessor(PunchOutInboundProcessor punchOutSetupRequestProcessor) - Parameters:
punchOutSetupRequestProcessor- the punchOutSetupRequestProcessor to set
-
getPunchOutOrderRequestProcessor
- Returns:
- the punchOutOrderRequestProcessor
-
setPunchOutOrderRequestProcessor
public void setPunchOutOrderRequestProcessor(PunchOutInboundProcessor punchOutOrderRequestProcessor) - Parameters:
punchOutOrderRequestProcessor- the punchOutOrderRequestProcessor to set
-