Class DefaultTmaCartHookHelper
java.lang.Object
de.hybris.platform.b2ctelcoservices.hook.impl.DefaultTmaCartHookHelper
- All Implemented Interfaces:
TmaCartHookHelper
Default implementation of
TmaCartHookHelper.- Since:
- 1810
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaCartHookHelper(TmaAbstractOrderEntryService abstractOrderEntryService) -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaAbstractOrderEntryServicede.hybris.platform.commerceservices.order.CommerceCartCalculationStrategyde.hybris.platform.servicelayer.model.ModelServicevoidinvalidateBpoEntries(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) voidrecalculateEntries(AbstractOrderEntryModel rootEntry) Sets all cart entries belonging to the same BPO as "not calculated" and then recalculates all of them.voidsetCalculationStrategy(de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy calculationStrategy) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
Constructor Details
-
DefaultTmaCartHookHelper
-
-
Method Details
-
invalidateBpoEntries
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
-
recalculateEntries
Description copied from interface:TmaCartHookHelperSets all cart entries belonging to the same BPO as "not calculated" and then recalculates all of them.- Specified by:
recalculateEntriesin interfaceTmaCartHookHelper- Parameters:
rootEntry- the root entry which will be recalculated along with all its children
-
recalculateCart
-
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) -
getAbstractOrderEntryService
-