Class DefaultTmaCartHookHelper

    • Constructor Detail

      • DefaultTmaCartHookHelper

        public DefaultTmaCartHookHelper()
    • Method Detail

      • invalidateBpoEntries

        public void invalidateBpoEntries​(CartModel cart,
                                         EntryGroup entryGroup)
        Description copied from interface: TmaCartHookHelper
        Sets all cart entries belonging to the same entry group/BPO as "not calculated" and then recalculates all of them.
        Specified by:
        invalidateBpoEntries in interface TmaCartHookHelper
        Parameters:
        cart - the cart to recalculate entries
        entryGroup - the entry group for which the cart entries are recalculated
      • recalculateChildCarts

        public void recalculateChildCarts​(CartModel cartModel)
        Description copied from interface: TmaCartHookHelper
        Recalculates all child carts belonging to a master cart.
        Specified by:
        recalculateChildCarts in interface TmaCartHookHelper
        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)