Class DefaultB2BCartFacade

    • Field Detail

      • LOG

        protected static final org.apache.log4j.Logger LOG
      • BASKET_QUANTITY_REMOVE_SUCCESS

        public static final java.lang.String BASKET_QUANTITY_REMOVE_SUCCESS
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultB2BCartFacade

        public DefaultB2BCartFacade()
    • Method Detail

      • addOrderEntry

        public CartModificationData addOrderEntry​(OrderEntryData cartEntry)
        Description copied from interface: CartFacade
        Method for adding a product to cart.
        Specified by:
        addOrderEntry in interface CartFacade
        Parameters:
        cartEntry - the cart entry with the new product to add..
        Returns:
        the cart modification data that includes a statusCode and the actual quantity added to the cart
      • isValidEntry

        protected boolean isValidEntry​(OrderEntryData cartEntry)
      • updateOrderEntry

        public CartModificationData updateOrderEntry​(OrderEntryData orderEntry)
        Description copied from interface: CartFacade
        Method for updating the number of products.
        Specified by:
        updateOrderEntry in interface CartFacade
        Parameters:
        orderEntry - the cart entry with the new value of quantity for product.
        Returns:
        the cart modification data that includes a statusCode and the actual quantity that the entry was updated to
      • addOrderEntryList

        public java.util.List<CartModificationData> addOrderEntryList​(java.util.List<OrderEntryData> cartEntries)
        Description copied from interface: CartFacade
        Method for adding a product to cart.
        Specified by:
        addOrderEntryList in interface CartFacade
        Parameters:
        cartEntries - the cart entries with the new products to add.
        Returns:
        the cart modification data that includes a statusCode and the actual quantity added to the cart
      • updateOrderEntryList

        public java.util.List<CartModificationData> updateOrderEntryList​(java.util.List<OrderEntryData> cartEntries)
        Description copied from interface: CartFacade
        Method for updating a list of products in the cart.
        Specified by:
        updateOrderEntryList in interface CartFacade
        Parameters:
        cartEntries - the cart entries with the new products to add.
        Returns:
        the cart modification data that includes a statusCode and the actual quantity added to the cart
      • getOrderEntryNumber

        protected java.lang.Integer getOrderEntryNumber​(OrderEntryData findEntry)
      • update

        public CartData update​(CartData cartData)
        Updates the cart data.
        Specified by:
        update in interface CartFacade
        Parameters:
        cartData - an object CartData with cart data to update.
        Returns:
        the updated cart.
      • setCartService

        public void setCartService​(B2BCartService cartService)
      • getB2bProductFacade

        protected ProductFacade getB2bProductFacade()
      • setB2bProductFacade

        public void setB2bProductFacade​(ProductFacade b2bProductFacade)
      • setCheckoutFacade

        public void setCheckoutFacade​(CheckoutFacade checkoutFacade)
      • getCartFacade

        protected CartFacade getCartFacade()
      • setCartFacade

        public void setCartFacade​(CartFacade cartFacade)