Class OrderCreateDataListsFieldValidator

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

public class OrderCreateDataListsFieldValidator extends AbstractOrderCreateRequestValidator implements NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
The ndc 18.2 Order create data lists field validator.
  • Constructor Details

    • OrderCreateDataListsFieldValidator

      public OrderCreateDataListsFieldValidator()
  • Method Details

    • validate

      public void validate(IATAOrderCreateRQ orderCreateRQ, List<ErrorType> errors)
      Validates the datalists field. Checks if paxJourneyList, paxSegmentList, paxList are present.
      Specified by:
      validate in interface NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
      Parameters:
      orderCreateRQ - the orderCreateRQ
      errors - the list of errors
    • validateContactInfo

      protected void validateContactInfo(ContactInfoListType contactInfoList, List<ErrorType> errors)
      Validate contact info.
      Parameters:
      contactInfoList - the contact info list
      errors - the errors
    • validatePostalAddress

      protected void validatePostalAddress(List<PostalAddressType> postalAddress, List<ErrorType> errors)
      Validate postal address.
      Parameters:
      postalAddress - the postal address
      errors - the errors
    • validatePaxSegmentList

      protected void validatePaxSegmentList(PaxSegmentListType paxSegmentList, List<ErrorType> errors)
      Validates pax segment list.
      Parameters:
      paxSegmentList - the pax segment list
      errors - the errors
    • validatePaxJourneyList

      protected void validatePaxJourneyList(PaxJourneyListType paxJourneyList, List<ErrorType> errors)
      Validates pax journey list.
      Parameters:
      paxJourneyList - the pax journey list
      errors - the errors
    • validatePaxList

      protected void validatePaxList(PaxListType paxList, List<ErrorType> errors)
      Validates pax list. Checks if one of the passenger has invalid ndcCode or Id/Ptc empty.
      Parameters:
      paxList - the pax list type
      errors - the errors
    • validateIndividualField

      protected void validateIndividualField(IndividualType individual, List<ErrorType> errors)
      Validates the individual field for each passenger in the pax list.
      Parameters:
      individual - the individual
      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