Class DefaultCartFacade

    • Field Detail

      • LOG

        protected static final org.apache.log4j.Logger LOG
        Deprecated, for removal: This API element is subject to removal in a future version.
      • VARIANT_TYPE

        public static final java.lang.String VARIANT_TYPE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultCartFacade

        public DefaultCartFacade()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • groupMultiDimensionalProducts

        public <T extends AbstractOrderData> void groupMultiDimensionalProducts​(T orderData,
                                                                                java.util.Comparator<VariantOptionData> variantSortStrategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BCartFacade
        Group multi-dimensional items in a cart.
        Specified by:
        groupMultiDimensionalProducts in interface B2BCartFacade
        Parameters:
        orderData - parameter containing the order data object.
        variantSortStrategy - the strategy used to sort the variants.
      • populateProduct

        protected ProductData populateProduct​(java.lang.String productCode,
                                              java.util.Comparator<VariantOptionData> variantSortStrategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • sortVariantOptionData

        protected void sortVariantOptionData​(ProductData productData,
                                             java.util.Comparator<VariantOptionData> variantSortStrategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • groupOrderEntry

        protected <T extends AbstractOrderDataOrderEntryData groupOrderEntry​(T orderData,
                                                                               ProductData productData,
                                                                               java.lang.String baseProduct)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • createPrice

        protected PriceData createPrice​(PriceData currentEntryPrice,
                                        PriceData orderEntryPrice)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • buildZeroPrice

        protected PriceData buildZeroPrice()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setCartService

        public void setCartService​(CartService cartService)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        setCartService in class DefaultCartFacade
      • getB2bProductFacade

        protected ProductFacade getB2bProductFacade()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setB2bProductFacade

        public void setB2bProductFacade​(ProductFacade b2bProductFacade)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • updateOrderEntry

        public CartModificationData updateOrderEntry​(OrderEntryData cartEntry)
                                              throws EntityValidationException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CartFacade
        Method for updating the number of products.
        Specified by:
        updateOrderEntry in interface CartFacade
        Parameters:
        cartEntry - 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
        Throws:
        EntityValidationException - if the validation fails.
      • updateOrderEntryList

        public java.util.List<CartModificationData> updateOrderEntryList​(java.util.List<OrderEntryData> cartEntries)
                                                                  throws EntityValidationException
        Deprecated, for removal: This API element is subject to removal in a future version.
        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
        Throws:
        EntityValidationException
      • update

        public CartData update​(CartData cartData)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CartFacade
        Updates the information in the cart based on the content of the cartData
        Specified by:
        update in interface CartFacade
        Parameters:
        cartData - the cart to modify and it's modifications.
        Returns:
        the updated cart.
      • getCurrentCart

        public CartData getCurrentCart()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CartFacade
        This gets the current cart.
        Specified by:
        getCurrentCart in interface CartFacade
        Returns:
        the current cart.