Class OrderChangeSelectedOfferFieldValidator

java.lang.Object
de.hybris.platform.ndc182webservices.validators.impl.AbstractOrderValidator
de.hybris.platform.ndc182webservices.validators.impl.OrderChangeSelectedOfferFieldValidator
All Implemented Interfaces:
NDCFieldValidator<IATAOrderChangeRQ,List<ErrorType>>

public class OrderChangeSelectedOfferFieldValidator extends AbstractOrderValidator implements NDCFieldValidator<IATAOrderChangeRQ,List<ErrorType>>
The implementation of NDCFieldValidator to validate the selected offer segment. Validates: 1. OfferRefID is present 2. OwnerCode is present 3. OwnerCode length meets ICAO or IATA DEFINED CHARACTER CODE LENGTH 4. At least one SelecteOfferItem is present 5. ShoppingResponseRefID is present.
  • Constructor Details

    • OrderChangeSelectedOfferFieldValidator

      public OrderChangeSelectedOfferFieldValidator()
  • Method Details

    • validate

      public void validate(IATAOrderChangeRQ request, List<ErrorType> errors)
      Description copied from interface: NDCFieldValidator
      Validate.
      Specified by:
      validate in interface NDCFieldValidator<IATAOrderChangeRQ,List<ErrorType>>
      Parameters:
      request - the request
      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