Class OriginDestinationHandler

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

public class OriginDestinationHandler extends Object implements AncillarySearchHandler
Handler class to populate the BookingBreakdown in the offerPricingInfos of the originDestinationOfferInfoData
  • Constructor Details

    • OriginDestinationHandler

      public OriginDestinationHandler()
  • Method Details

    • handle

      public void handle(OfferRequestData offerRequestData, OfferResponseData offerResponseData)
      Description copied from interface: AncillarySearchHandler
      Handle method.
      Specified by:
      handle in interface AncillarySearchHandler
      Parameters:
      offerRequestData - the offer request data
      offerResponseData - the offer response data
    • getFilteredOfferGroups

      protected List<OfferGroupData> getFilteredOfferGroups(OfferResponseData offerResponseData)
      Filters the offerGroups based of the AddToCartCriteriaType, 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 update
      itineraryData - the ItineraryData
      Returns:
      list of OriginDestinationOfferInfoData
    • getOfferGroupToOriginDestinationMapping

      protected Map<String,String> getOfferGroupToOriginDestinationMapping()
      Returns:
      the offerGroupToOriginDestinationMapping
    • setOfferGroupToOriginDestinationMapping

      public void setOfferGroupToOriginDestinationMapping(Map<String,String> offerGroupToOriginDestinationMapping)
      Parameters:
      offerGroupToOriginDestinationMapping - the offerGroupToOriginDestinationMapping to set