Class DefaultSubscriptionBundleCartHookHelper
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.order.hook.BundleCartHookHelper
-
- de.hybris.platform.subscriptionbundleservices.order.hook.impl.DefaultSubscriptionBundleCartHookHelper
-
public class DefaultSubscriptionBundleCartHookHelper extends BundleCartHookHelper
Subscription-aware implementation ofBundleCartHookHelper, invalidates entries for child carts as well as the master cart entries.
-
-
Constructor Summary
Constructors Constructor Description DefaultSubscriptionBundleCartHookHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvalidateBundleEntries(CartModel cart, java.lang.Integer entryGroupNumber)Sets all cart entries that belong to the same bundle to "not calculated".-
Methods inherited from class de.hybris.platform.configurablebundleservices.order.hook.BundleCartHookHelper
getEntryGroupService, getModelService, setEntryGroupService, setModelService, union
-
-
-
-
Method Detail
-
invalidateBundleEntries
public void invalidateBundleEntries(@Nonnull CartModel cart, @Nonnull java.lang.Integer entryGroupNumber)Description copied from class:BundleCartHookHelperSets 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.- Overrides:
invalidateBundleEntriesin classBundleCartHookHelper- Parameters:
cart- the cart to recalculate entries in.entryGroupNumber- the entry group number to recalculate entries for.
-
-