Class DefaultTmaCartHookHelper
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.hook.impl.DefaultTmaCartHookHelper
-
- All Implemented Interfaces:
TmaCartHookHelper
public class DefaultTmaCartHookHelper extends java.lang.Object implements TmaCartHookHelper
Default implementation ofTmaCartHookHelper.- Since:
- 1810
-
-
Constructor Summary
Constructors Constructor Description DefaultTmaCartHookHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategygetCalculationStrategy()de.hybris.platform.servicelayer.model.ModelServicegetModelService()voidinvalidateBpoEntries(CartModel cart, EntryGroup entryGroup)Sets all cart entries belonging to the same entry group/BPO as "not calculated" and then recalculates all of them.protected voidrecalculateCart(CartModel cartModel)voidrecalculateChildCarts(CartModel cartModel)Recalculates all child carts belonging to a master cart.voidsetCalculationStrategy(de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy calculationStrategy)voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
-
Method Detail
-
invalidateBpoEntries
public void invalidateBpoEntries(CartModel cart, EntryGroup entryGroup)
Description copied from interface:TmaCartHookHelperSets all cart entries belonging to the same entry group/BPO as "not calculated" and then recalculates all of them.- Specified by:
invalidateBpoEntriesin interfaceTmaCartHookHelper- Parameters:
cart- the cart to recalculate entriesentryGroup- the entry group for which the cart entries are recalculated
-
recalculateChildCarts
public void recalculateChildCarts(CartModel cartModel)
Description copied from interface:TmaCartHookHelperRecalculates all child carts belonging to a master cart.- Specified by:
recalculateChildCartsin interfaceTmaCartHookHelper- Parameters:
cartModel- the master cart for which the child carts are recalculated
-
recalculateCart
protected void recalculateCart(CartModel cartModel)
-
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService()
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
getCalculationStrategy
public de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy getCalculationStrategy()
-
setCalculationStrategy
public void setCalculationStrategy(de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy calculationStrategy)
-
-