Class SavedSearchPopulator

java.lang.Object
de.hybris.platform.travelfacades.populators.SavedSearchPopulator
All Implemented Interfaces:
de.hybris.platform.converters.Populator<SavedSearchModel,SavedSearchData>

public class SavedSearchPopulator extends Object implements de.hybris.platform.converters.Populator<SavedSearchModel,SavedSearchData>
Populator to populate the SavedSearchData from the SavedSearchModel
  • Constructor Details

    • SavedSearchPopulator

      public SavedSearchPopulator()
  • Method Details

    • populate

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

      protected String getLocationName(String locationSuggestionType, String locationCode)
      Gets location name.
      Parameters:
      locationSuggestionType - the location suggestion type
      locationCode - the location code
      Returns:
      the location name
    • getPassengerTypeQuantityData

      protected List<PassengerTypeQuantityData> getPassengerTypeQuantityData(Map<String,String> encodedDataMap)
      Gets passenger type quantity data.
      Parameters:
      encodedDataMap - the encoded data map
      Returns:
      the passenger type quantity data
    • getPassengerTypeFacade

      protected PassengerTypeFacade getPassengerTypeFacade()
      Gets passenger type facade.
      Returns:
      the passenger type facade
    • setPassengerTypeFacade

      public void setPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade)
      Sets passenger type facade.
      Parameters:
      passengerTypeFacade - the passengerTypeFacade to set
    • getTravellerSortStrategy

      protected TravellerSortStrategy getTravellerSortStrategy()
      Gets traveller sort strategy.
      Returns:
      the traveller sort strategy
    • setTravellerSortStrategy

      public void setTravellerSortStrategy(TravellerSortStrategy travellerSortStrategy)
      Sets traveller sort strategy.
      Parameters:
      travellerSortStrategy - the travellerSortStrategy to set
    • getDecodeSavedSearchStrategy

      protected DecodeSavedSearchStrategy getDecodeSavedSearchStrategy()
      Gets decode saved search strategy.
      Returns:
      the decode saved search strategy
    • setDecodeSavedSearchStrategy

      public void setDecodeSavedSearchStrategy(DecodeSavedSearchStrategy decodeSavedSearchStrategy)
      Sets decode saved search strategy.
      Parameters:
      decodeSavedSearchStrategy - the decodeSavedSearchStrategy to set
    • getTravelLocationService

      protected TravelLocationService getTravelLocationService()
      Gets travel location service.
      Returns:
      the travel location service
    • setTravelLocationService

      public void setTravelLocationService(TravelLocationService travelLocationService)
      Sets travel location service.
      Parameters:
      travelLocationService - the travel location service
    • getTransportFacilityService

      protected TransportFacilityService getTransportFacilityService()
      Gets transport facility service.
      Returns:
      the transport facility service
    • setTransportFacilityService

      public void setTransportFacilityService(TransportFacilityService transportFacilityService)
      Sets transport facility service.
      Parameters:
      transportFacilityService - the transport facility service