Class TravellerRequiredValidationStrategy
java.lang.Object
de.hybris.platform.coretransportocc.validators.strategies.impl.TravellerRequiredValidationStrategy
- All Implemented Interfaces:
AddAncillaryToCartRequestValidationStrategy
public class TravellerRequiredValidationStrategy
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.voidvalidate(AncillaryEntryRequest ancillaryEntryRQ) Validates transportOfferingCodes, passenger, travelRouteCode and throws exception
-
Constructor Details
-
TravellerRequiredValidationStrategy
public TravellerRequiredValidationStrategy()
-
-
Method Details
-
validate
Description copied from interface:AddAncillaryToCartRequestValidationStrategyValidates transportOfferingCodes, passenger, travelRouteCode and throws exception- Specified by:
validatein interfaceAddAncillaryToCartRequestValidationStrategy- Parameters:
ancillaryEntryRQ- ancillary entry request
-
getErrorCodeResolver
Gets error code resolver.- Returns:
- the error code resolver
-
setErrorCodeResolver
Sets error code resolver.- Parameters:
errorCodeResolver- the error code resolver
-