@Deprecated public class DefaultCartFacade extends DefaultCartFacade implements B2BCartFacade
CartFacade.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG
Deprecated.
|
static java.lang.String |
VARIANT_TYPE
Deprecated.
|
| Constructor and Description |
|---|
DefaultCartFacade()
Deprecated.
|
| Modifier and Type | Method and 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> |
groupMultiDimensionalProducts(T orderData,
java.util.Comparator<VariantOptionData> variantSortStrategy)
Deprecated.
Group multi-dimensional items in a cart.
|
protected <T extends AbstractOrderData> |
groupOrderEntry(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 cartData
|
CartModificationData |
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.
|
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, validateCartDataprotected static final Logger LOG
public static final java.lang.String VARIANT_TYPE
public <T extends AbstractOrderData> void groupMultiDimensionalProducts(T orderData, java.util.Comparator<VariantOptionData> variantSortStrategy)
B2BCartFacadegroupMultiDimensionalProducts in interface B2BCartFacadeorderData - parameter containing the order data object.variantSortStrategy - the strategy used to sort the variants.protected ProductData populateProduct(java.lang.String productCode, java.util.Comparator<VariantOptionData> variantSortStrategy)
protected void sortVariantOptionData(ProductData productData, java.util.Comparator<VariantOptionData> variantSortStrategy)
protected <T extends AbstractOrderData> OrderEntryData groupOrderEntry(T orderData, ProductData productData, java.lang.String baseProduct)
protected PriceData createPrice(PriceData currentEntryPrice, PriceData orderEntryPrice)
protected PriceData buildZeroPrice()
public void setCartService(CartService cartService)
setCartService in class DefaultCartFacadeprotected B2BCartService getCartService()
getCartService in class DefaultCartFacadeprotected ProductFacade getB2bProductFacade()
public void setB2bProductFacade(ProductFacade b2bProductFacade)
public CartModificationData addOrderEntry(OrderEntryData cartEntry) throws EntityValidationException
CartFacadecartEntry - the cart entry with the new product to add..EntityValidationException - if the validation fails.public CartModificationData updateOrderEntry(OrderEntryData cartEntry) throws EntityValidationException
CartFacadecartEntry - the cart entry with the new value of quantity for product.EntityValidationException - if the validation fails.public java.util.List<CartModificationData> addOrderEntryList(java.util.List<OrderEntryData> cartEntries) throws EntityValidationException
CartFacadecartEntries - the cart entries with the new products to add.EntityValidationExceptionpublic java.util.List<CartModificationData> updateOrderEntryList(java.util.List<OrderEntryData> cartEntries) throws EntityValidationException
CartFacadecartEntries - the cart entries with the new products to add.EntityValidationExceptionpublic CartData update(CartData cartData)
CartFacadecartData - the cart to modify and it's modifications.public CartData getCurrentCart()
CartFacadeCopyright © 2018 SAP SE. All Rights Reserved.