Class OffersRequestHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OffersRequestHandler
- All Implemented Interfaces:
AncillarySearchRequestHandler
Handler class to populate SelectedOffers in OfferRequestData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.session.SessionServicevoidhandle(ReservationData reservationData, OfferRequestData offerRequestData) This method creates a list of OfferGroupData from reservationData and assigns to the SelelcteOffersData in OfferRequestData.protected booleanisCategoryAvailable(List<CategoryData> uniqueCategories, CategoryData categoryData) Returns true if the categoryData of same code exists in uniqueCategories.voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
-
Constructor Details
-
OffersRequestHandler
public OffersRequestHandler()
-
-
Method Details
-
handle
This method creates a list of OfferGroupData from reservationData and assigns to the SelelcteOffersData in OfferRequestData.- Specified by:
handlein interfaceAncillarySearchRequestHandler- Parameters:
reservationData- the reservation dataofferRequestData- 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 CategoriesDatacategoryData- 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
-