Class PricingInfoOffersRequestHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.PricingInfoOffersRequestHandler
- All Implemented Interfaces:
AncillarySearchRequestHandler
public class PricingInfoOffersRequestHandler
extends Object
implements AncillarySearchRequestHandler
Handler to populate OfferPricingInfo in SelectedOffers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,List<OfferPricingInfoData>> getOfferPricingInfoForOfferGroup(ReservationData reservationData) Returns a map of the offerPricingInfo for different offerGroupsprotected Map<String,Map<List<TransportOfferingData>, List<OfferPricingInfoData>>> getOfferPricingInfoFromReservation(ReservationData reservationData) This method categorizes OfferPricingInfo objects by combination of TransportOfferings and CategoryCode.protected List<OfferPricingInfoData>getOfferPricingInfosForTransportOfferings(Map<List<TransportOfferingData>, List<OfferPricingInfoData>> offersByODInfo, List<TransportOfferingData> transportOfferings) Returns a list of OfferPricingInfoData matching given list of TransportOfferingsprotected TravelRestrictionFacadevoidhandle(ReservationData reservationData, OfferRequestData offerRequestData) Method to populate offerPricingInfo to Selected Offers.protected voidsetOfferPricingInfoByRoute(Map<String, Map<List<TransportOfferingData>, List<OfferPricingInfoData>>> offerPricingInfoByOffersGroupMap, OriginDestinationOfferInfoData odOfferInfo, OfferPricingInfoData offerPriceInfo, String categoryCode) voidsetTravelRestrictionFacade(TravelRestrictionFacade travelRestrictionFacade)
-
Constructor Details
-
PricingInfoOffersRequestHandler
public PricingInfoOffersRequestHandler()
-
-
Method Details
-
handle
Method to populate offerPricingInfo to Selected Offers.- Specified by:
handlein interfaceAncillarySearchRequestHandler- Parameters:
reservationData- the reservation dataofferRequestData- the offer request data
-
getOfferPricingInfoForOfferGroup
protected Map<String,List<OfferPricingInfoData>> getOfferPricingInfoForOfferGroup(ReservationData reservationData) Returns a map of the offerPricingInfo for different offerGroups- Parameters:
reservationData-- Returns:
- a map with the offerGroup code as key and the list of its offerPricingInfos as value
-
getOfferPricingInfosForTransportOfferings
protected List<OfferPricingInfoData> getOfferPricingInfosForTransportOfferings(Map<List<TransportOfferingData>, List<OfferPricingInfoData>> offersByODInfo, List<TransportOfferingData> transportOfferings) Returns a list of OfferPricingInfoData matching given list of TransportOfferings- Parameters:
offersByODInfo- - map containing OfferPricingInfos for TransportOffering combinationstransportOfferings- - given set of transport offerings- Returns:
- matching list of OfferPricingInfoData
-
getOfferPricingInfoFromReservation
protected Map<String,Map<List<TransportOfferingData>, getOfferPricingInfoFromReservationList<OfferPricingInfoData>>> (ReservationData reservationData) This method categorizes OfferPricingInfo objects by combination of TransportOfferings and CategoryCode. Map<ProductCategoryCode, Map<List, List > - Parameters:
reservationData-- Returns:
- a Map of OfferPricingInfo categorized by combination of TransportOfferings and CategoryCode.
-
setOfferPricingInfoByRoute
protected void setOfferPricingInfoByRoute(Map<String, Map<List<TransportOfferingData>, List<OfferPricingInfoData>>> offerPricingInfoByOffersGroupMap, OriginDestinationOfferInfoData odOfferInfo, OfferPricingInfoData offerPriceInfo, String categoryCode) -
getTravelRestrictionFacade
- Returns:
- the travelRestrictionFacade
-
setTravelRestrictionFacade
- Parameters:
travelRestrictionFacade- the travelRestrictionFacade to set
-