public class DefaultPunchOutService extends java.lang.Object implements PunchOutService
PunchOutService.| Constructor and Description |
|---|
DefaultPunchOutService() |
| Modifier and Type | Method and Description |
|---|---|
protected CartModel |
getCartModel() |
protected CartService |
getCartService() |
protected CommerceCartService |
getCommerceCartService() |
java.util.List<PunchOutProcessingAction<CXML,CXML>> |
getProfileRequestProcessingActions() |
PunchOutCredentialService |
getPunchOutCredentialService() |
protected java.util.List<PunchOutProcessingAction<CartModel,CXML>> |
getPunchOutTransactionActions() |
java.util.List<PunchOutProcessingAction<CXML,CartModel>> |
getPurchaseOrderProcessingActions() |
java.util.List<PunchOutProcessingAction<CXML,CXML>> |
getSetUpRequestProcessingActions() |
CXML |
processCancelPunchOutOrderMessage()
Creates the cancel message for Ariba.
|
CXML |
processProfileRequest(CXML request)
Processes a profile request by returned a ProfileResponse with populated supported transactions.
|
CXML |
processPunchOutOrderMessage()
Creates the cmxl message for a
PunchOutOrderMessage to send an Order, using the session cart. |
CXML |
processPunchOutSetUpRequest(CXML request)
Processes a new PunchOut setup request.
|
CXML |
processPurchaseOrderRequest(CXML requestBody,
CartModel cartModel)
Processes a purchase order (
OrderRequest) by populating a cart and handles the response in the form of
CXML. |
java.lang.String |
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. |
void |
setCartService(CartService cartService) |
void |
setCommerceCartService(CommerceCartService commerceCartService) |
void |
setProfileRequestProcessingActions(java.util.List<PunchOutProcessingAction<CXML,CXML>> profileRequestProcessingActions) |
void |
setPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService) |
void |
setPunchOutTransactionActions(java.util.List<PunchOutProcessingAction<CartModel,CXML>> createRequisitionReponseActions) |
void |
setPurchaseOrderProcessingActions(java.util.List<PunchOutProcessingAction<CXML,CartModel>> purchaseOrderProcessingActions) |
void |
setSetUpRequestProcessingActions(java.util.List<PunchOutProcessingAction<CXML,CXML>> setUpRequestProcessingActions) |
public CXML processPunchOutSetUpRequest(CXML request)
PunchOutServiceprocessPunchOutSetUpRequest in interface PunchOutServicerequest - the requestCXML responsepublic CXML processPunchOutOrderMessage()
PunchOutServicePunchOutOrderMessage to send an Order, using the session cart.processPunchOutOrderMessage in interface PunchOutServiceCXML object representing an OrderMessage filled with information from the session cart.public CXML processCancelPunchOutOrderMessage()
PunchOutServiceprocessCancelPunchOutOrderMessage in interface PunchOutServiceCXML with the cancel message.public CXML processPurchaseOrderRequest(CXML requestBody, CartModel cartModel)
PunchOutServiceOrderRequest) by populating a cart and handles the response in the form of
CXML.processPurchaseOrderRequest in interface PunchOutServicerequestBody - the request CXML objectcartModel - the shopping cart data to populateCXML responsepublic java.lang.String retrieveIdentity(CXML request)
PunchOutServiceretrieveIdentity in interface PunchOutServicerequest - the cXML request.public CXML processProfileRequest(CXML request)
PunchOutServiceprocessProfileRequest in interface PunchOutServicerequest - the profile requestCXML instance with a ProfileResponse part of itprotected CartModel getCartModel()
public void setSetUpRequestProcessingActions(java.util.List<PunchOutProcessingAction<CXML,CXML>> setUpRequestProcessingActions)
protected java.util.List<PunchOutProcessingAction<CartModel,CXML>> getPunchOutTransactionActions()
public void setPunchOutTransactionActions(java.util.List<PunchOutProcessingAction<CartModel,CXML>> createRequisitionReponseActions)
public java.util.List<PunchOutProcessingAction<CXML,CartModel>> getPurchaseOrderProcessingActions()
public void setPurchaseOrderProcessingActions(java.util.List<PunchOutProcessingAction<CXML,CartModel>> purchaseOrderProcessingActions)
public java.util.List<PunchOutProcessingAction<CXML,CXML>> getSetUpRequestProcessingActions()
public java.util.List<PunchOutProcessingAction<CXML,CXML>> getProfileRequestProcessingActions()
public void setProfileRequestProcessingActions(java.util.List<PunchOutProcessingAction<CXML,CXML>> profileRequestProcessingActions)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected CommerceCartService getCommerceCartService()
public void setCommerceCartService(CommerceCartService commerceCartService)
public PunchOutCredentialService getPunchOutCredentialService()
public void setPunchOutCredentialService(PunchOutCredentialService punchOutCredentialService)
Copyright © 2018 SAP SE. All Rights Reserved.