Class FlightRequiredValidationStrategy
java.lang.Object
de.hybris.platform.coreairlineocc.validators.strategies.impl.FlightRequiredValidationStrategy
- All Implemented Interfaces:
AddAncillaryToCartRequestValidationStrategy
public class FlightRequiredValidationStrategy
extends Object
implements AddAncillaryToCartRequestValidationStrategy
Strategy to validate flightIds not empty in add ancillary request to cart, If empty 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
-
FlightRequiredValidationStrategy
public FlightRequiredValidationStrategy()
-
-
Method Details
-
validate
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:
FlightRequiredWsException
-
getErrorCodeResolver
Gets error code resolver.- Returns:
- the error code resolver
-
setErrorCodeResolver
Sets error code resolver.- Parameters:
errorCodeResolver- the error code resolver
-