Class OrderCreateSelectedOfferListFieldValidator

java.lang.Object
de.hybris.platform.ndc182webservices.validators.impl.AbstractOrderCreateRequestValidator
de.hybris.platform.ndc182webservices.validators.impl.OrderCreateSelectedOfferListFieldValidator
All Implemented Interfaces:
NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>

public class OrderCreateSelectedOfferListFieldValidator extends AbstractOrderCreateRequestValidator implements NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
The ndc 18.2 Order create selected offer list field validator.
  • Constructor Details

    • OrderCreateSelectedOfferListFieldValidator

      public OrderCreateSelectedOfferListFieldValidator()
  • Method Details

    • validate

      public void validate(IATAOrderCreateRQ orderCreateRQ, List<ErrorType> errors)
      Description copied from interface: NDCFieldValidator
      Validate.
      Specified by:
      validate in interface NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
      Parameters:
      orderCreateRQ - the request
      errors - the errors
    • validateCreateOrderField

      protected void validateCreateOrderField(CreateOrderType createOrder, List<ErrorType> errors)
      Validates create order field. Verifies if all the mandatory fields are present.
      Parameters:
      createOrder - the create order
      errors - the errors
    • validateOfferItems

      protected void validateOfferItems(List<SelectedOfferItemType> selectedOfferItems, List<ErrorType> errors)
      Validates all offer items. Verifies if all the mandatory fields are present.
      Parameters:
      selectedOfferItems - the selected offer items
      errors - the errors
    • validateSelectedSeat

      protected void validateSelectedSeat(SelectedSeatType selectedSeat, List<ErrorType> errors)
      Validates the selected seat.
      Parameters:
      selectedSeat - the selected seat
      errors - the list of errors
    • validateSelectedAlaCarteOfferItem

      protected void validateSelectedAlaCarteOfferItem(SelectedALaCarteOfferItemType selectedALaCarteOfferItem, List<ErrorType> errors)
      Validates the selected ala carte offer item. Checks if the quantity and the flight association are present.
      Parameters:
      selectedALaCarteOfferItem - the selected a la carte offer item
      errors - the errors
    • isValidOwnerCode

      protected boolean isValidOwnerCode(SelectedOfferType offer)
      Checks the owner code against a property since the concept of global marketing carrier is not present
      Parameters:
      offer -
      Returns:
      trueif the owner code against the offer is valid
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets the configurationService
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets the configurationService
      Parameters:
      configurationService - the configurationService to set