Class AbstractReservationOfferPricingInfoHandler
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractReservationOfferPricingInfoHandler
- Direct Known Subclasses:
ReservationOfferPricingInfoHandler,ReservationOriginDestinationOfferPricingInfoHandler
Abstract handler responsible for instantiating a list of Offer Pricing Infos for given leg which will contain summary of
ancillaries selected by user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckBundleNo(Integer bundleNo, Integer bundleIndicator) Deprecated.Deprecated since version 2003.protected booleancheckBundleNo(Set<Integer> entryGroupNumbers, Integer bundleIndicator) Compares the entryGroup Numbers and the bundleIndicator values.protected BookingBreakdownDataCreates a new BookingBreakdown instanceprotected OfferPricingInfoDataCreates a new instance of OfferPricingInfo for a new ancillary productprotected de.hybris.platform.servicelayer.i18n.CommonI18NServiceDeprecated.Deprecated since version 3.0.protected List<ProductType>Gets not ancillary product types.protected OfferPricingInfoDatagetOfferPricingInfoFromList(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry) Gets requested Offer Pricing info from the listprotected de.hybris.platform.commercefacades.product.PriceDataFactoryDeprecated.Deprecated since version 3.0.protected de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel,ProductData> Gets product converter.protected Map<String,ProductType> Gets the product type instance map.protected TravelCommercePriceFacadeprotected TravellerBreakdownDatagetTravellerBreakdownForTraveller(OfferPricingInfoData offerPricingInfo, AbstractOrderEntryModel entry) Finds Traveller Breakdown for current traveller in the entryprotected booleanisAncillaryEntry(ReservationItemData reservationItem, AbstractOrderEntryModel entry) Checks if the given abstractOrderEntry is an ancillary entry.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 booleanisPerLegEntry(AbstractOrderEntryModel entry, int originDestinationRefNumber) Checks if the given abstractOrderEntry is an entry for a product of type PER_LEGprotected booleanisPerLegPerPaxEntry(AbstractOrderEntryModel entry, int originDestinationRefNumber) Checks if the given abstractOrderEntry is an entry for a product of type PER_LEG_PER_PAXprotected booleanChecks if the given abstractOrderEntry is an entry for a product of type PER_PAXvoidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Deprecated.Deprecated since version 3.0.voidsetNotAncillaryProductTypes(List<ProductType> notAncillaryProductTypes) Sets not ancillary product types.voidsetPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Deprecated.Deprecated since version 3.0.voidsetProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) Sets product converter.voidsetProductTypeInstanceMap(Map<String, ProductType> productTypeInstanceMap) Sets the product type instance map.voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade) protected voidupdateBookingBreakdown(BookingBreakdownData bookingBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue) Deprecated.Deprecated since version 3.0.protected voidupdateBookingBreakdown(BookingBreakdownData bookingBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue, String currencyIsocode) Updates given booking breakdown with new quantity, base price and total priceprotected voidupdateTravellerBreakdown(TravellerBreakdownData travellerBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue) Deprecated.Deprecated since version 3.0.protected voidupdateTravellerBreakdown(TravellerBreakdownData travellerBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue, String currencyIsocode) Updates given traveller breakdown with new quantity, base price and total price
-
Constructor Details
-
AbstractReservationOfferPricingInfoHandler
public AbstractReservationOfferPricingInfoHandler()
-
-
Method Details
-
isAncillaryEntry
protected boolean isAncillaryEntry(ReservationItemData reservationItem, AbstractOrderEntryModel entry) Checks if the given abstractOrderEntry is an ancillary entry.- Parameters:
reservationItem- the reservation itementry- the entry- Returns:
- true if the abstractOrderEntry is an ancillary entry, false otherwise
-
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
-
isPerLegPerPaxEntry
protected boolean isPerLegPerPaxEntry(AbstractOrderEntryModel entry, int originDestinationRefNumber) Checks if the given abstractOrderEntry is an entry for a product of type PER_LEG_PER_PAX- Parameters:
entry- the entryoriginDestinationRefNumber- the origin destination ref number- Returns:
- true if the abstractOrderEntry is PER_LEG_PER_PAX, false otherwise
-
isPerLegEntry
Checks if the given abstractOrderEntry is an entry for a product of type PER_LEG- Parameters:
entry- the entryoriginDestinationRefNumber- the origin destination ref number- Returns:
- true if the abstractOrderEntry is PER_LEG, 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
-
getOfferPricingInfoFromList
protected OfferPricingInfoData getOfferPricingInfoFromList(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry) Gets requested Offer Pricing info from the list- Parameters:
offerPricingInfos- - ancillary entries for given legentry- - current ancillary abstract order entry- Returns:
- offer pricing info matching the entry
-
checkBundleNo
@Deprecated(since="2003") protected boolean checkBundleNo(Integer bundleNo, Integer bundleIndicator) Deprecated.Deprecated since version 2003. UsecheckBundleNo(Set, Integer)Compares the bundleNo and the bundleIndicator values.- Parameters:
bundleNo- the bundleNo of the orderEntrybundleIndicator- the bundleIndicator of the offerPricingInfo- Returns:
- true if the bundleNo and the bundleIndicator are equals to 0 or if the bundleNo is greater than 0 and the bundleIndicator is equals to 1, false otherwise.
-
checkBundleNo
Compares the entryGroup Numbers and the bundleIndicator values.- Parameters:
entryGroupNumbers- the list of EntryGroup numbers that this order entry belongs to.bundleIndicator- the bundleIndicator of the offerPricingInfo- Returns:
- true if the entryGroupNumbers is empty and the bundleIndicator is equals to 0 or if the entryGroupNumbers is not empty and the bundleIndicator is equals to 1, false otherwise.
-
getTravellerBreakdownForTraveller
protected TravellerBreakdownData getTravellerBreakdownForTraveller(OfferPricingInfoData offerPricingInfo, AbstractOrderEntryModel entry) Finds Traveller Breakdown for current traveller in the entry- Parameters:
offerPricingInfo- - pricing info for product in the entryentry- - current abstract order entry- Returns:
- traveller breakdown for traveller from current entry
-
updateTravellerBreakdown
@Deprecated protected void updateTravellerBreakdown(TravellerBreakdownData travellerBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue) Deprecated.Deprecated since version 3.0. UseupdateTravellerBreakdown(TravellerBreakdownData, int, BigDecimal, BigDecimal, String)Updates given traveller breakdown with new quantity, base price and total price- Parameters:
travellerBreakdown- - current traveller breakdownquantity- - new quantitybasePriceValue- - new base pricetotalPriceValue- - new total price
-
updateBookingBreakdown
@Deprecated protected void updateBookingBreakdown(BookingBreakdownData bookingBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue) Deprecated.Deprecated since version 3.0. UseupdateBookingBreakdown(BookingBreakdownData, int, BigDecimal, BigDecimal, String)Updates given booking breakdown with new quantity, base price and total price- Parameters:
bookingBreakdown- - current booking breakdownquantity- - new quantitybasePriceValue- - new base pricetotalPriceValue- - new total price
-
updateTravellerBreakdown
protected void updateTravellerBreakdown(TravellerBreakdownData travellerBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue, String currencyIsocode) Updates given traveller breakdown with new quantity, base price and total price- Parameters:
travellerBreakdown- - current traveller breakdownquantity- - new quantitybasePriceValue- - new base pricetotalPriceValue- - new total pricecurrencyIsocode- - the currency isocode
-
updateBookingBreakdown
protected void updateBookingBreakdown(BookingBreakdownData bookingBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue, String currencyIsocode) Updates given booking breakdown with new quantity, base price and total price- Parameters:
bookingBreakdown- - current booking breakdownquantity- - new quantitybasePriceValue- - new base pricetotalPriceValue- - new total pricecurrencyIsocode- - the currency isocode
-
createNewOfferPricingInfoForBookingBreakdown
protected OfferPricingInfoData createNewOfferPricingInfoForBookingBreakdown(AbstractOrderEntryModel entry) Creates a new instance of OfferPricingInfo for a new ancillary product- Parameters:
entry- - new ancillary entry which needs to be translated into offer pricing info- Returns:
- new offer pricing info containing information about current entry product
-
createNewBookingBreakdown
Creates a new BookingBreakdown instance- Parameters:
entry- - entry which needs to be included in booking breakdown- Returns:
- new booking breakdown for traveller in the entry
-
getPriceDataFactory
@Deprecated protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory()Deprecated.Deprecated since version 3.0.Gets price data factory.- Returns:
- the priceDataFactory
-
setPriceDataFactory
@Deprecated public void setPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Deprecated.Deprecated since version 3.0.Sets price data factory.- Parameters:
priceDataFactory- the priceDataFactory to set
-
getCommonI18NService
Deprecated.Deprecated since version 3.0.Gets common I18N service.- Returns:
- the commonI18NService
-
setCommonI18NService
@Deprecated public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Deprecated.Deprecated since version 3.0.Sets common I18N service.- Parameters:
commonI18NService- the commonI18NService to set
-
getProductConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel,ProductData> getProductConverter()Gets product converter.- Returns:
- the productConverter
-
setProductConverter
public void setProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) Sets product converter.- Parameters:
productConverter- the productConverter to set
-
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
-
getTravelCommercePriceFacade
- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-
getProductTypeInstanceMap
Gets the product type instance map.- Returns:
- the productTypeInstanceMap
-
setProductTypeInstanceMap
Sets the product type instance map.- Parameters:
productTypeInstanceMap- the productTypeInstanceMap to set
-