Class ShoppingSelectedFareBundleHandler
java.lang.Object
de.hybris.platform.shoppingfacades.fare.search.handlers.impl.ShoppingSelectedFareBundleHandler
- All Implemented Interfaces:
ShoppingFareSearchHandler
The type Shopping selected fare bundle handler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.order.CartServiceGets cart service.getTransportOfferingCodes(List<TransportOfferingData> transportOfferings) Returns a list of Strings representing the transportOffering codes from the given list ofTransportOfferingData.Gets transport reservation summary pipeline manager.voidhandle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Handle methodprotected booleanisSamePricedItinerary(ItineraryData itinerary, ItineraryData reservationItinerary) Checks if the two itinerary given as input parameters are the same one.protected voidpopulateSelectedBundles(FareSelectionData fareSelectionData, ReservationData reservationData) Populates the selected attribute of the ItineraryPricingInfo for the selected bundleTypevoidsetCartService(de.hybris.platform.order.CartService cartService) Sets cart service.voidsetTransportReservationSummaryPipelineManager(ReservationPipelineManager transportReservationSummaryPipelineManager) Sets transport reservation summary pipeline manager.
-
Constructor Details
-
ShoppingSelectedFareBundleHandler
public ShoppingSelectedFareBundleHandler()
-
-
Method Details
-
handle
public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Description copied from interface:ShoppingFareSearchHandlerHandle method- Specified by:
handlein interfaceShoppingFareSearchHandler- Parameters:
searchResponseMessage- the search response messagefareShopMessage- the fare shop messagefareSearchRequestData- the fare search request datafareSelectionData- the fare selection data
-
populateSelectedBundles
protected void populateSelectedBundles(FareSelectionData fareSelectionData, ReservationData reservationData) Populates the selected attribute of the ItineraryPricingInfo for the selected bundleType- Parameters:
fareSelectionData- as the fare selection datareservationData- as the reservation data
-
isSamePricedItinerary
protected boolean isSamePricedItinerary(ItineraryData itinerary, ItineraryData reservationItinerary) Checks if the two itinerary given as input parameters are the same one. First it checks if the size of the list ofOriginDestinationOptionData* is the same; if it is the same, it then checks if the list ofTransportOfferingDatacodes is the same.- Parameters:
itinerary- as the itinerary of the fareSelectionDatareservationItinerary- as the itinerary of the reservationData- Returns:
- true if the two itineraries are the same, false otherwise
-
getTransportOfferingCodes
Returns a list of Strings representing the transportOffering codes from the given list ofTransportOfferingData.- Parameters:
transportOfferings- as the list of transport offerings- Returns:
- the list of the transport offering codes
-
getCartService
public de.hybris.platform.order.CartService getCartService()Gets cart service.- Returns:
- the cart service
-
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) Sets cart service.- Parameters:
cartService- the cart service
-
getTransportReservationSummaryPipelineManager
Gets transport reservation summary pipeline manager.- Returns:
- the transport reservation summary pipeline manager
-
setTransportReservationSummaryPipelineManager
public void setTransportReservationSummaryPipelineManager(ReservationPipelineManager transportReservationSummaryPipelineManager) Sets transport reservation summary pipeline manager.- Parameters:
transportReservationSummaryPipelineManager- the transport reservation summary pipeline manager
-