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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.log4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionaddOrderEntry(OrderEntryData cartEntry) Deprecated, for removal: This API element is subject to removal in a future version.Method for adding a product to cart.addOrderEntryList(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 PriceDataDeprecated, 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 ProductFacadeDeprecated, for removal: This API element is subject to removal in a future version.protected B2BCartServiceDeprecated, for removal: This API element is subject to removal in a future version.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, 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, String baseProduct) Deprecated, for removal: This API element is subject to removal in a future version.protected ProductDatapopulateProduct(String productCode, 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, Comparator<VariantOptionData> variantSortStrategy) Deprecated, for removal: This API element is subject to removal in a future version.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 cartDataupdateOrderEntry(OrderEntryData cartEntry) Deprecated, for removal: This API element is subject to removal in a future version.Method for updating the number of products.updateOrderEntryList(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.Deprecated, for removal: This API element is subject to removal in a future version.Method for validating every entry in the cartMethods 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, validateCartDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.b2bacceleratorfacades.api.cart.CartFacade
removeSessionCart
-
Field Details
-
LOG
protected static final org.apache.log4j.Logger LOGDeprecated, for removal: This API element is subject to removal in a future version. -
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: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(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
Deprecated, for removal: This API element is subject to removal in a future version. -
buildZeroPrice
Deprecated, for removal: This API element is subject to removal in a future version. -
setCartService
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setCartServicein classDefaultCartFacade
-
getCartService
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCartServicein classDefaultCartFacade
-
getB2bProductFacade
Deprecated, for removal: This API element is subject to removal in a future version. -
setB2bProductFacade
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 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: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 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: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
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
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 List<CartModificationData> validateCurrentCartData() throws CommerceCartModificationExceptionDeprecated, 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
-