Class DefaultCartCheckoutBaseService

    • Constructor Detail

      • DefaultCartCheckoutBaseService

        public DefaultCartCheckoutBaseService()
    • Method Detail

      • getMessageSource

        public org.springframework.context.MessageSource getMessageSource()
      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
      • setI18nService

        public void setI18nService​(I18NService i18nService)
      • compileSessionCart

        protected CartData compileSessionCart​(boolean recentlyAddedFirst)
        Creates the session cart from the BOL cart representation, and returns it in hybris representation. In case the cart is not initialized yet (i.e. if no back end call has taken place), an empty hybris cart is returned.
        Parameters:
        recentlyAddedFirst -
        Returns:
        Cart in hybris format
      • getSessionCart

        public CartData getSessionCart​(boolean recentlyAddedFirst)
        Description copied from interface: CartCheckoutBaseService
        Returns session cart, sorted in inverted order if required
        Specified by:
        getSessionCart in interface CartCheckoutBaseService
        Parameters:
        recentlyAddedFirst - If true, recently added items will be returned first (Standard sorting will be inverted)
        Returns:
        Session Cart
      • createEmptyCart

        protected CartData createEmptyCart()
        Creates an empty cart, just initializing the entry list
        Returns:
        Empty cart
      • reverseCartSorting

        protected void reverseCartSorting​(Basket cart)
        Reverse the sorting of the ItemList of the Cart
        Parameters:
        cart - the Cart object
      • reverseCartSorting

        protected void reverseCartSorting​(CartData cart)
        Reverse the sorting of the ItemList of the Cart
        Parameters:
        cart - the Cart object
      • setCartConverter

        public void setCartConverter​(Converter<Basket,​CartData> cartConverter)
        Parameters:
        cartConverter - the cartConverter to set
      • getBolCartFacade

        public BolCartFacade getBolCartFacade()
        Returns:
        the bolCartFacade
      • setBolCartFacade

        public void setBolCartFacade​(BolCartFacade bolCartFacade)
        Parameters:
        bolCartFacade - the bolCartFacade to set