Class BundleCartHookHelper
java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleCartHookHelper
- Direct Known Subclasses:
DefaultSubscriptionBundleCartHookHelper
Helper methods for operating with bundles in cart.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntryGroupServiceprotected ModelServicevoidinvalidateBundleEntries(CartModel cart, Integer entryGroupNumber) Sets all cart entries that belong to the same bundle to "not calculated".voidsetEntryGroupService(EntryGroupService entryGroupService) voidsetModelService(ModelService modelService) union(Set<Integer> first, Collection<Integer> second) Joins two sets of group numbers.
-
Constructor Details
-
BundleCartHookHelper
public BundleCartHookHelper()
-
-
Method Details
-
invalidateBundleEntries
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
Joins two sets of group numbers.- Parameters:
first- first setsecond- second set- Returns:
- the union of the sets
-
getEntryGroupService
-
setEntryGroupService
-
getModelService
-
setModelService
-