Class BundleCartHookHelper

java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleCartHookHelper
Direct Known Subclasses:
DefaultSubscriptionBundleCartHookHelper

public class BundleCartHookHelper extends Object
Helper methods for operating with bundles in cart.
See Also:
  • Constructor Details

    • BundleCartHookHelper

      public BundleCartHookHelper()
  • Method Details

    • invalidateBundleEntries

      public void invalidateBundleEntries(@Nonnull CartModel cart, @Nonnull Integer entryGroupNumber)
      Sets all cart entries that belong to the same bundle to "not calculated". As the prices within a bundle may vary dependent on the bundle entries a re-calculation of the whole bundle (and all the carts that contain entries of the affected bundle) is necessary.
      Parameters:
      cart - the cart to recalculate entries in.
      entryGroupNumber - the entry group number to recalculate entries for.
    • union

      @Nonnull public Set<Integer> union(Set<Integer> first, Collection<Integer> second)
      Joins two sets of group numbers.
      Parameters:
      first - first set
      second - second set
      Returns:
      the union of the sets
    • getEntryGroupService

      protected EntryGroupService getEntryGroupService()
    • setEntryGroupService

      public void setEntryGroupService(EntryGroupService entryGroupService)
    • getModelService

      protected ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)