Class OfferPricePricedOfferFieldValidator
java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.validators.impl.AbstractOfferPriceValidator
de.hybris.platform.ndc182shoppingwebservices.validators.impl.OfferPricePricedOfferFieldValidator
- All Implemented Interfaces:
NDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>>
public class OfferPricePricedOfferFieldValidator
extends AbstractOfferPriceValidator
implements NDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>>
The Offer Price Datalists field implementation of
NDCFieldValidator interface.-
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(IATAOfferPriceRQ request, List<ErrorType> errors) Validates the pricedOffer field.protected voidvalidateSelectedOfferItems(List<SelectedOfferItemType> selectedOfferItems, List<PaxType> paxList, List<ErrorType> errors) Validates all the selected offer items.protected voidvalidateSelectedOffers(List<SelectedOfferType> selectedOffers, List<PaxType> paxList, List<ErrorType> errors) Validates selected offers.Methods inherited from class de.hybris.platform.ndc182shoppingwebservices.validators.impl.AbstractOfferPriceValidator
addError
-
Constructor Details
-
OfferPricePricedOfferFieldValidator
public OfferPricePricedOfferFieldValidator()
-
-
Method Details
-
validate
Validates the pricedOffer field.- Specified by:
validatein interfaceNDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>> - Parameters:
request- the requesterrors- the errors
-
validateSelectedOffers
protected void validateSelectedOffers(List<SelectedOfferType> selectedOffers, List<PaxType> paxList, List<ErrorType> errors) Validates selected offers. For each selected offer checks if all the mandatory fields are present.- Parameters:
selectedOffers- the selected offerspaxList- the pax listerrors- the errors
-
validateSelectedOfferItems
protected void validateSelectedOfferItems(List<SelectedOfferItemType> selectedOfferItems, List<PaxType> paxList, List<ErrorType> errors) Validates all the selected offer items. Checks if offerItemID and PaxRefID are present and if all the paxRefID are correctly cross-referenced to the paxList in the datalists.- Parameters:
selectedOfferItems- the selected offer itemspaxList- the paxListerrors- 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
-