public interface PunchOutSessionService
PunchOutService instances.| Modifier and Type | Method and Description |
|---|---|
void |
activate(PunchOutSession punchOutSession)
Activates a
PunchOutSession for the current user session. |
PunchOutSession |
getCurrentPunchOutSession()
Retrieves the currently loaded
PunchOutSession. |
java.lang.String |
getCurrentPunchOutSessionId()
Gets the currently active punchOut session.
|
PunchOutSession |
loadPunchOutSession(java.lang.String punchOutSessionId)
Loads and activates a
PunchOutSession by its ID. |
StoredPunchOutSessionModel |
loadStoredPunchOutSessionModel(java.lang.String punchOutSessionId)
Loads a given
StoredPunchOutSessionModel by sid. |
void |
saveCurrentPunchoutSession()
Saves current
StoredPunchOutSessionModel in the db. |
void |
setCurrentCartFromPunchOutSetup(java.lang.String punchOutSessionId)
Set the cart for the current session using the cart saved in a given punch out session.
|
void saveCurrentPunchoutSession()
StoredPunchOutSessionModel in the db.StoredPunchOutSessionModel loadStoredPunchOutSessionModel(java.lang.String punchOutSessionId)
StoredPunchOutSessionModel by sid.punchOutSessionId - The sid to search.StoredPunchOutSessionModel, or null if stored session does not exists.void activate(PunchOutSession punchOutSession)
PunchOutSession for the current user session.punchOutSession - the new punchOut sessionPunchOutSession loadPunchOutSession(java.lang.String punchOutSessionId)
PunchOutSession by its ID.punchOutSessionId - the punchOut session IDPunchOutSessionNotFoundException - when the session is not foundvoid setCurrentCartFromPunchOutSetup(java.lang.String punchOutSessionId)
punchOutSessionId - The punch out session ID.PunchOutSession getCurrentPunchOutSession()
PunchOutSession.null if none has been loaded yetjava.lang.String getCurrentPunchOutSessionId()
Copyright © 2018 SAP SE. All Rights Reserved.