Class OneSearchMessagePopulator
java.lang.Object
de.hybris.platform.prosfacades.converters.populator.OneSearchMessagePopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<FareSearchRequestData,FareShopMessage>
public class OneSearchMessagePopulator
extends Object
implements de.hybris.platform.converters.Populator<FareSearchRequestData,FareShopMessage>
The type One search message populator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets cabin class code to cabin mapping.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.Gets passenger code to pax type mapping.protected de.hybris.platform.commercefacades.storesession.StoreSessionFacadevoidpopulate(FareSearchRequestData source, FareShopMessage target) protected voidpopulateDepartureDate(OriginDestinationInfoData originDestinationInfoData, TripSegment tripSegment) Populate arrival date.protected voidpopulatePassengerGroup(FareSearchRequestData source, SegmentPassengers segmentPassengers, SearchRequest searchRequest) Populate passenger group.protected voidpopulatePassengerTypes(FareSearchRequestData source, SearchRequest searchRequest) Populate passenger types.protected voidpopulatePreferences(SearchRequest searchRequest) Populate preferences.protected voidpopulatePreferences(TripSegment tripSegment) Populate preferences.protected voidpopulateSearchRequest(FareSearchRequestData source, SearchRequest searchRequest) Populate search request.protected voidpopulateSegmentPassenger(FareSearchRequestData source, TripSegment tripSegment, SearchRequest searchRequest) Populate segment passenger.protected voidpopulateSellers(SearchRequest searchRequest) Populate sellers.protected voidpopulateTripSegments(FareSearchRequestData source, SearchRequest searchRequest) Populate trip segments.voidsetCabinClassCodeToCabinMapping(Map<String, String> cabinClassCodeToCabinMapping) Sets cabin class code to cabin mapping.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetPassengerCodeToPaxTypeMapping(Map<String, String> passengerCodeToPaxTypeMapping) Sets passenger code to pax type mapping.voidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.
-
Constructor Details
-
OneSearchMessagePopulator
public OneSearchMessagePopulator()
-
-
Method Details
-
populate
- Specified by:
populatein interfacede.hybris.platform.converters.Populator<FareSearchRequestData,FareShopMessage>
-
populateSearchRequest
Populate search request.- Parameters:
source- the sourcesearchRequest- the search request
-
populatePreferences
Populate preferences.- Parameters:
searchRequest- the search request
-
populateSellers
Populate sellers.- Parameters:
searchRequest- the search request
-
populatePassengerTypes
Populate passenger types.- Parameters:
source- the sourcesearchRequest- the search request
-
populateTripSegments
Populate trip segments.- Parameters:
source- the sourcesearchRequest- the search request
-
populateSegmentPassenger
protected void populateSegmentPassenger(FareSearchRequestData source, TripSegment tripSegment, SearchRequest searchRequest) Populate segment passenger.- Parameters:
source- the sourcetripSegment- the trip segmentsearchRequest- the search request
-
populatePassengerGroup
protected void populatePassengerGroup(FareSearchRequestData source, SegmentPassengers segmentPassengers, SearchRequest searchRequest) Populate passenger group.- Parameters:
source- the sourcesegmentPassengers- the segment passengerssearchRequest- the search request
-
populatePreferences
Populate preferences.- Parameters:
tripSegment- the trip segment
-
populateDepartureDate
protected void populateDepartureDate(OriginDestinationInfoData originDestinationInfoData, TripSegment tripSegment) Populate arrival date.- Parameters:
originDestinationInfoData- the origin destination info datatripSegment- the trip segment
-
getPassengerCodeToPaxTypeMapping
Gets passenger code to pax type mapping.- Returns:
- the passenger code to pax type mapping
-
setPassengerCodeToPaxTypeMapping
Sets passenger code to pax type mapping.- Parameters:
passengerCodeToPaxTypeMapping- the passenger code to pax type mapping
-
getCabinClassCodeToCabinMapping
Gets cabin class code to cabin mapping.- Returns:
- the cabin class code to cabin mapping
-
setCabinClassCodeToCabinMapping
Sets cabin class code to cabin mapping.- Parameters:
cabinClassCodeToCabinMapping- the cabin class code to cabin mapping
-
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
-
getStoreSessionFacade
protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade getStoreSessionFacade() -
setStoreSessionFacade
public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.- Parameters:
storeSessionFacade- the store session facade
-