Class OrderChangeSelectedOfferFieldValidator
java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.validators.impl.AbstractOrderValidator
de.hybris.platform.ndc182shoppingwebservices.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 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(IATAOrderChangeRQ request, List<ErrorType> errors) Validate.Methods inherited from class de.hybris.platform.ndc182shoppingwebservices.validators.impl.AbstractOrderValidator
addError
-
Constructor Details
-
OrderChangeSelectedOfferFieldValidator
public OrderChangeSelectedOfferFieldValidator()
-
-
Method Details
-
validate
Description copied from interface:NDCFieldValidatorValidate.- Specified by:
validatein interfaceNDCFieldValidator<IATAOrderChangeRQ,List<ErrorType>> - Parameters:
request- the requesterrors- 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
-