Class AirShoppingOffersGroupHandler
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.airshopping.handlers.impl.AirShoppingOffersGroupHandler
- All Implemented Interfaces:
AirshoppingHandler
Populates
OffersGroupType in the IATAAirShoppingRS.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NDCOfferItemFareDatacreateFareData(FareReferenceData fareReferenceData, FareData fare) Create fare data list.protected FareDetailTypecreateFareDetails(FareData fare, PriceType offerItemPrice, BookingOptionData bookingOptionData, FareReferenceData fareReferenceData) Create fare details.protected JourneyOverviewTypecreateJourneyOverview(BookingOptionData bookingOptionData, List<FlightGroupData> flightGroups) Create journey overview.protected List<NDCPassengerData>createNDCPassengers(FareReferenceData fareReferenceData, FlightSearchResponseData flightSearchResponseData) Create ndc passengers list.protected PriceTypecreateOfferItemPrice(BookingOptionData bookingOptionData, FlightSearchResponseData flightSearchResponseData, FareReferenceData fareReferenceData) Create offer item price.protected List<OfferItemType>createOfferItems(BookingOptionData bookingOptionData, FlightSearchResponseData flightSearchResponseData, List<NDCCarrierOfferItemData> ndcCarrierOfferItems) Create offer items and store the offer in cache.protected NDCCarrierOfferItemDatacreateOfferItemsForCache(FareReferenceData fareReferenceData, String offerItemId, FlightSearchResponseData flightSearchResponseData, BookingOptionData bookingOptionData) Create offer items for cache ndc carrier offer item data.protected List<NDCOfferItemRBDData>createRBDData(FareReferenceData fareReferenceData, BookingOptionData bookingOptionData) Create rbd data list.protected PriceTypecreateTotalPrice(BookingOptionData bookingOptionData) Create total price.protected NDCOfferFacadeGets ndc offer facade.protected de.hybris.platform.servicelayer.keygenerator.KeyGeneratorGets ndc offer id generator.voidhandle(FlightSearchResponseData flightSearchResponseData, IATAAirShoppingRS airShoppingRS) PopulateIATAAirShoppingRSfromFlightSearchResponseDataprotected voidpopulateServices(FareReferenceData fareReferenceData, OfferItemType offerItemType, String fareBundleProductRefCode, List<String> flightRefCodes) Populate services.voidsetNdcOfferFacade(NDCOfferFacade ndcOfferFacade) Sets ndc offer facade.voidsetNdcOfferIDGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator ndcOfferIDGenerator) Sets ndc offer id generator.
-
Constructor Details
-
AirShoppingOffersGroupHandler
public AirShoppingOffersGroupHandler()
-
-
Method Details
-
handle
public void handle(FlightSearchResponseData flightSearchResponseData, IATAAirShoppingRS airShoppingRS) throws NDCCacheException, NDCException Description copied from interface:AirshoppingHandlerPopulateIATAAirShoppingRSfromFlightSearchResponseData- Specified by:
handlein interfaceAirshoppingHandler- Parameters:
flightSearchResponseData- the flight search response dataairShoppingRS- the air shopping rs- Throws:
NDCCacheExceptionNDCException
-
createRBDData
protected List<NDCOfferItemRBDData> createRBDData(FareReferenceData fareReferenceData, BookingOptionData bookingOptionData) Create rbd data list.- Parameters:
fareReferenceData- the fare reference databookingOptionData- 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 itemfare- the fare- Returns:
- the list
- Throws:
NDCException
-
createNDCPassengers
protected List<NDCPassengerData> createNDCPassengers(FareReferenceData fareReferenceData, FlightSearchResponseData flightSearchResponseData) Create ndc passengers list.- Parameters:
fareReferenceData- the offer itemflightSearchResponseData- the passengers- Returns:
- the list
-
createTotalPrice
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 dataflightSearchResponseData- the flight search response datandcCarrierOfferItems-- Returns:
- the list
- Throws:
NDCCacheException- the ndc cache exceptionNDCException
-
populateServices
protected void populateServices(FareReferenceData fareReferenceData, OfferItemType offerItemType, String fareBundleProductRefCode, List<String> flightRefCodes) Populate services.- Parameters:
fareReferenceData- the fare reference dataofferItemType- the offer item typefareBundleProductRefCode- the fare bundle product ref codeflightRefCodes- 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 dataofferItemId- the offer item idflightSearchResponseData- the flight search response databookingOptionData- 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 fareofferItemPrice- the offer item pricebookingOptionData- the booking option datafareReferenceData- 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 dataflightSearchResponseData- the flight search response datafareReferenceData- 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 dataflightGroups- 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
Gets ndc offer facade.- Returns:
- the ndc offer facade
-
setNdcOfferFacade
Sets ndc offer facade.- Parameters:
ndcOfferFacade- the ndc offer facade
-