Class FlightCodesValidator

java.lang.Object
de.hybris.platform.coretravelbasewebservicescommons.validators.AbstractTravelValidator
de.hybris.platform.coreairlineocc.validators.FlightCodesValidator
All Implemented Interfaces:
TravelValidator, org.springframework.validation.Validator

public class FlightCodesValidator extends AbstractTravelValidator implements org.springframework.validation.Validator
Validator to validate if the list of all the flight codes in the origin destination groups is the same of the one retrieved from the selected fares.
  • Field Details

  • Constructor Details

    • FlightCodesValidator

      public FlightCodesValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> aClass)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate(Object target, org.springframework.validation.Errors errors)
      Validates if 1) each flight code exists in the system and it is a correct code; 2) the list of all the flight codes in the origin destination groups is the same of the one retrieved * from the selected fares.
      Specified by:
      validate in interface org.springframework.validation.Validator
      Parameters:
      target - the dto to be validated
      errors - the list of validation errors