Class OfferGroupOfferPricingInfoHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OfferGroupOfferPricingInfoHandler
- All Implemented Interfaces:
AncillarySearchHandler
Handler class to populate OfferPricingInfoData for each category of products available to offer as ancillaries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateOfferPricingInfos(boolean applyPromotion, List<ProductModel> productsForCategory, OfferGroupData offerGroupData) Creates the offerPricingInfos and set it on the offerGroupData for the given productsprotected List<ProductModel>getAvailableProducts(List<ProductModel> productsForCategory, OfferGroupData offerGroupData) Returns the list of available products based on the stock levelprotected de.hybris.platform.category.CategoryServiceprotected List<OfferGroupData>getFilteredOfferGroups(OfferResponseData offerResponseData) Returns the list of OfferGroups ofAddToCartCriteriaTypePER_BOOKING or PER_PAXprotected de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel,ProductData> protected de.hybris.platform.product.ProductServiceprotected TravelCartServiceprotected TravelCommerceStockServiceprotected TravelPromotionsFacadevoidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Handle method.voidsetCategoryService(de.hybris.platform.category.CategoryService categoryService) voidsetProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) voidsetProductService(de.hybris.platform.product.ProductService productService) voidsetTravelCartService(TravelCartService travelCartService) voidsetTravelCommerceStockService(TravelCommerceStockService travelCommerceStockService) voidsetTravelPromotionsFacade(TravelPromotionsFacade travelPromotionsFacade)
-
Constructor Details
-
OfferGroupOfferPricingInfoHandler
public OfferGroupOfferPricingInfoHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-
getFilteredOfferGroups
Returns the list of OfferGroups ofAddToCartCriteriaTypePER_BOOKING or PER_PAX- Parameters:
offerResponseData-- Returns:
-
createOfferPricingInfos
protected void createOfferPricingInfos(boolean applyPromotion, List<ProductModel> productsForCategory, OfferGroupData offerGroupData) Creates the offerPricingInfos and set it on the offerGroupData for the given products- Parameters:
applyPromotion-productsForCategory-offerGroupData-
-
getAvailableProducts
protected List<ProductModel> getAvailableProducts(List<ProductModel> productsForCategory, OfferGroupData offerGroupData) Returns the list of available products based on the stock level- Parameters:
productsForCategory-offerGroupData-- Returns:
- the list of available products
-
getProductService
protected de.hybris.platform.product.ProductService getProductService()- Returns:
- the commonI18NService
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) - Parameters:
productService- the productService to set
-
getCategoryService
protected de.hybris.platform.category.CategoryService getCategoryService()- Returns:
- the categoryService
-
setCategoryService
public void setCategoryService(de.hybris.platform.category.CategoryService categoryService) - Parameters:
categoryService- the categoryService to set
-
getTravelPromotionsFacade
- Returns:
- the travelPromotionsFacade
-
setTravelPromotionsFacade
- Parameters:
travelPromotionsFacade- the travelPromotionsFacade to set
-
getProductConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel,ProductData> getProductConverter()- Returns:
- the productConverter
-
setProductConverter
public void setProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) - Parameters:
productConverter- the productConverter to set
-
getTravelCartService
- Returns:
- the travelCartService
-
setTravelCartService
- Parameters:
travelCartService- the travelCartService to set
-
getTravelCommerceStockService
- Returns:
- the travelCommerceStockService
-
setTravelCommerceStockService
- Parameters:
travelCommerceStockService- the travelCommerceStockService to set
-