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") public class DefaultCartFacade extends DefaultCartFacade implements B2BCartFacade
Deprecated.Since 5.3.Default implementation ofCartFacade.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOGDeprecated.static java.lang.StringVARIANT_TYPEDeprecated.
-
Constructor Summary
Constructors Constructor Description DefaultCartFacade()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CartModificationDataaddOrderEntry(OrderEntryData cartEntry)Deprecated.Method for adding a product to cart.java.util.List<CartModificationData>addOrderEntryList(java.util.List<OrderEntryData> cartEntries)Deprecated.Method for adding a product to cart.protected PriceDatabuildZeroPrice()Deprecated.protected PriceDatacreatePrice(PriceData currentEntryPrice, PriceData orderEntryPrice)Deprecated.protected ProductFacadegetB2bProductFacade()Deprecated.protected B2BCartServicegetCartService()Deprecated.CartDatagetCurrentCart()Deprecated.This gets the current cart.<T extends AbstractOrderData>
voidgroupMultiDimensionalProducts(T orderData, java.util.Comparator<VariantOptionData> variantSortStrategy)Deprecated.Group multi-dimensional items in a cart.protected <T extends AbstractOrderData>
OrderEntryDatagroupOrderEntry(T orderData, ProductData productData, java.lang.String baseProduct)Deprecated.protected ProductDatapopulateProduct(java.lang.String productCode, java.util.Comparator<VariantOptionData> variantSortStrategy)Deprecated.voidsetB2bProductFacade(ProductFacade b2bProductFacade)Deprecated.voidsetCartService(CartService cartService)Deprecated.protected voidsortVariantOptionData(ProductData productData, java.util.Comparator<VariantOptionData> variantSortStrategy)Deprecated.CartDataupdate(CartData cartData)Deprecated.Updates the information in the cart based on the content of the cartDataCartModificationDataupdateOrderEntry(OrderEntryData cartEntry)Deprecated.Method for updating the number of products.java.util.List<CartModificationData>updateOrderEntryList(java.util.List<OrderEntryData> cartEntries)Deprecated.Method for updating a list of products 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
-
-
-
-
Field Detail
-
LOG
protected static final org.apache.log4j.Logger LOG
Deprecated.
-
VARIANT_TYPE
public static final java.lang.String VARIANT_TYPE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
groupMultiDimensionalProducts
public <T extends AbstractOrderData> void groupMultiDimensionalProducts(T orderData, java.util.Comparator<VariantOptionData> variantSortStrategy)
Deprecated.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.
-
sortVariantOptionData
protected void sortVariantOptionData(ProductData productData, java.util.Comparator<VariantOptionData> variantSortStrategy)
Deprecated.
-
groupOrderEntry
protected <T extends AbstractOrderData> OrderEntryData groupOrderEntry(T orderData, ProductData productData, java.lang.String baseProduct)
Deprecated.
-
createPrice
protected PriceData createPrice(PriceData currentEntryPrice, PriceData orderEntryPrice)
Deprecated.
-
buildZeroPrice
protected PriceData buildZeroPrice()
Deprecated.
-
setCartService
public void setCartService(CartService cartService)
Deprecated.- Overrides:
setCartServicein classDefaultCartFacade
-
getCartService
protected B2BCartService getCartService()
Deprecated.- Overrides:
getCartServicein classDefaultCartFacade
-
getB2bProductFacade
protected ProductFacade getB2bProductFacade()
Deprecated.
-
setB2bProductFacade
public void setB2bProductFacade(ProductFacade b2bProductFacade)
Deprecated.
-
addOrderEntry
public CartModificationData addOrderEntry(OrderEntryData cartEntry) throws EntityValidationException
Deprecated.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.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.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.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.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.Description copied from interface:CartFacadeThis gets the current cart.- Specified by:
getCurrentCartin interfaceCartFacade- Returns:
- the current cart.
-
-