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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidValidates 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.Methods inherited from class de.hybris.platform.coretravelbasewebservicescommons.validators.AbstractTravelValidator
getErrorId, getErrorMessage, getFieldPath, isOptional, isValidationRequired, reject, setErrorId, setErrorMessage, setFieldPath, setOptional, validate
-
Field Details
-
INVALID_FLIGHT_LIST_CODE
- See Also:
-
-
Constructor Details
-
FlightCodesValidator
public FlightCodesValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
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:
validatein interfaceorg.springframework.validation.Validator- Parameters:
target- the dto to be validatederrors- the list of validation errors
-