Class PunchOutOrderMessageHeaderProcessingAction
- java.lang.Object
-
- de.hybris.platform.b2b.punchout.actions.PunchOutOrderMessageHeaderProcessingAction
-
- All Implemented Interfaces:
PunchOutProcessingAction<CartModel,CXML>
public class PunchOutOrderMessageHeaderProcessingAction extends java.lang.Object implements PunchOutProcessingAction<CartModel,CXML>
Creates the header for a PunchOut message. The Header element contains addressing and authentication information. The Header element is the same regardless of the specific Request or Response within the body of the cXML message.
-
-
Constructor Summary
Constructors Constructor Description PunchOutOrderMessageHeaderProcessingAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Credential>convertOrganizationsToCredentials(java.util.List<Organization> organizations)this method will convert an Organization into a cmxl credential ignoring the shared secret.protected FromcreateFrom(PunchOutSession currentPunchOutSession)protected SendercreateSender(PunchOutSession currentPunchOutSession)protected TocreateTo(PunchOutSession currentPunchOutSession)protected PunchOutConfigurationServicegetPunchOutConfigurationService()protected PunchOutSessionServicegetPunchOutSessionService()voidprocess(CartModel input, CXML transaction)Processes the input and populates the output.voidsetPunchOutConfigurationService(PunchOutConfigurationService punchOutConfigurationService)voidsetPunchOutSessionService(PunchOutSessionService punchOutSessionService)
-
-
-
Method Detail
-
process
public void process(CartModel input, CXML transaction)
Description copied from interface:PunchOutProcessingActionProcesses the input and populates the output.- Specified by:
processin interfacePunchOutProcessingAction<CartModel,CXML>- Parameters:
input- the input objecttransaction- the output object
-
createFrom
protected From createFrom(PunchOutSession currentPunchOutSession)
-
createTo
protected To createTo(PunchOutSession currentPunchOutSession)
-
createSender
protected Sender createSender(PunchOutSession currentPunchOutSession)
-
convertOrganizationsToCredentials
protected java.util.List<Credential> convertOrganizationsToCredentials(java.util.List<Organization> organizations)
this method will convert an Organization into a cmxl credential ignoring the shared secret.- Parameters:
organizations- intended to be converted.- Returns:
- the resulting list of credentials.
-
getPunchOutConfigurationService
protected PunchOutConfigurationService getPunchOutConfigurationService()
-
setPunchOutConfigurationService
public void setPunchOutConfigurationService(PunchOutConfigurationService punchOutConfigurationService)
-
getPunchOutSessionService
protected PunchOutSessionService getPunchOutSessionService()
-
setPunchOutSessionService
public void setPunchOutSessionService(PunchOutSessionService punchOutSessionService)
-
-