Class AirShoppingOffersGroupHandler
java.lang.Object
de.hybris.platform.ndc182facades.facades.airshopping.handlers.impl.AirShoppingOffersGroupHandler
- All Implemented Interfaces:
AirShoppingHandler
Handler to populate all of the offers in the airShoppingDataList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NDCOfferFacadegets ndc offer facadeprotected de.hybris.platform.servicelayer.keygenerator.KeyGeneratorgets ndc offer ItemId codeGeneratorprotected StringgetPassengerIdFromRequest(IATAAirShoppingRQ airShoppingRQ, String ptcCode, int i) Gets corresponding passenger ID from requestgets the passenger type facadeprotected de.hybris.platform.product.ProductServicegets product servicevoidhandle(FareSelectionData fareSelectionData, IATAAirShoppingRQ airShoppingRQ, IATAAirShoppingRS airShoppingRS) Uses data from the fareSelectionData and the air shopping request to populate the air shopping responseprotected voidpopulateJourneyOverview(ItineraryPricingInfoData itineraryPricingInfoData, JourneyOverviewType journeyOverviewType, Offer1Type offerType, PricedItineraryData pricedItineraryData) populates the journeyOverviewType fields in the offerGroupsprotected NDCCarrierOfferItemDatapopulateNDCOfferItemForCache(PricedItineraryData pricedItineraryData, ItineraryPricingInfoData itineraryPricingInfoData, PTCFareBreakdownData ptcFareBreakdownData, List<PassengerTypeData> passengerTypeDataList, IATAAirShoppingRQ airShoppingRQ) creates ndcOfferItem this item will then be cached in the systemprotected voidpopulateOfferItems(PricedItineraryData pricedItineraryData, ItineraryPricingInfoData itineraryPricingInfoData, Offer1Type offerType, IATAAirShoppingRQ airShoppingRQ) populates the offerItems in the offerprotected voidpopulatePrices(PTCFareBreakdownData ptcFareBreakdownData, OfferItemType offerItemType) populates the prices of the offerItemsprotected voidpopulateServices(ProductData productData, ItineraryPricingInfoData itineraryPricingInfoData, OfferItemType offerItemType, PTCFareBreakdownData ptcFareBreakdownData, String offerId, IATAAirShoppingRQ airShoppingRQ) populates the services in the offerItems depending on what the productType isvoidsetNdcOfferFacade(NDCOfferFacade ndcOfferFacade) sets ndc offer facadevoidsetNdcOfferItemIDCodeGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator ndcOfferItemIDCodeGenerator) sets ndc offer ItemId codeGeneratorvoidsetPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade) sets the passenger type facadevoidsetProductService(de.hybris.platform.product.ProductService productService) sets product service
-
Constructor Details
-
AirShoppingOffersGroupHandler
public AirShoppingOffersGroupHandler()
-
-
Method Details
-
handle
public void handle(FareSelectionData fareSelectionData, IATAAirShoppingRQ airShoppingRQ, IATAAirShoppingRS airShoppingRS) throws NDCException Description copied from interface:AirShoppingHandlerUses data from the fareSelectionData and the air shopping request to populate the air shopping response- Specified by:
handlein interfaceAirShoppingHandler- 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
gets ndc offer facade- Returns:
-
setNdcOfferFacade
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
gets the passenger type facade- Returns:
-
setPassengerTypeFacade
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-
-