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 Details

    • ReservationOfferBreakdownHandler

      public ReservationOfferBreakdownHandler()
  • Method Details

    • handle

      public void handle(AbstractOrderModel abstractOrderModel, ReservationData reservationData)
      Description copied from interface: ReservationHandler
      Handle method.
      Specified by:
      handle in interface ReservationHandler
      Parameters:
      abstractOrderModel - the abstract order model
      reservationData - the reservation data
    • createOfferBreakdowns

      protected List<OfferBreakdownData> createOfferBreakdowns(AbstractOrderModel abstractOrderModel)
      Creates a list of Offer Breakdowns for each ancillary product
      Parameters:
      abstractOrderModel - the abstract order model
      Returns:
      list of offer breakdowns
    • 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
    • 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
    • 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
    • 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