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.Logger
LOG
Deprecated.static java.lang.String
VARIANT_TYPE
Deprecated.
-
Constructor Summary
Constructors Constructor Description DefaultCartFacade()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CartModificationData
addOrderEntry(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 PriceData
buildZeroPrice()
Deprecated.protected PriceData
createPrice(PriceData currentEntryPrice, PriceData orderEntryPrice)
Deprecated.protected ProductFacade
getB2bProductFacade()
Deprecated.protected B2BCartService
getCartService()
Deprecated.CartData
getCurrentCart()
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 ProductData
populateProduct(java.lang.String productCode, java.util.Comparator<VariantOptionData> variantSortStrategy)
Deprecated.void
setB2bProductFacade(ProductFacade b2bProductFacade)
Deprecated.void
setCartService(CartService cartService)
Deprecated.protected void
sortVariantOptionData(ProductData productData, java.util.Comparator<VariantOptionData> variantSortStrategy)
Deprecated.CartData
update(CartData cartData)
Deprecated.Updates the information in the cart based on the content of the cartDataCartModificationData
updateOrderEntry(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:B2BCartFacade
Group multi-dimensional items in a cart.- Specified by:
groupMultiDimensionalProducts
in 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:
setCartService
in classDefaultCartFacade
-
getCartService
protected B2BCartService getCartService()
Deprecated.- Overrides:
getCartService
in 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:CartFacade
Method for adding a product to cart.- Specified by:
addOrderEntry
in 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:CartFacade
Method for updating the number of products.- Specified by:
updateOrderEntry
in 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:CartFacade
Method for adding a product to cart.- Specified by:
addOrderEntryList
in 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:CartFacade
Method for updating a list of products in the cart.- Specified by:
updateOrderEntryList
in 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:CartFacade
Updates the information in the cart based on the content of the cartData- Specified by:
update
in interfaceCartFacade
- Parameters:
cartData
- the cart to modify and it's modifications.- Returns:
- the updated cart.
-
getCurrentCart
public CartData getCurrentCart()
Deprecated.Description copied from interface:CartFacade
This gets the current cart.- Specified by:
getCurrentCart
in interfaceCartFacade
- Returns:
- the current cart.
-
-