Class DefaultNDCMerchandisingResponseAncillaryDataHandler
java.lang.Object
de.hybris.platform.prosfacades.ancillary.search.handlers.impl.AbstractMerchandisingResponseHandler
de.hybris.platform.prosfacades.ancillary.search.handlers.impl.DefaultMerchandisingResponseAncillaryDataHandler
de.hybris.platform.ndc182prosfacades.facades.servicelist.handlers.impl.DefaultNDCMerchandisingResponseAncillaryDataHandler
- All Implemented Interfaces:
NDCMerchandisingResponseHandler,MerchandisingResponseHandler
public class DefaultNDCMerchandisingResponseAncillaryDataHandler
extends DefaultMerchandisingResponseAncillaryDataHandler
implements NDCMerchandisingResponseHandler
The NDC shopping implementation of
MerchandisingResponseHandler interface. This class populates the ancillary data from
the merchandising response message.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AncillaryData>createAncillaries(MerchandisingResponse merchandisingResponse, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Creates the list of ancillaries from the merchandising responseprotected AncillaryPricingInfoDatacreatePriceInfo(PriceInfo priceInfo, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds) Create AncillaryPricingInfoData from the given parametersprotected List<AncillaryPricingInfoData>createPricingInfos(OptionalService optionalService, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds) Create Listfrom the given parameters voidhandle(AncillaryResponseData ancillaryResponseData, List<String> transportOfferingCodes, MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Populates the ancillary data from the merchandising response message.protected voidpopulateAncillaryDataList(OptionalService optionalService, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds, List<AncillaryData> ancillaryDataList) Populate ancillaryDataList using the given parametersMethods inherited from class de.hybris.platform.prosfacades.ancillary.search.handlers.impl.DefaultMerchandisingResponseAncillaryDataHandler
createAncillaries, createPricingInfos, getProsTravelAncillaryService, getShoppingTravelAncillaryService, handle, populateAncillaryDataList, setProsTravelAncillaryService, setShoppingTravelAncillaryServiceMethods inherited from class de.hybris.platform.prosfacades.ancillary.search.handlers.impl.AbstractMerchandisingResponseHandler
createBasePrice, createCategories, createFlightCodes, createOriginDestination, createOriginDestinations, createPassengers, createPriceInfo, createTaxes, getCategoryConverter, getProsTransportOfferingFacade, getShoppingTravelStockService, getTransportOfferingService, getTravelCommercePriceFacade, isProductAvailable, populatePassenger, resolvePassenger, setCategoryConverter, setProsTransportOfferingFacade, setShoppingTravelStockService, setTransportOfferingService, setTravelCommercePriceFacadeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.prosfacades.ancillary.search.handlers.MerchandisingResponseHandler
handle
-
Constructor Details
-
DefaultNDCMerchandisingResponseAncillaryDataHandler
public DefaultNDCMerchandisingResponseAncillaryDataHandler()
-
-
Method Details
-
handle
public void handle(AncillaryResponseData ancillaryResponseData, List<String> transportOfferingCodes, MerchandisingResponse merchandisingResponse, Map<Integer, String> passengerIdTypeMap, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Populates the ancillary data from the merchandising response message.- Specified by:
handlein interfaceNDCMerchandisingResponseHandler- Parameters:
ancillaryResponseData- the ancillaryResponseDatatransportOfferingCodes- the transportOfferingCodesmerchandisingResponse- the merchandisingResponsepassengerIdTypeMap- the passengerIdTypeMapflightIdTransportOfferingMap- the flightIdTransportOfferingMapshoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData
-
createAncillaries
protected List<AncillaryData> createAncillaries(MerchandisingResponse merchandisingResponse, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, ShoppingMerchandisingHandlerData shoppingMerchandisingHandlerData) Creates the list of ancillaries from the merchandising response- Parameters:
merchandisingResponse- the merchandising responseflightIdTransportOfferingMap- the flightIdTransportOfferingMapshoppingMerchandisingHandlerData- the shoppingMerchandisingHandlerData- Returns:
- the list of ancillary data
-
createPricingInfos
protected List<AncillaryPricingInfoData> createPricingInfos(OptionalService optionalService, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds) Create Listfrom the given parameters - Parameters:
optionalService- the optionalServiceflightIdTransportOfferingMap- the flightIdTransportOfferingMapflightIds- the flightIds- Returns:
- List
-
createPriceInfo
protected AncillaryPricingInfoData createPriceInfo(PriceInfo priceInfo, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds) Create AncillaryPricingInfoData from the given parameters- Parameters:
priceInfo- the priceInfoflightIdTransportOfferingMap- the flightIdTransportOfferingMapflightIds- the flightIds- Returns:
- AncillaryPricingInfoData
-
populateAncillaryDataList
protected void populateAncillaryDataList(OptionalService optionalService, Map<Integer, TransportOfferingData> flightIdTransportOfferingMap, Set<Integer> flightIds, List<AncillaryData> ancillaryDataList) Populate ancillaryDataList using the given parameters- Parameters:
optionalService- the optionalServiceflightIdTransportOfferingMap- the flightIdTransportOfferingMapflightIds- the flightIdsancillaryDataList- the ancillaryDataList
-