Class OrderCreateSelectedOfferListFieldValidator
java.lang.Object
de.hybris.platform.ndc182webservices.validators.impl.AbstractOrderCreateRequestValidator
de.hybris.platform.ndc182webservices.validators.impl.OrderCreateSelectedOfferListFieldValidator
- All Implemented Interfaces:
NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
public class OrderCreateSelectedOfferListFieldValidator
extends AbstractOrderCreateRequestValidator
implements NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
The ndc 18.2 Order create selected offer list field validator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.config.ConfigurationServiceGets the configurationServiceprotected booleanChecks the owner code against a property since the concept of global marketing carrier is not presentvoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets the configurationServicevoidvalidate(IATAOrderCreateRQ orderCreateRQ, List<ErrorType> errors) Validate.protected voidvalidateCreateOrderField(CreateOrderType createOrder, List<ErrorType> errors) Validates create order field.protected voidvalidateOfferItems(List<SelectedOfferItemType> selectedOfferItems, List<ErrorType> errors) Validates all offer items.protected voidvalidateSelectedAlaCarteOfferItem(SelectedALaCarteOfferItemType selectedALaCarteOfferItem, List<ErrorType> errors) Validates the selected ala carte offer item.protected voidvalidateSelectedSeat(SelectedSeatType selectedSeat, List<ErrorType> errors) Validates the selected seat.Methods inherited from class de.hybris.platform.ndc182webservices.validators.impl.AbstractOrderCreateRequestValidator
addError
-
Constructor Details
-
OrderCreateSelectedOfferListFieldValidator
public OrderCreateSelectedOfferListFieldValidator()
-
-
Method Details
-
validate
Description copied from interface:NDCFieldValidatorValidate.- Specified by:
validatein interfaceNDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>> - Parameters:
orderCreateRQ- the requesterrors- the errors
-
validateCreateOrderField
Validates create order field. Verifies if all the mandatory fields are present.- Parameters:
createOrder- the create ordererrors- the errors
-
validateOfferItems
protected void validateOfferItems(List<SelectedOfferItemType> selectedOfferItems, List<ErrorType> errors) Validates all offer items. Verifies if all the mandatory fields are present.- Parameters:
selectedOfferItems- the selected offer itemserrors- the errors
-
validateSelectedSeat
Validates the selected seat.- Parameters:
selectedSeat- the selected seaterrors- the list of errors
-
validateSelectedAlaCarteOfferItem
protected void validateSelectedAlaCarteOfferItem(SelectedALaCarteOfferItemType selectedALaCarteOfferItem, List<ErrorType> errors) Validates the selected ala carte offer item. Checks if the quantity and the flight association are present.- Parameters:
selectedALaCarteOfferItem- the selected a la carte offer itemerrors- the errors
-
isValidOwnerCode
Checks the owner code against a property since the concept of global marketing carrier is not present- Parameters:
offer-- Returns:
- trueif the owner code against the offer is valid
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets the configurationService- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets the configurationService- Parameters:
configurationService- the configurationService to set
-