Class TravellerOfferGroupBreakdownHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractBreakdownHandler
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.TravellerOfferGroupBreakdownHandler
- All Implemented Interfaces:
AncillarySearchHandler
public class TravellerOfferGroupBreakdownHandler
extends AbstractBreakdownHandler
implements AncillarySearchHandler
Handler class to populate TravellerBreakdownData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OfferPricingInfoData>getFilteredOfferPricingInfo(List<OfferPricingInfoData> offerPricingInfos) Filters the offerGroups by the PER_PAXAddToCartCriteriaTypeprotected TravellerDatagetMergedTravellerData(TravellerData travellerData, OfferRequestData offerRequestData) This method will return a TravellerData where the TravellerStatusInfo is the result of the merge of the setTravellerStatusInfo for each leg.protected List<TravellerBreakdownData>getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, String offerGroupCode) Creates and returns the list of travellerBreakdownData for the given productCodeprotected List<TravellerData>getTravellerData(OfferRequestData offerRequestData) Returns the list of travellerDataprotected intgetTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, String offerGroupCode, String productCode) Returns the quantity for the given travellerData of the given productCodevoidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Handle method.Methods inherited from class de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractBreakdownHandler
createPriceData, getPassengerFareData, getPriceDataFactory, getPriceInformation, getPriceInformationFromTransportOfferingOrSector, getProductService, getTravelCommercePriceFacade, getTravelCommercePriceService, setPriceDataFactory, setProductService, setTravelCommercePriceFacade, setTravelCommercePriceService
-
Constructor Details
-
TravellerOfferGroupBreakdownHandler
public TravellerOfferGroupBreakdownHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-
getFilteredOfferPricingInfo
protected List<OfferPricingInfoData> getFilteredOfferPricingInfo(List<OfferPricingInfoData> offerPricingInfos) Filters the offerGroups by the PER_PAXAddToCartCriteriaType- Parameters:
offerPricingInfos-- Returns:
-
getTravellerBreakdownData
protected List<TravellerBreakdownData> getTravellerBreakdownData(String productCode, OfferRequestData offerRequestData, String offerGroupCode) Creates and returns the list of travellerBreakdownData for the given productCode- Parameters:
productCode-offerRequestData-offerGroupCode-- Returns:
-
getMergedTravellerData
protected TravellerData getMergedTravellerData(TravellerData travellerData, OfferRequestData offerRequestData) This method will return a TravellerData where the TravellerStatusInfo is the result of the merge of the setTravellerStatusInfo for each leg.- Parameters:
travellerData-offerRequestData-- Returns:
- the TravellerData where the TravellerStatusInfo is the result of the merge of the setTravellerStatusInfo for each leg
-
getTravellerData
Returns the list of travellerData- Parameters:
offerRequestData-- Returns:
-
getTravellerQuantity
protected int getTravellerQuantity(OfferRequestData offerRequestData, TravellerData travellerData, String offerGroupCode, String productCode) Returns the quantity for the given travellerData of the given productCode- Parameters:
offerRequestData-travellerData-offerGroupCode-productCode-- Returns:
-