Class DefaultBaggageCartProductValidationStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultBaggageCartProductValidationStrategy
- All Implemented Interfaces:
CartEntryValidationStrategy
public class DefaultBaggageCartProductValidationStrategy
extends Object
implements CartEntryValidationStrategy
The baggage entry validation strategy to validate baggage entry as active and of baggage product type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateCartEntry(AbstractOrderEntryModel orderEntryModel, long quantity) Validate the cart entry as active and type of ancillary product.
-
Constructor Details
-
DefaultBaggageCartProductValidationStrategy
public DefaultBaggageCartProductValidationStrategy()
-
-
Method Details
-
validateCartEntry
public void validateCartEntry(AbstractOrderEntryModel orderEntryModel, long quantity) throws ProductNotEligibleException Validate the cart entry as active and type of ancillary product.- Specified by:
validateCartEntryin interfaceCartEntryValidationStrategy- Parameters:
orderEntryModel- the order entry Modelquantity- quantity to add/update/remove- Throws:
ProductNotEligibleException- the ancillary entry either not active or not a ancillary product entry.
-