Interface SessionAccessFacade

  • All Known Implementing Classes:
    DummySessionAccessFacade, SessionAccessFacadeImpl

    public interface SessionAccessFacade
    Accessing the session to set and read product configuration related entities like UIStatus or runtime configuration ID per cart entry
    • Method Detail

      • setConfigIdForCartEntry

        @Deprecated(since="1808",
                    forRemoval=true)
        void setConfigIdForCartEntry​(java.lang.String cartEntryKey,
                                     java.lang.String configId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Stores configuration ID for a cart entry key into the session
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
        configId - ID of a runtime configuration object
      • getConfigIdForCartEntry

        @Deprecated(since="1808",
                    forRemoval=true)
        java.lang.String getConfigIdForCartEntry​(java.lang.String cartEntryKey)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Retrieves configuration identifier from the session for a given cart entry key
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
        Returns:
        ID of a runtime configuration object
      • getUiStatusForCartEntry

        <T> T getUiStatusForCartEntry​(java.lang.String cartEntryKey)
        Retrieves object from the session for a given cart entry key
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
        Returns:
        T which represents the UiStatus
      • setUiStatusForCartEntry

        void setUiStatusForCartEntry​(java.lang.String cartEntryKey,
                                     java.lang.Object uiStatus)
        Stores object for a cart entry key into the session
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
        uiStatus - the status of the UI
      • setUiStatusForProduct

        void setUiStatusForProduct​(java.lang.String productKey,
                                   java.lang.Object uiStatus)
        Stores object for a product key into the session
        Parameters:
        productKey - Product key
        uiStatus - the status of the UI
      • getUiStatusForProduct

        <T> T getUiStatusForProduct​(java.lang.String productKey)
        Retrieves object from the session for a given cart entry key
        Parameters:
        productKey - Product key
        Returns:
        T which represents the UiStatus
      • removeUiStatusForCartEntry

        void removeUiStatusForCartEntry​(java.lang.String cartEntryKey)
        Removes object for a cart entry
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
      • removeUiStatusForProduct

        void removeUiStatusForProduct​(java.lang.String productKey)
        Removes object for a product
        Parameters:
        productKey - Product key
      • getCartEntryForConfigId

        @Deprecated(since="1808",
                    forRemoval=true)
        java.lang.String getCartEntryForConfigId​(java.lang.String configId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Retrieves cart entry key belonging to a specific config ID
        Parameters:
        configId - ID of the configuration
        Returns:
        String representation of the cart entry primary key
      • removeConfigIdForCartEntry

        @Deprecated(since="1808",
                    forRemoval=true)
        void removeConfigIdForCartEntry​(java.lang.String cartEntryKey)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Removes configuration ID for cart entry
        Parameters:
        cartEntryKey - key of the cart entry
      • getSessionId

        @Deprecated(since="1811",
                    forRemoval=true)
        java.lang.String getSessionId()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 18.11.0 - call {@link SessionService#getCurrentSession()#getSessionId()} instead
        Retrieves current session id
        Returns:
        session id of the current session
      • getConfigurationModelEngineState

        @Deprecated(since="1808",
                    forRemoval=true)
        ConfigModel getConfigurationModelEngineState​(java.lang.String configId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Retrieves configModel from the session cache for a given configId
        Parameters:
        configId - ID of the configuration
        Returns:
        configuration model