Class FlightSearchMessagePopulator
java.lang.Object
de.hybris.platform.prosfacades.converters.populator.FlightSearchMessagePopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<FlightSearchRequestData,FareShopMessage>
public class FlightSearchMessagePopulator
extends Object
implements de.hybris.platform.converters.Populator<FlightSearchRequestData,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.protected de.hybris.platform.couponservices.services.CouponServiceGet coupon serviceGets passenger code to pax type mapping.protected de.hybris.platform.commercefacades.storesession.StoreSessionFacadeprotected de.hybris.platform.servicelayer.user.UserServiceGet user servicevoidpopulate(FlightSearchRequestData source, FareShopMessage target) protected voidpopulateDepartureDate(SearchSegmentData segment, TripSegment tripSegment) Populate arrival date.protected voidpopulatePassengerGroup(SearchSegmentData source, SegmentPassengers segmentPassengers, SearchRequest searchRequest) Populate passenger group.protected voidpopulatePassengerTypes(SearchSegmentData searchSegment, SearchRequest searchRequest) Populate passenger types.protected voidpopulatePreferences(SearchPreferencesData searchPreferences, SearchRequest searchRequest) Populate preferences.protected voidpopulatePreferences(SearchPreferencesData searchPreferences, TripSegment tripSegment) Populate preferences.protected voidpopulateSearchRequest(FlightSearchRequestData source, SearchRequest searchRequest) Populate search request.protected voidpopulateSegmentPassenger(SearchSegmentData segment, TripSegment tripSegment, SearchRequest searchRequest) Populate segment passenger.protected voidpopulateSellers(SearchRequest searchRequest) Populate sellers.protected voidpopulateTripSegments(FlightSearchRequestData 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.voidsetCouponService(de.hybris.platform.couponservices.services.CouponService couponService) Set coupon servicevoidsetPassengerCodeToPaxTypeMapping(Map<String, String> passengerCodeToPaxTypeMapping) Sets passenger code to pax type mapping.voidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService) Set User service
-
Constructor Details
-
FlightSearchMessagePopulator
public FlightSearchMessagePopulator()
-
-
Method Details
-
populate
- Specified by:
populatein interfacede.hybris.platform.converters.Populator<FlightSearchRequestData,FareShopMessage>
-
populateSearchRequest
Populate search request.- Parameters:
source- the sourcesearchRequest- the search request
-
populatePreferences
protected void populatePreferences(SearchPreferencesData searchPreferences, SearchRequest searchRequest) Populate preferences.- Parameters:
searchPreferences-searchRequest-
-
populateSellers
Populate sellers.- Parameters:
searchRequest- the search request
-
populatePassengerTypes
Populate passenger types.- Parameters:
searchSegment- the searchSegmentsearchRequest- the search request
-
populateTripSegments
Populate trip segments.- Parameters:
source- the sourcesearchRequest- the search request
-
populateSegmentPassenger
protected void populateSegmentPassenger(SearchSegmentData segment, TripSegment tripSegment, SearchRequest searchRequest) Populate segment passenger.- Parameters:
segment- the sourcetripSegment- the trip segmentsearchRequest- the search request
-
populatePassengerGroup
protected void populatePassengerGroup(SearchSegmentData source, SegmentPassengers segmentPassengers, SearchRequest searchRequest) Populate passenger group.- Parameters:
source- the sourcesegmentPassengers- the segment passengerssearchRequest-
-
populatePreferences
protected void populatePreferences(SearchPreferencesData searchPreferences, TripSegment tripSegment) Populate preferences.- Parameters:
searchPreferences- search preferencestripSegment- the trip segment
-
populateDepartureDate
Populate arrival date.- Parameters:
segment- the segments 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
-
getCouponService
protected de.hybris.platform.couponservices.services.CouponService getCouponService()Get coupon service- Returns:
-
setCouponService
public void setCouponService(de.hybris.platform.couponservices.services.CouponService couponService) Set coupon service- Parameters:
couponService-
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService()Get user service- Returns:
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) Set User service- Parameters:
userService-
-