java.lang.Object
de.hybris.platform.travelrulesengine.converters.populator.LegInfoRaoPopulator
All Implemented Interfaces:
de.hybris.platform.converters.Populator<FareSearchRequestData,FareSearchRequestRAO>

public class LegInfoRaoPopulator extends Object implements de.hybris.platform.converters.Populator<FareSearchRequestData,FareSearchRequestRAO>
Populates FareSearchRequestRAO leg info and trip type attributes from FareSearchRequestData
  • Constructor Details

    • LegInfoRaoPopulator

      public LegInfoRaoPopulator()
  • Method Details

    • populate

      public void populate(FareSearchRequestData source, FareSearchRequestRAO target) throws de.hybris.platform.servicelayer.dto.converter.ConversionException
      Specified by:
      populate in interface de.hybris.platform.converters.Populator<FareSearchRequestData,FareSearchRequestRAO>
      Throws:
      de.hybris.platform.servicelayer.dto.converter.ConversionException
    • createLegInfo

      protected LegInfoRAO createLegInfo(OriginDestinationInfoData odInfo)
      Create leg info leg info rao.
      Parameters:
      odInfo - the od info
      Returns:
      the leg info rao
    • getTimeService

      protected de.hybris.platform.servicelayer.time.TimeService getTimeService()
      Gets time service.
      Returns:
      the time service
    • setTimeService

      public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
      Sets time service.
      Parameters:
      timeService - the time service