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 Details

    • ADD_BUNDLE_TO_CART_VALIDATION_ERROR_NO_PREVIOUS_ENTRIES

      public static final String ADD_BUNDLE_TO_CART_VALIDATION_ERROR_NO_PREVIOUS_ENTRIES
      See Also:
  • Constructor Details

    • OriginDestinationRefNumberValidationStrategy

      public OriginDestinationRefNumberValidationStrategy()
  • Method Details

    • validate

      public AddToCartResponseData validate(AddBundleToCartRequestData addBundleToCartRequestData)
      Description copied from interface: AddBundleToCartValidationStrategy
      Validates 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