Class OriginDestinationHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OriginDestinationHandler
- All Implemented Interfaces:
AncillarySearchHandler
Handler class to populate the BookingBreakdown in the offerPricingInfos of the originDestinationOfferInfoData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OfferGroupData>getFilteredOfferGroups(OfferResponseData offerResponseData) Filters the offerGroups based of theAddToCartCriteriaType, returning the list of offerGroups with type PER_LEG or PER_LEG_PER_PAXprotected final List<OriginDestinationOfferInfoData>getOriginDestinationInfos(OfferGroupData offerGroupData, ItineraryData itineraryData) Will update the OfferGroupData with a list of OriginDestinationOfferInfo based on the given ItineraryDatavoidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Handle method.voidsetOfferGroupToOriginDestinationMapping(Map<String, String> offerGroupToOriginDestinationMapping)
-
Constructor Details
-
OriginDestinationHandler
public OriginDestinationHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-
getFilteredOfferGroups
Filters the offerGroups based of theAddToCartCriteriaType, returning the list of offerGroups with type PER_LEG or PER_LEG_PER_PAX- Parameters:
offerResponseData-- Returns:
-
getOriginDestinationInfos
protected final List<OriginDestinationOfferInfoData> getOriginDestinationInfos(OfferGroupData offerGroupData, ItineraryData itineraryData) Will update the OfferGroupData with a list of OriginDestinationOfferInfo based on the given ItineraryData- Parameters:
offerGroupData- the OfferGroupData to updateitineraryData- the ItineraryData- Returns:
- list of OriginDestinationOfferInfoData
-
getOfferGroupToOriginDestinationMapping
- Returns:
- the offerGroupToOriginDestinationMapping
-
setOfferGroupToOriginDestinationMapping
public void setOfferGroupToOriginDestinationMapping(Map<String, String> offerGroupToOriginDestinationMapping) - Parameters:
offerGroupToOriginDestinationMapping- the offerGroupToOriginDestinationMapping to set
-