Class DefaultTravellerPtcCodeValidationStrategy

java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultTravellerPtcCodeValidationStrategy
All Implemented Interfaces:
AddTravellerToCartValidationStrategy

public class DefaultTravellerPtcCodeValidationStrategy extends Object implements AddTravellerToCartValidationStrategy
Strategy to validate the ptcCode of a traveller.
  • Constructor Details

    • DefaultTravellerPtcCodeValidationStrategy

      public DefaultTravellerPtcCodeValidationStrategy()
  • Method Details

    • validate

      public void validate(TravellerQuantityListData travellerQuantityListData) throws AddTravellerToCartException
      Validates if 1) the ptcCodes are unique in the list; 2) the ptcCode of the travellers exists in the system.
      Specified by:
      validate in interface AddTravellerToCartValidationStrategy
      Parameters:
      travellerQuantityListData - the travellers
      Throws:
      AddTravellerToCartException
    • getPassengerTypeService

      protected PassengerTypeService getPassengerTypeService()
      Gets passenger type service.
      Returns:
      the passenger type service
    • setPassengerTypeService

      public void setPassengerTypeService(PassengerTypeService passengerTypeService)
      Sets passenger type service.
      Parameters:
      passengerTypeService - the passenger type service
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configuration service.
      Returns:
      the configuration service
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configuration service