Class BundleCartHookHelper
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.order.hook.BundleCartHookHelper
-
- Direct Known Subclasses:
DefaultSubscriptionBundleCartHookHelper
public class BundleCartHookHelper extends java.lang.ObjectHelper methods for operating with bundles in cart.
-
-
Constructor Summary
Constructors Constructor Description BundleCartHookHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EntryGroupServicegetEntryGroupService()protected ModelServicegetModelService()voidinvalidateBundleEntries(CartModel cart, java.lang.Integer entryGroupNumber)Sets all cart entries that belong to the same bundle to "not calculated".voidsetEntryGroupService(EntryGroupService entryGroupService)voidsetModelService(ModelService modelService)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.
-
-
-
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 setsecond- 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)
-
-