Class ReservationOfferBreakdownHandler
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractOfferBreakdownHandler
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationOfferBreakdownHandler
- All Implemented Interfaces:
ReservationHandler
public class ReservationOfferBreakdownHandler
extends AbstractOfferBreakdownHandler
implements ReservationHandler
This handler is responsible for creating an overview of ancillaries of type PER_BOOKING and PER_PAX from Abstract Order with an
interpretation of whether it is included in bundle or added manually by customer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<OfferBreakdownData>createOfferBreakdowns(AbstractOrderModel abstractOrderModel) 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.protected booleanChecks if the given abstractOrderEntry is an entry for a product of type PER_BOOKINGprotected booleanChecks if the given abstractOrderEntry is an entry for a product of type PER_PAXvoidsetNotAncillaryProductTypes(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
-
ReservationOfferBreakdownHandler
public ReservationOfferBreakdownHandler()
-
-
Method Details
-
handle
Description copied from interface:ReservationHandlerHandle method.- Specified by:
handlein interfaceReservationHandler- Parameters:
abstractOrderModel- the abstract order modelreservationData- the reservation data
-
createOfferBreakdowns
Creates a list of Offer Breakdowns for each ancillary product- Parameters:
abstractOrderModel- the abstract order model- 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
-
isPerBookingEntry
Checks if the given abstractOrderEntry is an entry for a product of type PER_BOOKING- Parameters:
entry- the entry- Returns:
- true if the abstractOrderEntry is PER_BOOKING, false otherwise
-
isPerPaxEntry
Checks if the given abstractOrderEntry is an entry for a product of type PER_PAX- Parameters:
entry- the entry- Returns:
- true if the abstractOrderEntry is PER_PAX, 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
-