Class DefaultCartFacade

java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
de.hybris.platform.b2bacceleratorfacades.order.impl.DefaultCartFacade
All Implemented Interfaces:
CartFacade, B2BCartFacade, CartFacade

@Deprecated(since="5.3", forRemoval=true) public class DefaultCartFacade extends DefaultCartFacade implements B2BCartFacade
Deprecated, for removal: This API element is subject to removal in a future version.
Since 5.3.
Default implementation of CartFacade.
  • Field Details

    • 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 String VARIANT_TYPE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • DefaultCartFacade

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

    • groupMultiDimensionalProducts

      public <T extends AbstractOrderData> void groupMultiDimensionalProducts(T orderData, 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(String productCode, Comparator<VariantOptionData> variantSortStrategy)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • sortVariantOptionData

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

      protected <T extends AbstractOrderData> OrderEntryData groupOrderEntry(T orderData, ProductData productData, 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
    • getCartService

      protected B2BCartService getCartService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getCartService 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.
    • addOrderEntry

      public CartModificationData addOrderEntry(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 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
      Throws:
      EntityValidationException - if the validation fails.
    • 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.
    • addOrderEntryList

      public List<CartModificationData> addOrderEntryList(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 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
      Throws:
      EntityValidationException
    • updateOrderEntryList

      public List<CartModificationData> updateOrderEntryList(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.
    • validateCurrentCartData

      public List<CartModificationData> validateCurrentCartData() throws CommerceCartModificationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CartFacade
      Method for validating every entry in the cart
      Specified by:
      validateCurrentCartData in interface CartFacade
      Returns:
      a list of cart modifications that includes a statusCode and the actual quantity that the entry was updated to
      Throws:
      CommerceCartModificationException - if the cart cannot be modified