Class SessionAccessFacadeImpl

    • Constructor Detail

      • SessionAccessFacadeImpl

        public SessionAccessFacadeImpl()
    • Method Detail

      • getUiStatusForCartEntry

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

        public void setUiStatusForCartEntry​(java.lang.String cartEntryKey,
                                            java.lang.Object uiStatus)
        Description copied from interface: SessionAccessFacade
        Stores object for a cart entry key into the session
        Specified by:
        setUiStatusForCartEntry in interface SessionAccessFacade
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
        uiStatus - the status of the UI
      • setUiStatusForProduct

        public void setUiStatusForProduct​(java.lang.String productKey,
                                          java.lang.Object uiStatus)
        Description copied from interface: SessionAccessFacade
        Stores object for a product key into the session
        Specified by:
        setUiStatusForProduct in interface SessionAccessFacade
        Parameters:
        productKey - Product key
        uiStatus - the status of the UI
      • getUiStatusForProduct

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

        public void removeUiStatusForCartEntry​(java.lang.String cartEntryKey)
        Description copied from interface: SessionAccessFacade
        Removes object for a cart entry
        Specified by:
        removeUiStatusForCartEntry in interface SessionAccessFacade
        Parameters:
        cartEntryKey - String representation of the cart entry primary key
      • setCartEntryForProduct

        @Deprecated(since="1808",
                    forRemoval=true)
        public void setCartEntryForProduct​(java.lang.String productKey,
                                           java.lang.String cartEntryKey)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 18.08.0 - do not link cart entry and product diretly. always link and read via aconfig id.
        Description copied from interface: SessionAccessFacade
        Stores cart entry in session per product key
        Specified by:
        setCartEntryForProduct in interface SessionAccessFacade
        Parameters:
        productKey - product key
        cartEntryKey - String representation of the cart entry primary key
      • removeCartEntryForProduct

        @Deprecated(since="1808",
                    forRemoval=true)
        public void removeCartEntryForProduct​(java.lang.String productKey)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 18.08.0 - do not link cart entry and product diretly. always link and read via aconfig id.
        Description copied from interface: SessionAccessFacade
        Removes cart entry key for product
        Specified by:
        removeCartEntryForProduct in interface SessionAccessFacade
        Parameters:
        productKey - product key
      • getSessionId

        @Deprecated(since="1811",
                    forRemoval=true)
        public 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
        Description copied from interface: SessionAccessFacade
        Retrieves current session id
        Specified by:
        getSessionId in interface SessionAccessFacade
        Returns:
        session id of the current session
      • setSessionAccessService

        public void setSessionAccessService​(SessionAccessService sessionAccessService)
        Parameters:
        sessionAccessService - injects the underlying session access service