Class ReservationPricingInfoOfferBreakdownHandler
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractOfferBreakdownHandler
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationPricingInfoOfferBreakdownHandler
- All Implemented Interfaces:
ReservationHandler
public class ReservationPricingInfoOfferBreakdownHandler
extends AbstractOfferBreakdownHandler
implements ReservationHandler
This handler is responsible for creating an overview of ancillaries from Abstract Order with an interpretation of whether it is
included ini bundle or added manually by customer. It populates the OfferBreakdowns of the ReservationPricingInfo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OfferBreakdownData>createOfferBreakdowns(AbstractOrderModel abstractOrderModel, int originDestinationRefNumber) Creates a list of Offer Breakdowns for each ancillary productprotected List<ProductType>Gets not ancillary product types.protected Map<String,ProductType> Gets the product type instance map.voidhandle(AbstractOrderModel abstractOrderModel, ReservationData reservationData) Handle method.protected booleanChecks if the given abstractOrderEntry is an ancillary entry.voidsetNotAncillaryProductTypes(List<ProductType> notAncillaryProductTypes) Sets not ancillary product types.voidsetProductTypeInstanceMap(Map<String, ProductType> productTypeInstanceMap) Sets the product type instance map.Methods inherited from class de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractOfferBreakdownHandler
createOfferBreakdown, getCommonI18NService, getOfferBreakdownFromList, getPriceDataFactory, getProductConverter, getTravelCommercePriceFacade, retreiveOfferBreakdownsFromEntries, setCommonI18NService, setPriceDataFactory, setProductConverter, setTravelCommercePriceFacade, updateOfferBreakdown
-
Constructor Details
-
ReservationPricingInfoOfferBreakdownHandler
public ReservationPricingInfoOfferBreakdownHandler()
-
-
Method Details
-
handle
Description copied from interface:ReservationHandlerHandle method.- Specified by:
handlein interfaceReservationHandler- Parameters:
abstractOrderModel- the abstract order modelreservationData- the reservation data
-
createOfferBreakdowns
protected List<OfferBreakdownData> createOfferBreakdowns(AbstractOrderModel abstractOrderModel, int originDestinationRefNumber) Creates a list of Offer Breakdowns for each ancillary product- Parameters:
abstractOrderModel- the abstract order modeloriginDestinationRefNumber- the origin destination ref number- Returns:
- list of offer breakdowns
-
isAncillaryEntry
Checks if the given abstractOrderEntry is an ancillary entry.- Parameters:
entry- the entry- Returns:
- true if the abstractOrderEntry is an ancillary entry, false otherwise
-
getNotAncillaryProductTypes
Gets not ancillary product types.- Returns:
- the not ancillary product types
-
setNotAncillaryProductTypes
Sets not ancillary product types.- Parameters:
notAncillaryProductTypes- the not ancillary product types
-
getProductTypeInstanceMap
Gets the product type instance map.- Returns:
- the productTypeInstanceMap
-
setProductTypeInstanceMap
Sets the product type instance map.- Parameters:
productTypeInstanceMap- the productTypeInstanceMap to set
-