Class ChangeCurrencyValidator
java.lang.Object
de.hybris.platform.coretravelbasewebservicescommons.validators.AbstractTravelValidator
de.hybris.platform.coreairlinecommonsocc.validators.ChangeCurrencyValidator
- All Implemented Interfaces:
TravelValidator,org.springframework.validation.Validator
Validates airline change currency request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BookingFacadeGets booking facade.protected de.hybris.platform.commercefacades.storesession.StoreSessionFacadeGets store session facade.protected TravelCartServiceGets travel cart service.voidsetBookingFacade(BookingFacade bookingFacade) Sets booking facade.voidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.voidsetTravelCartService(TravelCartService travelCartService) Sets travel cart service.booleanvoidprotected voidvalidateCurrency(String currencyISO, org.springframework.validation.Errors errors) Validate currency.Methods inherited from class de.hybris.platform.coretravelbasewebservicescommons.validators.AbstractTravelValidator
getErrorId, getErrorMessage, getFieldPath, isOptional, isValidationRequired, reject, setErrorId, setErrorMessage, setFieldPath, setOptional, validate
-
Constructor Details
-
ChangeCurrencyValidator
public ChangeCurrencyValidator()
-
-
Method Details
-
supports
-
validate
-
validateCurrency
Validate currency.- Parameters:
currencyISO- the currency isoerrors- the errors
-
getBookingFacade
Gets booking facade.- Returns:
- the booking facade
-
setBookingFacade
Sets booking facade.- Parameters:
bookingFacade- the booking facade
-
getTravelCartService
Gets travel cart service.- Returns:
- the travel cart service
-
setTravelCartService
Sets travel cart service.- Parameters:
travelCartService- the travel cart service
-
getStoreSessionFacade
protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade getStoreSessionFacade()Gets store session facade.- Returns:
- the store session facade
-
setStoreSessionFacade
public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.- Parameters:
storeSessionFacade- the store session facade
-