Class ShoppingFareRulesHandler
java.lang.Object
de.hybris.platform.shoppingfacades.fare.search.handlers.impl.ShoppingFareRulesHandler
- All Implemented Interfaces:
ShoppingFareSearchHandler
The type Shopping fare rules handler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<FareProductData>collectFareProducts(FareSelectionData fareSelectionData) Collects unique fare products from all priced itinerariesde.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.Gets travel rules service.voidhandle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Handle methodprotected BooleanisFareProductUnique(List<FareProductData> fareProducts, FareProductData fareProduct) Verifies that there is no fare product with the same code already in the listprotected voidremoveExcludedProductsFromBundles(FareSelectionData fareSelectionData, List<FareProductData> excludedFareProducts) Removes excluded fare products from all bundles that contain themvoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetTravelRulesService(TravelRulesService travelRulesService) Sets travel rules service.protected voidupdateAvailability(FareSelectionData fareSelectionData) Updates availability of bundles, itinerary pricing infos and priced itineraries after rules evaluation activity
-
Constructor Details
-
ShoppingFareRulesHandler
public ShoppingFareRulesHandler()
-
-
Method Details
-
handle
public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Description copied from interface:ShoppingFareSearchHandlerHandle method- Specified by:
handlein interfaceShoppingFareSearchHandler- Parameters:
searchResponseMessage- the search response messagefareShopMessage- the fare shop messagefareSearchRequestData- the fare search request datafareSelectionData- the fare selection data
-
updateAvailability
Updates availability of bundles, itinerary pricing infos and priced itineraries after rules evaluation activity- Parameters:
fareSelectionData- the fare selection data
-
removeExcludedProductsFromBundles
protected void removeExcludedProductsFromBundles(FareSelectionData fareSelectionData, List<FareProductData> excludedFareProducts) Removes excluded fare products from all bundles that contain them- Parameters:
fareSelectionData- the fare selection dataexcludedFareProducts- the excluded fare products
-
collectFareProducts
Collects unique fare products from all priced itineraries- Parameters:
fareSelectionData- the fare selection data- Returns:
- list list
-
isFareProductUnique
protected Boolean isFareProductUnique(List<FareProductData> fareProducts, FareProductData fareProduct) Verifies that there is no fare product with the same code already in the list- Parameters:
fareProducts- the fare productsfareProduct- the fare product- Returns:
- boolean boolean
-
getTravelRulesService
Gets travel rules service.- Returns:
- the travel rules service
-
setTravelRulesService
Sets travel rules service.- Parameters:
travelRulesService- the travel rules service
-
getConfigurationService
public 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
-