Class PropertyDataPriceHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PriceDatacreatePriceData(BigDecimal dayPrice) protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceprotected de.hybris.platform.commercefacades.product.PriceDataFactoryDeprecated.Deprecated since version 3.0.protected TravelCommercePriceFacadevoidhandle(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData) Handle method.protected voidhandlingAttributes(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, PropertyData propertyData) Populates the prices and discounts onRateRangeDataobject belonging to a propertyvoidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) voidsetPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Deprecated.Deprecated since version 3.0.voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade) Methods inherited from class de.hybris.platform.travelfacades.facades.accommodation.search.handlers.impl.AbstractDefaultPropertyHandler
getRequestedDuration, validateDayRateAgainstDates, validateDayRateAgainstRoomStayCandidates, validateDayRatesAgainstRequest
-
Constructor Details
-
PropertyDataPriceHandler
public PropertyDataPriceHandler()
-
-
Method Details
-
handle
public void handle(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, AccommodationSearchRequestData accommodationSearchRequest, PropertyData propertyData) Description copied from interface:PropertyHandlerHandle method.- Specified by:
handlein interfacePropertyHandler- Parameters:
dayRatesForRoomStayCandidate- the day rates for room stay candidateaccommodationSearchRequest- the accommodation search requestpropertyData- the property data
-
handlingAttributes
protected void handlingAttributes(Map<Integer, List<AccommodationOfferingDayRateData>> dayRatesForRoomStayCandidate, PropertyData propertyData) Populates the prices and discounts onRateRangeDataobject belonging to a property- Specified by:
handlingAttributesin classAbstractDefaultPropertyHandler- Parameters:
dayRatesForRoomStayCandidate- map of documents per room stay candidatespropertyData- the dto to be populated
-
createPriceData
-
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
- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-