java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.airshopping.handlers.impl.AirShoppingOffersGroupHandler
All Implemented Interfaces:
AirshoppingHandler

public class AirShoppingOffersGroupHandler extends Object implements AirshoppingHandler
  • Constructor Details

    • AirShoppingOffersGroupHandler

      public AirShoppingOffersGroupHandler()
  • Method Details

    • handle

      public void handle(FlightSearchResponseData flightSearchResponseData, IATAAirShoppingRS airShoppingRS) throws NDCCacheException, NDCException
      Description copied from interface: AirshoppingHandler
      Specified by:
      handle in interface AirshoppingHandler
      Parameters:
      flightSearchResponseData - the flight search response data
      airShoppingRS - the air shopping rs
      Throws:
      NDCCacheException
      NDCException
    • createRBDData

      protected List<NDCOfferItemRBDData> createRBDData(FareReferenceData fareReferenceData, BookingOptionData bookingOptionData)
      Create rbd data list.
      Parameters:
      fareReferenceData - the fare reference data
      bookingOptionData - the booking option data
      Returns:
      the list
    • createFareData

      protected NDCOfferItemFareData createFareData(FareReferenceData fareReferenceData, FareData fare) throws NDCException
      Create fare data list.
      Parameters:
      fareReferenceData - the offer item
      fare - the fare
      Returns:
      the list
      Throws:
      NDCException
    • createNDCPassengers

      protected List<NDCPassengerData> createNDCPassengers(FareReferenceData fareReferenceData, FlightSearchResponseData flightSearchResponseData)
      Create ndc passengers list.
      Parameters:
      fareReferenceData - the offer item
      flightSearchResponseData - the passengers
      Returns:
      the list
    • createTotalPrice

      protected PriceType createTotalPrice(BookingOptionData bookingOptionData)
      Create total price.
      Parameters:
      bookingOptionData - the booking option data
      Returns:
      the price type
    • createOfferItems

      protected List<OfferItemType> createOfferItems(BookingOptionData bookingOptionData, FlightSearchResponseData flightSearchResponseData, List<NDCCarrierOfferItemData> ndcCarrierOfferItems) throws NDCException
      Create offer items and store the offer in cache.
      Parameters:
      bookingOptionData - the booking option data
      flightSearchResponseData - the flight search response data
      ndcCarrierOfferItems -
      Returns:
      the list
      Throws:
      NDCCacheException - the ndc cache exception
      NDCException
    • populateServices

      protected void populateServices(FareReferenceData fareReferenceData, OfferItemType offerItemType, String fareBundleProductRefCode, List<String> flightRefCodes)
      Populate services.
      Parameters:
      fareReferenceData - the fare reference data
      offerItemType - the offer item type
      fareBundleProductRefCode - the fare bundle product ref code
      flightRefCodes - the flight ref codes
    • createOfferItemsForCache

      protected NDCCarrierOfferItemData createOfferItemsForCache(FareReferenceData fareReferenceData, String offerItemId, FlightSearchResponseData flightSearchResponseData, BookingOptionData bookingOptionData) throws NDCException
      Create offer items for cache ndc carrier offer item data.
      Parameters:
      fareReferenceData - the fare reference data
      offerItemId - the offer item id
      flightSearchResponseData - the flight search response data
      bookingOptionData - the booking option data
      Returns:
      the ndc carrier offer item data
      Throws:
      NDCException
    • createFareDetails

      protected FareDetailType createFareDetails(FareData fare, PriceType offerItemPrice, BookingOptionData bookingOptionData, FareReferenceData fareReferenceData)
      Create fare details.
      Parameters:
      fare - the fare
      offerItemPrice - the offer item price
      bookingOptionData - the booking option data
      fareReferenceData - the fare reference data
      Returns:
      the fare detail type
    • createOfferItemPrice

      protected PriceType createOfferItemPrice(BookingOptionData bookingOptionData, FlightSearchResponseData flightSearchResponseData, FareReferenceData fareReferenceData)
      Create offer item price.
      Parameters:
      bookingOptionData - the booking option data
      flightSearchResponseData - the flight search response data
      fareReferenceData - the fare reference data
      Returns:
      the price type
    • createJourneyOverview

      protected JourneyOverviewType createJourneyOverview(BookingOptionData bookingOptionData, List<FlightGroupData> flightGroups)
      Create journey overview.
      Parameters:
      bookingOptionData - the booking option data
      flightGroups - the flight groups
      Returns:
      the journey overview type
    • getNdcOfferIDGenerator

      protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getNdcOfferIDGenerator()
      Gets ndc offer id generator.
      Returns:
      the ndc offer id generator
    • setNdcOfferIDGenerator

      public void setNdcOfferIDGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator ndcOfferIDGenerator)
      Sets ndc offer id generator.
      Parameters:
      ndcOfferIDGenerator - the ndc offer id generator
    • getNdcOfferFacade

      protected NDCOfferFacade getNdcOfferFacade()
      Gets ndc offer facade.
      Returns:
      the ndc offer facade
    • setNdcOfferFacade

      public void setNdcOfferFacade(NDCOfferFacade ndcOfferFacade)
      Sets ndc offer facade.
      Parameters:
      ndcOfferFacade - the ndc offer facade