Class AbstractReservationOfferPricingInfoHandler

java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractReservationOfferPricingInfoHandler
Direct Known Subclasses:
ReservationOfferPricingInfoHandler, ReservationOriginDestinationOfferPricingInfoHandler

public abstract class AbstractReservationOfferPricingInfoHandler extends Object
Abstract handler responsible for instantiating a list of Offer Pricing Infos for given leg which will contain summary of ancillaries selected by user
  • 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 item
      entry - the entry
      Returns:
      true if the abstractOrderEntry is an ancillary entry, false otherwise
    • isAncillaryEntry

      protected boolean isAncillaryEntry(AbstractOrderEntryModel entry)
      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 entry
      originDestinationRefNumber - the origin destination ref number
      Returns:
      true if the abstractOrderEntry is PER_LEG_PER_PAX, false otherwise
    • isPerLegEntry

      protected boolean isPerLegEntry(AbstractOrderEntryModel entry, int originDestinationRefNumber)
      Checks if the given abstractOrderEntry is an entry for a product of type PER_LEG
      Parameters:
      entry - the entry
      originDestinationRefNumber - the origin destination ref number
      Returns:
      true if the abstractOrderEntry is PER_LEG, false otherwise
    • isPerBookingEntry

      protected boolean isPerBookingEntry(AbstractOrderEntryModel entry)
      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

      protected boolean isPerPaxEntry(AbstractOrderEntryModel entry)
      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 leg
      entry - - 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. Use checkBundleNo(Set, Integer)
      Compares the bundleNo and the bundleIndicator values.
      Parameters:
      bundleNo - the bundleNo of the orderEntry
      bundleIndicator - 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

      protected boolean checkBundleNo(Set<Integer> entryGroupNumbers, Integer bundleIndicator)
      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 entry
      entry - - 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)
      Updates given traveller breakdown with new quantity, base price and total price
      Parameters:
      travellerBreakdown - - current traveller breakdown
      quantity - - new quantity
      basePriceValue - - new base price
      totalPriceValue - - new total price
    • updateBookingBreakdown

      @Deprecated protected void updateBookingBreakdown(BookingBreakdownData bookingBreakdown, int quantity, BigDecimal basePriceValue, BigDecimal totalPriceValue)
      Updates given booking breakdown with new quantity, base price and total price
      Parameters:
      bookingBreakdown - - current booking breakdown
      quantity - - new quantity
      basePriceValue - - new base price
      totalPriceValue - - 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 breakdown
      quantity - - new quantity
      basePriceValue - - new base price
      totalPriceValue - - new total price
      currencyIsocode - - 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 breakdown
      quantity - - new quantity
      basePriceValue - - new base price
      totalPriceValue - - new total price
      currencyIsocode - - 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

      protected BookingBreakdownData createNewBookingBreakdown(AbstractOrderEntryModel entry)
      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 protected de.hybris.platform.servicelayer.i18n.CommonI18NService 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

      protected List<ProductType> getNotAncillaryProductTypes()
      Gets not ancillary product types.
      Returns:
      the not ancillary product types
    • setNotAncillaryProductTypes

      public void setNotAncillaryProductTypes(List<ProductType> notAncillaryProductTypes)
      Sets not ancillary product types.
      Parameters:
      notAncillaryProductTypes - the not ancillary product types
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

      public void setTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade)
      Parameters:
      travelCommercePriceFacade - the travelCommercePriceFacade to set
    • getProductTypeInstanceMap

      protected Map<String,ProductType> getProductTypeInstanceMap()
      Gets the product type instance map.
      Returns:
      the productTypeInstanceMap
    • setProductTypeInstanceMap

      public void setProductTypeInstanceMap(Map<String,ProductType> productTypeInstanceMap)
      Sets the product type instance map.
      Parameters:
      productTypeInstanceMap - the productTypeInstanceMap to set