public class DefaultPunchOutController extends AbstractPageController implements PunchOutController
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADDON_PREFIX |
static java.lang.String |
BASE_ADDON_PAGE_PATH |
static java.lang.String |
REDIRECT_PREFIX |
| Constructor and Description |
|---|
DefaultPunchOutController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
cancelRequisition(Model model,
HttpServletRequest request)
Cancels a requisition (POST) to the punch out provider sending a cancel message.
|
PunchOutUserAuthenticationService |
getPunchOutUserAuthenticationService() |
java.lang.String |
handleException(java.lang.Exception e,
HttpServletRequest request) |
void |
handlePunchOutSession(java.lang.String key,
java.lang.String sessionId,
HttpServletRequest request,
HttpServletResponse response)
Used to create a new punch out session by authenticating a punch out user.
|
java.lang.String |
placeRequisition(Model model,
HttpServletRequest request)
Places a requisition (POST) to the punchout provider sending the information of the cart.
|
protected java.lang.String |
printSessionInfo(PunchOutSession punchoutSession) |
protected void |
processRequisitionMessage(CXML cXML,
Model model,
HttpServletRequest request) |
void |
setPunchOutService(PunchOutService punchoutService) |
void |
setPunchOutUserAuthenticationService(PunchOutUserAuthenticationService punchOutUserAuthenticationService) |
public static final java.lang.String REDIRECT_PREFIX
public static final java.lang.String ADDON_PREFIX
public static final java.lang.String BASE_ADDON_PAGE_PATH
public void handlePunchOutSession(java.lang.String key,
java.lang.String sessionId,
HttpServletRequest request,
HttpServletResponse response)
key - Secured key that have been exchanged with the punch out provider (or security hub).sessionId - the hybris session IDpublic java.lang.String cancelRequisition(Model model,
HttpServletRequest request)
throws InvalidCartException,
CMSItemNotFoundException
InvalidCartExceptionCMSItemNotFoundExceptionprotected java.lang.String printSessionInfo(PunchOutSession punchoutSession)
public java.lang.String placeRequisition(Model model,
HttpServletRequest request)
throws InvalidCartException,
CMSItemNotFoundException
InvalidCartExceptionCMSItemNotFoundExceptionprotected void processRequisitionMessage(CXML cXML, Model model, HttpServletRequest request) throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String handleException(java.lang.Exception e,
HttpServletRequest request)
public void setPunchOutService(PunchOutService punchoutService)
public PunchOutUserAuthenticationService getPunchOutUserAuthenticationService()
public void setPunchOutUserAuthenticationService(PunchOutUserAuthenticationService punchOutUserAuthenticationService)
Copyright © 2018 SAP SE. All Rights Reserved.