Class B2ctelcoCommerceCartMergingStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy
-
- de.hybris.platform.b2ctelcoservices.order.impl.B2ctelcoCommerceCartMergingStrategy
-
- All Implemented Interfaces:
TmaCartStrategy,de.hybris.platform.commerceservices.order.impl.CommerceCartMergingStrategy
public class B2ctelcoCommerceCartMergingStrategy extends de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy implements de.hybris.platform.commerceservices.order.impl.CommerceCartMergingStrategy, TmaCartStrategy
B2ctelcoCommerceCartMergingStrategy, an implementation of CommerceCartMergingStrategy to merge anonymous cart with user cart.- Since:
- 1911
-
-
Constructor Summary
Constructors Constructor Description B2ctelcoCommerceCartMergingStrategy(TmaCustomerInventoryService customerInventoryService, TmaCommerceAddToCartStrategy commerceAddToCartStrategy, TmaUpdateCartStrategy tmaUpdateCartStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TmaCommerceAddToCartStrategygetCommerceAddToCartStrategy()protected TmaCustomerInventoryServicegetCustomerInventoryService()protected TmaUpdateCartStrategygetTmaUpdateCartStrategy()voidmergeCarts(CartModel fromCart, CartModel toCart, java.util.List<CommerceCartModification> modifications)protected CommerceCartModificationmergeEntryWithCart(AbstractOrderEntryModel entry, CartModel toCart)java.util.List<CommerceCartModification>processCartAction(java.util.List<CommerceCartParameter> commerceCartParameterList)Processes cart updates.protected voidrecalculateCart(CartModel toCart)protected voidvalidateFromCartEligibilityContext(CartModel fromCart)-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy
copyEntryGroups, flatten, getBaseSiteService, getCommerceCartService, getEntryGroupService, getEntryMergeStrategy, getUserService, reindexEntries, reindexEntryGroups, setBaseSiteService, setCommerceCartService, setEntryGroupService, setEntryMergeStrategy, setUserService, updateEntryNumber, validationBeforeMerge
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
checkCartLevel, getAllowedCartAdjustmentForProduct, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductService
-
-
-
-
Constructor Detail
-
B2ctelcoCommerceCartMergingStrategy
public B2ctelcoCommerceCartMergingStrategy(TmaCustomerInventoryService customerInventoryService, TmaCommerceAddToCartStrategy commerceAddToCartStrategy, TmaUpdateCartStrategy tmaUpdateCartStrategy)
-
-
Method Detail
-
mergeCarts
public void mergeCarts(CartModel fromCart, CartModel toCart, java.util.List<CommerceCartModification> modifications) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
- Specified by:
mergeCartsin interfacede.hybris.platform.commerceservices.order.impl.CommerceCartMergingStrategy- Overrides:
mergeCartsin classde.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy- Throws:
de.hybris.platform.commerceservices.order.CommerceCartMergingException
-
processCartAction
public java.util.List<CommerceCartModification> processCartAction(java.util.List<CommerceCartParameter> commerceCartParameterList) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
Description copied from interface:TmaCartStrategyProcesses cart updates.- Specified by:
processCartActionin interfaceTmaCartStrategy- Parameters:
commerceCartParameterList- contains attributes used for cart updates- Returns:
- list
CommerceCartModification - Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- in case of any error occurs during cart update
-
recalculateCart
protected void recalculateCart(CartModel toCart)
-
validateFromCartEligibilityContext
protected void validateFromCartEligibilityContext(CartModel fromCart) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartMergingException
-
mergeEntryWithCart
protected CommerceCartModification mergeEntryWithCart(AbstractOrderEntryModel entry, CartModel toCart) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
- Overrides:
mergeEntryWithCartin classde.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy- Throws:
de.hybris.platform.commerceservices.order.CommerceCartMergingException
-
getCustomerInventoryService
protected TmaCustomerInventoryService getCustomerInventoryService()
-
getCommerceAddToCartStrategy
protected TmaCommerceAddToCartStrategy getCommerceAddToCartStrategy()
-
getTmaUpdateCartStrategy
protected TmaUpdateCartStrategy getTmaUpdateCartStrategy()
-
-