Class PassengerRequiredValidationStrategy
java.lang.Object
de.hybris.platform.coreairlineocc.validators.strategies.impl.PassengerRequiredValidationStrategy
- All Implemented Interfaces:
AddAncillaryToCartRequestValidationStrategy
public class PassengerRequiredValidationStrategy
extends Object
implements AddAncillaryToCartRequestValidationStrategy
Strategy to validate passenger is not blank in add ancillary request to cart, If blank throws exception
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorCodeResolverGets error code resolver.voidsetErrorCodeResolver(ErrorCodeResolver errorCodeResolver) Sets error code resolver.voidValidates transportOfferingCodes, passengers and throws exception
-
Constructor Details
-
PassengerRequiredValidationStrategy
public PassengerRequiredValidationStrategy()
-
-
Method Details
-
validate
public void validate(List<String> flightIds, String passengerId) throws PassengerRequiredWsException Description copied from interface:AddAncillaryToCartRequestValidationStrategyValidates transportOfferingCodes, passengers and throws exception- Specified by:
validatein interfaceAddAncillaryToCartRequestValidationStrategy- Parameters:
flightIds- the codes of the transportOfferings the ancillary product is addedpassengerId- the code of the passenger to whom the ancillary product is added- Throws:
PassengerRequiredWsException
-
getErrorCodeResolver
Gets error code resolver.- Returns:
- the error code resolver
-
setErrorCodeResolver
Sets error code resolver.- Parameters:
errorCodeResolver- the error code resolver
-