Class DefaultPunchOutService

java.lang.Object
de.hybris.platform.b2b.punchout.services.impl.DefaultPunchOutService
All Implemented Interfaces:
PunchOutService

public class DefaultPunchOutService extends Object implements PunchOutService
Default implementation of PunchOutService.
  • Constructor Details

    • DefaultPunchOutService

      public DefaultPunchOutService()
  • Method Details

    • processPunchOutSetUpRequest

      public CXML processPunchOutSetUpRequest(CXML request)
      Description copied from interface: PunchOutService
      Processes a new PunchOut setup request.
      Specified by:
      processPunchOutSetUpRequest in interface PunchOutService
      Parameters:
      request - the request
      Returns:
      the CXML response
    • processPunchOutOrderMessage

      public CXML processPunchOutOrderMessage()
      Description copied from interface: PunchOutService
      Creates the cmxl message for a PunchOutOrderMessage to send an Order, using the session cart.
      Specified by:
      processPunchOutOrderMessage in interface PunchOutService
      Returns:
      the CXML object representing an OrderMessage filled with information from the session cart.
    • processCancelPunchOutOrderMessage

      public CXML processCancelPunchOutOrderMessage()
      Description copied from interface: PunchOutService
      Creates the cancel message for Ariba.
      Specified by:
      processCancelPunchOutOrderMessage in interface PunchOutService
      Returns:
      the CXML with the cancel message.
    • processPurchaseOrderRequest

      public CXML processPurchaseOrderRequest(CXML requestBody)
      Description copied from interface: PunchOutService
      Processes a purchase order (OrderRequest) by populating a cart and handles the response in the form of CXML.
      Specified by:
      processPurchaseOrderRequest in interface PunchOutService
      Parameters:
      requestBody - the request CXML object
      Returns:
      the CXML response
    • retrieveIdentity

      public String retrieveIdentity(CXML request)
      Description copied from interface: PunchOutService
      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.
      Specified by:
      retrieveIdentity in interface PunchOutService
      Parameters:
      request - the cXML request.
      Returns:
      the identity in the "From" tag.
    • processProfileRequest

      public CXML processProfileRequest(CXML request)
      Description copied from interface: PunchOutService
      Processes a profile request by returned a ProfileResponse with populated supported transactions.
      Specified by:
      processProfileRequest in interface PunchOutService
      Parameters:
      request - the profile request
      Returns:
      the resulting CXML instance with a ProfileResponse part of it
    • getPunchOutCredentialService

      protected PunchOutCredentialService getPunchOutCredentialService()
    • setPunchOutCredentialService

      public void setPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService)
    • getPunchOutOrderMessageProcessor

      protected PunchOutOutboundProcessor getPunchOutOrderMessageProcessor()
      Returns:
      the punchOutOrderMessageProcessor
    • setPunchOutOrderMessageProcessor

      public void setPunchOutOrderMessageProcessor(PunchOutOutboundProcessor punchOutOrderMessageProcessor)
      Parameters:
      punchOutOrderMessageProcessor - the punchOutOrderMessageProcessor to set
    • getPunchOutCancelOrderMessageProcessor

      protected PunchOutOutboundProcessor getPunchOutCancelOrderMessageProcessor()
      Returns:
      the punchOutCancelOrderMessageProcessor
    • setPunchOutCancelOrderMessageProcessor

      public void setPunchOutCancelOrderMessageProcessor(PunchOutOutboundProcessor punchOutCancelOrderMessageProcessor)
      Parameters:
      punchOutCancelOrderMessageProcessor - the punchOutCancelOrderMessageProcessor to set
    • getPunchOutProfileRequestProcessor

      protected PunchOutInboundProcessor getPunchOutProfileRequestProcessor()
      Returns:
      the punchOutProfileRequestProcessor
    • setPunchOutProfileRequestProcessor

      public void setPunchOutProfileRequestProcessor(PunchOutInboundProcessor punchOutProfileRequestProcessor)
      Parameters:
      punchOutProfileRequestProcessor - the punchOutProfileRequestProcessor to set
    • getPunchOutSetupRequestProcessor

      protected PunchOutInboundProcessor getPunchOutSetupRequestProcessor()
      Returns:
      the punchOutSetupRequestProcessor
    • setPunchOutSetupRequestProcessor

      public void setPunchOutSetupRequestProcessor(PunchOutInboundProcessor punchOutSetupRequestProcessor)
      Parameters:
      punchOutSetupRequestProcessor - the punchOutSetupRequestProcessor to set
    • getPunchOutOrderRequestProcessor

      protected PunchOutInboundProcessor getPunchOutOrderRequestProcessor()
      Returns:
      the punchOutOrderRequestProcessor
    • setPunchOutOrderRequestProcessor

      public void setPunchOutOrderRequestProcessor(PunchOutInboundProcessor punchOutOrderRequestProcessor)
      Parameters:
      punchOutOrderRequestProcessor - the punchOutOrderRequestProcessor to set