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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NDCPassengerTypeServiceGets ndc passenger type service.voidsetNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService) Sets ndc passenger type service.voidvalidate(IATAOfferPriceRQ request, List<ErrorType> errors) Validates the datalists field.protected voidvalidatePaxList(PaxListType paxList, List<ErrorType> errors) Validates pax list.Methods inherited from class de.hybris.platform.ndc182webservices.validators.impl.AbstractOfferPriceValidator
addError
-
Constructor Details
-
OfferPriceDataListsFieldValidator
public OfferPriceDataListsFieldValidator()
-
-
Method Details
-
validate
Validates the datalists field. Checks if the paxList is null and if the pax type code is in the correct format.- Specified by:
validatein interfaceNDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>> - Parameters:
request- the requesterrors- the errors.
-
validatePaxList
Validates pax list. For each pax type checks if exists at least one passengerType having the same ndcCode.- Parameters:
paxList- the pax listerrors- the errors
-
getNdcPassengerTypeService
Gets ndc passenger type service.- Returns:
- the ndc passenger type service
-
setNdcPassengerTypeService
Sets ndc passenger type service.- Parameters:
ndcPassengerTypeService- the ndc passenger type service
-