Class AbstractOfferBreakdownHandler
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractOfferBreakdownHandler
- Direct Known Subclasses:
ReservationOfferBreakdownHandler,ReservationPricingInfoOfferBreakdownHandler
Abstract handler responsible for instantiating the offerBreakdowns of the reservationData, that will contain summary of
ancillaries selected by user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OfferBreakdownDataCreates new instance of Offer Breakdown for given entryprotected de.hybris.platform.servicelayer.i18n.CommonI18NServiceDeprecated.Deprecated since version 3.0.protected OfferBreakdownDatagetOfferBreakdownFromList(List<OfferBreakdownData> offerBreakdowns, String productCode, Boolean included) Finds an Offer Breakdown in a list which has the same product and included indicator as entryprotected de.hybris.platform.commercefacades.product.PriceDataFactoryDeprecated.Deprecated since version 3.0.protected de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel,ProductData> Gets product converter.protected TravelCommercePriceFacadeprotected voidretreiveOfferBreakdownsFromEntries(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 notvoidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Deprecated.Deprecated since version 3.0.voidsetPriceDataFactory(de.hybris.platform.commercefacades.product.PriceDataFactory priceDataFactory) Deprecated.Deprecated since version 3.0.voidsetProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) Sets product converter.voidsetTravelCommercePriceFacade(TravelCommercePriceFacade travelCommercePriceFacade) protected voidupdateOfferBreakdown(OfferBreakdownData offerBreakdown, AbstractOrderEntryModel entry) Updates quantity and price of existing offer breakdown with details from given entry
-
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 indicatorofferBreakdowns- - list of unique offer breakdowns for each productincluded- - indicates whether the extra is included in bundle or not
-
createOfferBreakdown
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 breakdownsproductCode- the product codeincluded- 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 breakdownentry- 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.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
- Returns:
- the travelCommercePriceFacade
-
setTravelCommercePriceFacade
- Parameters:
travelCommercePriceFacade- the travelCommercePriceFacade to set
-