java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OffersRequestHandler
All Implemented Interfaces:
AncillarySearchRequestHandler

public class OffersRequestHandler extends Object implements AncillarySearchRequestHandler
Handler class to populate SelectedOffers in OfferRequestData.
  • Constructor Details

    • OffersRequestHandler

      public OffersRequestHandler()
  • Method Details

    • handle

      public void handle(ReservationData reservationData, OfferRequestData offerRequestData)
      This method creates a list of OfferGroupData from reservationData and assigns to the SelelcteOffersData in OfferRequestData.
      Specified by:
      handle in interface AncillarySearchRequestHandler
      Parameters:
      reservationData - the reservation data
      offerRequestData - the offer request data
    • isCategoryAvailable

      protected boolean isCategoryAvailable(List<CategoryData> uniqueCategories, CategoryData categoryData)
      Returns true if the categoryData of same code exists in uniqueCategories.
      Parameters:
      uniqueCategories - list of CategoriesData
      categoryData - CategoryData of OfferPricingInfo
      Returns:
      a boolean, true if exists else false.
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Returns:
      the sessionService
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Parameters:
      sessionService - the sessionService to set