Class AirShoppingOffersGroupHandler

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

public class AirShoppingOffersGroupHandler extends Object implements AirShoppingHandler
Handler to populate all of the offers in the airShoppingDataList
  • Constructor Details

    • AirShoppingOffersGroupHandler

      public AirShoppingOffersGroupHandler()
  • Method Details

    • handle

      public void handle(FareSelectionData fareSelectionData, IATAAirShoppingRQ airShoppingRQ, IATAAirShoppingRS airShoppingRS) throws NDCException
      Description copied from interface: AirShoppingHandler
      Uses data from the fareSelectionData and the air shopping request to populate the air shopping response
      Specified by:
      handle in interface AirShoppingHandler
      Throws:
      NDCException
    • populateJourneyOverview

      protected void populateJourneyOverview(ItineraryPricingInfoData itineraryPricingInfoData, JourneyOverviewType journeyOverviewType, Offer1Type offerType, PricedItineraryData pricedItineraryData)
      populates the journeyOverviewType fields in the offerGroups
      Parameters:
      itineraryPricingInfoData -
      journeyOverviewType -
      offerType -
      pricedItineraryData -
    • populateOfferItems

      protected void populateOfferItems(PricedItineraryData pricedItineraryData, ItineraryPricingInfoData itineraryPricingInfoData, Offer1Type offerType, IATAAirShoppingRQ airShoppingRQ) throws NDCException
      populates the offerItems in the offer
      Parameters:
      pricedItineraryData -
      itineraryPricingInfoData -
      offerType -
      airShoppingRQ -
      Throws:
      NDCException
    • populateServices

      protected void populateServices(ProductData productData, ItineraryPricingInfoData itineraryPricingInfoData, OfferItemType offerItemType, PTCFareBreakdownData ptcFareBreakdownData, String offerId, IATAAirShoppingRQ airShoppingRQ) throws NDCException
      populates the services in the offerItems depending on what the productType is
      Parameters:
      productData -
      itineraryPricingInfoData -
      offerItemType -
      ptcFareBreakdownData -
      offerId -
      airShoppingRQ -
      Throws:
      NDCException
    • populatePrices

      protected void populatePrices(PTCFareBreakdownData ptcFareBreakdownData, OfferItemType offerItemType)
      populates the prices of the offerItems
      Parameters:
      ptcFareBreakdownData -
      offerItemType -
    • populateNDCOfferItemForCache

      protected NDCCarrierOfferItemData populateNDCOfferItemForCache(PricedItineraryData pricedItineraryData, ItineraryPricingInfoData itineraryPricingInfoData, PTCFareBreakdownData ptcFareBreakdownData, List<PassengerTypeData> passengerTypeDataList, IATAAirShoppingRQ airShoppingRQ) throws NDCException
      creates ndcOfferItem this item will then be cached in the system
      Parameters:
      pricedItineraryData -
      itineraryPricingInfoData -
      ptcFareBreakdownData -
      airShoppingRQ -
      Throws:
      NDCException
    • getPassengerIdFromRequest

      protected String getPassengerIdFromRequest(IATAAirShoppingRQ airShoppingRQ, String ptcCode, int i) throws NDCException
      Gets corresponding passenger ID from request
      Parameters:
      airShoppingRQ -
      ptcCode -
      i - the incremental index
      Returns:
      Throws:
      NDCException
    • getNdcOfferFacade

      protected NDCOfferFacade getNdcOfferFacade()
      gets ndc offer facade
      Returns:
    • setNdcOfferFacade

      public void setNdcOfferFacade(NDCOfferFacade ndcOfferFacade)
      sets ndc offer facade
      Parameters:
      ndcOfferFacade -
    • getNdcOfferItemIDCodeGenerator

      protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getNdcOfferItemIDCodeGenerator()
      gets ndc offer ItemId codeGenerator
      Returns:
    • setNdcOfferItemIDCodeGenerator

      public void setNdcOfferItemIDCodeGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator ndcOfferItemIDCodeGenerator)
      sets ndc offer ItemId codeGenerator
      Parameters:
      ndcOfferItemIDCodeGenerator -
    • getPassengerTypeFacade

      public PassengerTypeFacade getPassengerTypeFacade()
      gets the passenger type facade
      Returns:
    • setPassengerTypeFacade

      public void setPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade)
      sets the passenger type facade
      Parameters:
      passengerTypeFacade -
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
      gets product service
      Returns:
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      sets product service
      Parameters:
      productService -