Interface PunchOutSessionService

    • Method Detail

      • activate

        void activate​(PunchOutSession punchOutSession)
        Activates a PunchOutSession for the current user session.
        Parameters:
        punchOutSession - the new punchOut session
      • loadPunchOutSession

        PunchOutSession loadPunchOutSession​(java.lang.String punchOutSessionId)
        Loads and activates a PunchOutSession by its ID.
        Parameters:
        punchOutSessionId - the punchOut session ID
        Returns:
        the newly loaded session
        Throws:
        PunchOutSessionNotFoundException - when the session is not found
      • setCurrentCartFromPunchOutSetup

        void setCurrentCartFromPunchOutSetup​(java.lang.String punchOutSessionId)
        Set the cart for the current session using the cart saved in a given punch out session. This is necessary as the punchOut provider may use different sessions for sequential calls (e.g.: edit setup request and edit seamless login).
        Notice that this should only be called after punch out user is authenticated.
        Parameters:
        punchOutSessionId - The punch out session ID.
      • getCurrentPunchOutSession

        PunchOutSession getCurrentPunchOutSession()
        Retrieves the currently loaded PunchOutSession.
        Returns:
        the punchOut session or null if none has been loaded yet
      • getCurrentPunchOutSessionId

        java.lang.String getCurrentPunchOutSessionId()
        Gets the currently active punchOut session.
        Returns:
        the active punchOut session ID