Class OfferPriceDataListsFieldValidator

java.lang.Object
de.hybris.platform.ndc182webservices.validators.impl.AbstractOfferPriceValidator
de.hybris.platform.ndc182webservices.validators.impl.OfferPriceDataListsFieldValidator
All Implemented Interfaces:
NDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>>

public class OfferPriceDataListsFieldValidator extends AbstractOfferPriceValidator implements NDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>>
The Offer Price Datalists field implementation of NDCFieldValidator interface.
  • Constructor Details

    • OfferPriceDataListsFieldValidator

      public OfferPriceDataListsFieldValidator()
  • Method Details

    • validate

      public void validate(IATAOfferPriceRQ request, List<ErrorType> errors)
      Validates the datalists field. Checks if the paxList is null and if the pax type code is in the correct format.
      Specified by:
      validate in interface NDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>>
      Parameters:
      request - the request
      errors - the errors.
    • validatePaxList

      protected void validatePaxList(PaxListType paxList, List<ErrorType> errors)
      Validates pax list. For each pax type checks if exists at least one passengerType having the same ndcCode.
      Parameters:
      paxList - the pax list
      errors - the errors
    • getNdcPassengerTypeService

      protected NDCPassengerTypeService getNdcPassengerTypeService()
      Gets ndc passenger type service.
      Returns:
      the ndc passenger type service
    • setNdcPassengerTypeService

      public void setNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService)
      Sets ndc passenger type service.
      Parameters:
      ndcPassengerTypeService - the ndc passenger type service