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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DecodeSavedSearchStrategyGets decode saved search strategy.protected StringgetLocationName(String locationSuggestionType, String locationCode) Gets location name.protected PassengerTypeFacadeGets passenger type facade.protected List<PassengerTypeQuantityData>getPassengerTypeQuantityData(Map<String, String> encodedDataMap) Gets passenger type quantity data.protected TransportFacilityServiceGets transport facility service.protected TravellerSortStrategyGets traveller sort strategy.protected TravelLocationServiceGets travel location service.voidpopulate(SavedSearchModel source, SavedSearchData target) voidsetDecodeSavedSearchStrategy(DecodeSavedSearchStrategy decodeSavedSearchStrategy) Sets decode saved search strategy.voidsetPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade) Sets passenger type facade.voidsetTransportFacilityService(TransportFacilityService transportFacilityService) Sets transport facility service.voidsetTravellerSortStrategy(TravellerSortStrategy travellerSortStrategy) Sets traveller sort strategy.voidsetTravelLocationService(TravelLocationService travelLocationService) Sets travel location service.
-
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:
populatein interfacede.hybris.platform.converters.Populator<SavedSearchModel,SavedSearchData> - Throws:
de.hybris.platform.servicelayer.dto.converter.ConversionException
-
getLocationName
Gets location name.- Parameters:
locationSuggestionType- the location suggestion typelocationCode- 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
Gets passenger type facade.- Returns:
- the passenger type facade
-
setPassengerTypeFacade
Sets passenger type facade.- Parameters:
passengerTypeFacade- the passengerTypeFacade to set
-
getTravellerSortStrategy
Gets traveller sort strategy.- Returns:
- the traveller sort strategy
-
setTravellerSortStrategy
Sets traveller sort strategy.- Parameters:
travellerSortStrategy- the travellerSortStrategy to set
-
getDecodeSavedSearchStrategy
Gets decode saved search strategy.- Returns:
- the decode saved search strategy
-
setDecodeSavedSearchStrategy
Sets decode saved search strategy.- Parameters:
decodeSavedSearchStrategy- the decodeSavedSearchStrategy to set
-
getTravelLocationService
Gets travel location service.- Returns:
- the travel location service
-
setTravelLocationService
Sets travel location service.- Parameters:
travelLocationService- the travel location service
-
getTransportFacilityService
Gets transport facility service.- Returns:
- the transport facility service
-
setTransportFacilityService
Sets transport facility service.- Parameters:
transportFacilityService- the transport facility service
-