Class OriginDestinationRefNumberValidationStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.AbstractAddBundleToCartValidationStrategy
de.hybris.platform.travelfacades.strategies.impl.OriginDestinationRefNumberValidationStrategy
- All Implemented Interfaces:
AddBundleToCartValidationStrategy
public class OriginDestinationRefNumberValidationStrategy
extends AbstractAddBundleToCartValidationStrategy
Strategy that extends the
AbstractAddBundleToCartValidationStrategy.
The strategy is used to validate the addBundleToCart, that is possible only if in the cart there is at least one entry for each
originDestinationRefNumber less than the one specified in the AddBundleToCartRequestData.-
Field Summary
FieldsFields inherited from class de.hybris.platform.travelfacades.strategies.AbstractAddBundleToCartValidationStrategy
ADD_BUNDLE_TO_CART_VALIDATION_ERROR_NO_SESSION_CART -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.order.CartServicevoidsetCartService(de.hybris.platform.order.CartService cartService) validate(AddBundleToCartRequestData addBundleToCartRequestData) Validates the add bundle to cartMethods inherited from class de.hybris.platform.travelfacades.strategies.AbstractAddBundleToCartValidationStrategy
createAddToCartResponse
-
Field Details
-
ADD_BUNDLE_TO_CART_VALIDATION_ERROR_NO_PREVIOUS_ENTRIES
- See Also:
-
-
Constructor Details
-
OriginDestinationRefNumberValidationStrategy
public OriginDestinationRefNumberValidationStrategy()
-
-
Method Details
-
validate
Description copied from interface:AddBundleToCartValidationStrategyValidates the add bundle to cart- Parameters:
addBundleToCartRequestData- as the add bundle to cart request data- Returns:
- the add to cart response data
-
getCartService
protected de.hybris.platform.order.CartService getCartService()- Returns:
- the cartService
-
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) - Parameters:
cartService- the cartService to set
-