Class PROSFareDetailsHandler
java.lang.Object
de.hybris.platform.prosfacades.fare.search.handlers.impl.PROSFareDetailsHandler
- All Implemented Interfaces:
ShoppingFlightSearchHandler
The type Pros Fare details handler populates the fare details in the flight search response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BundleTemplateModelfindBundleTemplate(String shoppingFareReference, String apiUser, String bundleTypeCode) Find a fare product bundle template by bundleType, shopping reference code and api user.protected voidgetBundleProductData(List<BasicProductData> basicProductDataList, BundleTemplateModel bundleTemplateModel) Get the bundle product dataprotected List<CategoryData>getCategories(Collection<CategoryModel> superCategories) Get the category data listprotected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected PROSTravelBundleTemplateServiceGet the PROS Travel Bundle Template Serviceprotected TravelCommercePriceFacadeGets travel commerce price facade.voidhandle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String, TransportOfferingData> transportOfferingDataMap, Map<Integer, String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData) Handle methodprotected voidpopulateFareBundles(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData, String username) protected voidpopulateFareDetails(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData) Populate the fare detailsprotected voidpopulateFeeDetails(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData) Populate fee datailsvoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService) Set PROS Travel Bundle Template ServicevoidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
-
Constructor Details
-
PROSFareDetailsHandler
public PROSFareDetailsHandler()
-
-
Method Details
-
handle
public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String, TransportOfferingData> transportOfferingDataMap, Map<Integer, String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData) Description copied from interface:ShoppingFlightSearchHandlerHandle method- Specified by:
handlein interfaceShoppingFlightSearchHandler- Parameters:
searchResponseMessage- the search response messagefareShopMessage- the fare shop messageflightSearchResponseData- the flightSearchResponseDatatransportOfferingDataMap- the transportOfferingDataMapflightIdCodeMap- the flightIdCodeMapflightSearchRequestData- the flight search request data
-
populateFareBundles
protected void populateFareBundles(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData, String username) -
findBundleTemplate
protected BundleTemplateModel findBundleTemplate(String shoppingFareReference, String apiUser, String bundleTypeCode) Find a fare product bundle template by bundleType, shopping reference code and api user.- Parameters:
shoppingFareReference- the shopping fare referenceapiUser- the api userbundleTypeCode- the bundle type code- Returns:
- the bundle template model
-
getBundleProductData
protected void getBundleProductData(List<BasicProductData> basicProductDataList, BundleTemplateModel bundleTemplateModel) Get the bundle product data- Parameters:
basicProductDataList- list of product databundleTemplateModel- bundle template
-
getCategories
Get the category data list- Parameters:
superCategories- collection of Categories of the product- Returns:
- list of category data
-
populateFeeDetails
protected void populateFeeDetails(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData) Populate fee datails- Parameters:
prosSearchResponse- pros search responseflightSearchResponseData- flight search response data
-
populateFareDetails
protected void populateFareDetails(PROSSearchResponse prosSearchResponse, FlightSearchResponseData flightSearchResponseData) Populate the fare details- Parameters:
prosSearchResponse- pros search responseflightSearchResponseData- flight search response data
-
getProsTravelBundleTemplateService
Get the PROS Travel Bundle Template Service- Returns:
- pros travel bundle template service
-
setProsTravelBundleTemplateService
public void setProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService) Set PROS Travel Bundle Template Service- Parameters:
prosTravelBundleTemplateService- the pros travel bundle template service
-
getTravelCommercePriceFacade
Gets travel commerce price facade.- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-
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
-