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 B2BCartFacadeDeprecated, for removal: This API element is subject to removal in a future version.Since 5.3.Default implementation ofCartFacade.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOGDeprecated, for removal: This API element is subject to removal in a future version.static java.lang.StringVARIANT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors Constructor Description DefaultCartFacade()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CartModificationDataaddOrderEntry(OrderEntryData cartEntry)Deprecated, for removal: This API element is subject to removal in a future version.Method for adding a product to cart.java.util.List<CartModificationData>addOrderEntryList(java.util.List<OrderEntryData> cartEntries)Deprecated, for removal: This API element is subject to removal in a future version.Method for adding a product to cart.protected PriceDatabuildZeroPrice()Deprecated, for removal: This API element is subject to removal in a future version.protected PriceDatacreatePrice(PriceData currentEntryPrice, PriceData orderEntryPrice)Deprecated, for removal: This API element is subject to removal in a future version.protected ProductFacadegetB2bProductFacade()Deprecated, for removal: This API element is subject to removal in a future version.protected B2BCartServicegetCartService()Deprecated, for removal: This API element is subject to removal in a future version.CartDatagetCurrentCart()Deprecated, for removal: This API element is subject to removal in a future version.This gets the current cart.<T extends AbstractOrderData>
voidgroupMultiDimensionalProducts(T orderData, java.util.Comparator<VariantOptionData> variantSortStrategy)Deprecated, for removal: This API element is subject to removal in a future version.Group multi-dimensional items in a cart.protected <T extends AbstractOrderData>
OrderEntryDatagroupOrderEntry(T orderData, ProductData productData, java.lang.String baseProduct)Deprecated, for removal: This API element is subject to removal in a future version.protected ProductDatapopulateProduct(java.lang.String productCode, java.util.Comparator<VariantOptionData> variantSortStrategy)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2bProductFacade(ProductFacade b2bProductFacade)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCartService(CartService cartService)Deprecated, for removal: This API element is subject to removal in a future version.protected voidsortVariantOptionData(ProductData productData, java.util.Comparator<VariantOptionData> variantSortStrategy)Deprecated, for removal: This API element is subject to removal in a future version.CartDataupdate(CartData cartData)Deprecated, for removal: This API element is subject to removal in a future version.Updates the information in the cart based on the content of the cartDataCartModificationDataupdateOrderEntry(OrderEntryData cartEntry)Deprecated, for removal: This API element is subject to removal in a future version.Method for updating the number of products.java.util.List<CartModificationData>updateOrderEntryList(java.util.List<OrderEntryData> cartEntries)Deprecated, for removal: This API element is subject to removal in a future version.Method for updating a list of products in the cart.java.util.List<CartModificationData>validateCurrentCartData()Deprecated, for removal: This API element is subject to removal in a future version.Method for validating every entry in the cart-
Methods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
addToCart, addToCart, addToCart, configurationInfoToProductConfiguration, configureCartEntry, createCommerceCartParameter, createEmptyCart, deleteGroupedOrderEntriesMultiD, estimateExternalTaxes, filterConfigurationsByConfigurator, getBaseSiteService, getCartConverter, getCartModificationConverter, getCartRestorationConverter, getCartsForCurrentUser, getCommerceCartParameterConverter, getCommerceCartService, getCountryConverter, getDeliveryCountries, getDeliveryService, getGroupCartModificationListConverter, getMiniCart, getMiniCartConverter, getModelService, getMostRecentCartGuidForUser, getOrderEntryConverter, getOrderEntryNumberForMultiD, getPointOfServiceService, getPriceDataFactory, getProductConfigurationMergeStrategies, getProductFacade, getProductService, getSessionCart, getSessionCartGuid, getSessionCartWithEntryOrdering, getUserService, hasEntries, hasEntryGroups, hasSessionCart, mergeOrderEntryWithModelConfiguration, removeEntryGroup, removeSessionCart, removeStaleCarts, restoreAnonymousCartAndMerge, restoreAnonymousCartAndTakeOwnership, restoreCartAndMerge, restoreSavedCart, setBaseSiteService, setCartConverter, setCartModificationConverter, setCartRestorationConverter, setCommerceCartParameterConverter, setCommerceCartService, setCountryConverter, setDeliveryService, setGroupCartModificationListConverter, setMiniCartConverter, setModelService, setOrderEntryConverter, setPointOfServiceService, setPriceDataFactory, setProductConfigurationMergeStrategies, setProductFacade, setProductService, setUserService, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.b2bacceleratorfacades.api.cart.CartFacade
removeSessionCart
-
-
-
-
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
-
-
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:B2BCartFacadeGroup multi-dimensional items in a cart.- Specified by:
groupMultiDimensionalProductsin interfaceB2BCartFacade- 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 AbstractOrderData> OrderEntryData 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:
setCartServicein classDefaultCartFacade
-
getCartService
protected B2BCartService getCartService()
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCartServicein classDefaultCartFacade
-
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:CartFacadeMethod for adding a product to cart.- Specified by:
addOrderEntryin interfaceCartFacade- 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:CartFacadeMethod for updating the number of products.- Specified by:
updateOrderEntryin interfaceCartFacade- 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 java.util.List<CartModificationData> addOrderEntryList(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:CartFacadeMethod for adding a product to cart.- Specified by:
addOrderEntryListin interfaceCartFacade- 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 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:CartFacadeMethod for updating a list of products in the cart.- Specified by:
updateOrderEntryListin interfaceCartFacade- 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:CartFacadeUpdates the information in the cart based on the content of the cartData- Specified by:
updatein interfaceCartFacade- 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:CartFacadeThis gets the current cart.- Specified by:
getCurrentCartin interfaceCartFacade- Returns:
- the current cart.
-
validateCurrentCartData
public java.util.List<CartModificationData> validateCurrentCartData() throws CommerceCartModificationException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CartFacadeMethod for validating every entry in the cart- Specified by:
validateCurrentCartDatain interfaceCartFacade- 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
-
-