Class OfferPricePricedOfferFieldValidator

java.lang.Object
de.hybris.platform.ndc182webservices.validators.impl.AbstractOfferPriceValidator
de.hybris.platform.ndc182webservices.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 Details

    • OfferPricePricedOfferFieldValidator

      public OfferPricePricedOfferFieldValidator()
  • Method Details

    • validate

      public void validate(IATAOfferPriceRQ request, List<ErrorType> errors)
      Validates the pricedOffer field.
      Specified by:
      validate in interface NDCFieldValidator<IATAOfferPriceRQ,List<ErrorType>>
      Parameters:
      request - the request
      errors - 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 offers
      paxList - the pax list
      errors - 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 items
      paxList - the paxList
      errors - the errors
    • isValidOwnerCode

      protected boolean isValidOwnerCode(SelectedOfferType offer)
      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