java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.AbstractDefaultPropertyHandler
de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.PropertyDataPriceHandler
All Implemented Interfaces:
PropertyHandler

public class PropertyDataPriceHandler extends AbstractDefaultPropertyHandler implements PropertyHandler
Concrete implementation of the PropertyHandler interface. Handler is responsible to set price attributes on the PropertyData
  • Constructor Details

    • PropertyDataPriceHandler

      public PropertyDataPriceHandler()
  • Method Details

    • handle

      public void handle(Map<Integer,List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData)
      Description copied from interface: PropertyHandler
      Handle method.
      Specified by:
      handle in interface PropertyHandler
      Parameters:
      dayRatesForRoomStayCandidate - the day rates for room stay candidate
      accommodationSearchRequest - the accommodation search request
      propertyData - the property data
    • handlingAttributes

      protected void handlingAttributes(Map<Integer,List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, PropertyData propertyData)
      Populates the prices and discounts on RateRangeData object belonging to a property
      Specified by:
      handlingAttributes in class AbstractDefaultPropertyHandler
      Parameters:
      dayRatesForRoomStayCandidate - map of documents per room stay candidates
      propertyData - the dto to be populated
    • createPriceData

      protected PriceData createPriceData(BigDecimal dayPrice)
    • getPriceDataFactory

      @Deprecated protected de.hybris.platform.commercefacades.product.PriceDataFactory getPriceDataFactory()
      Deprecated.
      Deprecated since version 3.0.
      Returns:
    • setPriceDataFactory

      @Deprecated public void setPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory)
      Deprecated.
      Deprecated since version 3.0.
      Parameters:
      priceDataFactory -
    • getCommonI18NService

      protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
    • setCommonI18NService

      public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
    • getTravelCommercePriceFacade

      protected TravelCommercePriceFacade getTravelCommercePriceFacade()
      Returns:
      the travelCommercePriceFacade
    • setTravelCommercePriceFacade

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