Class AbstractOfferBreakdownHandler

java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractOfferBreakdownHandler
Direct Known Subclasses:
ReservationOfferBreakdownHandler, ReservationPricingInfoOfferBreakdownHandler

public class AbstractOfferBreakdownHandler extends Object
Abstract handler responsible for instantiating the offerBreakdowns of the reservationData, that will contain summary of ancillaries selected by user
  • Constructor Details

    • AbstractOfferBreakdownHandler

      public AbstractOfferBreakdownHandler()
  • Method Details

    • retreiveOfferBreakdownsFromEntries

      protected void retreiveOfferBreakdownsFromEntries(List<AbstractOrderEntryModel> entries, List<OfferBreakdownData> offerBreakdowns, Boolean included)
      Creates unique offer breakdowns for each product based on whether it is included in the bundle or not
      Parameters:
      entries - - abstract order entries which are included/excluded from the bundle based on indicator
      offerBreakdowns - - list of unique offer breakdowns for each product
      included - - indicates whether the extra is included in bundle or not
    • createOfferBreakdown

      protected OfferBreakdownData createOfferBreakdown(AbstractOrderEntryModel entry)
      Creates new instance of Offer Breakdown for given entry
      Parameters:
      entry - the entry
      Returns:
      new offer breakdown
    • getOfferBreakdownFromList

      protected OfferBreakdownData getOfferBreakdownFromList(List<OfferBreakdownData> offerBreakdowns, String productCode, Boolean included)
      Finds an Offer Breakdown in a list which has the same product and included indicator as entry
      Parameters:
      offerBreakdowns - the offer breakdowns
      productCode - the product code
      included - the included
      Returns:
      matching Offer Breakdown
    • updateOfferBreakdown

      protected void updateOfferBreakdown(OfferBreakdownData offerBreakdown, AbstractOrderEntryModel entry)
      Updates quantity and price of existing offer breakdown with details from given entry
      Parameters:
      offerBreakdown - the offer breakdown
      entry - the entry
    • 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
    • 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 i 18 n service.
      Returns:
      the commonI18NService
    • setCommonI18NService

      @Deprecated public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      Deprecated.
      Deprecated since version 3.0.
      Sets common i 18 n service.
      Parameters:
      commonI18NService - the commonI18NService to set
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

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