Class BundleCartHookHelper

    • Constructor Detail

      • BundleCartHookHelper

        public BundleCartHookHelper()
    • Method Detail

      • invalidateBundleEntries

        public void invalidateBundleEntries​(@Nonnull
                                            CartModel cart,
                                            @Nonnull
                                            java.lang.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 java.util.Set<java.lang.Integer> union​(java.util.Set<java.lang.Integer> first,
                                                      java.util.Collection<java.lang.Integer> second)
        Joins two sets of group numbers.
        Parameters:
        first - first set
        second - second set
        Returns:
        the union of the sets
      • setEntryGroupService

        public void setEntryGroupService​(EntryGroupService entryGroupService)
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)