Class ShoppingFareRulesHandler

java.lang.Object
de.hybris.platform.shoppingfacades.fare.search.handlers.impl.ShoppingFareRulesHandler
All Implemented Interfaces:
ShoppingFareSearchHandler

public class ShoppingFareRulesHandler extends Object implements ShoppingFareSearchHandler
The type Shopping fare rules handler.
  • Constructor Details

    • ShoppingFareRulesHandler

      public ShoppingFareRulesHandler()
  • Method Details

    • handle

      public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData)
      Description copied from interface: ShoppingFareSearchHandler
      Handle method
      Specified by:
      handle in interface ShoppingFareSearchHandler
      Parameters:
      searchResponseMessage - the search response message
      fareShopMessage - the fare shop message
      fareSearchRequestData - the fare search request data
      fareSelectionData - the fare selection data
    • updateAvailability

      protected void updateAvailability(FareSelectionData fareSelectionData)
      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 data
      excludedFareProducts - the excluded fare products
    • collectFareProducts

      protected List<FareProductData> collectFareProducts(FareSelectionData fareSelectionData)
      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 products
      fareProduct - the fare product
      Returns:
      boolean boolean
    • getTravelRulesService

      public TravelRulesService getTravelRulesService()
      Gets travel rules service.
      Returns:
      the travel rules service
    • setTravelRulesService

      public void setTravelRulesService(TravelRulesService travelRulesService)
      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