Class OfferGroupOfferPricingInfoHandler

java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OfferGroupOfferPricingInfoHandler
All Implemented Interfaces:
AncillarySearchHandler

public class OfferGroupOfferPricingInfoHandler extends Object implements AncillarySearchHandler
Handler class to populate OfferPricingInfoData for each category of products available to offer as ancillaries.
  • Constructor Details

    • OfferGroupOfferPricingInfoHandler

      public OfferGroupOfferPricingInfoHandler()
  • Method Details

    • handle

      public void handle(OfferRequestData offerRequestData, OfferResponseData offerResponseData)
      Description copied from interface: AncillarySearchHandler
      Handle method.
      Specified by:
      handle in interface AncillarySearchHandler
      Parameters:
      offerRequestData - the offer request data
      offerResponseData - the offer response data
    • getFilteredOfferGroups

      protected List<OfferGroupData> getFilteredOfferGroups(OfferResponseData offerResponseData)
      Returns the list of OfferGroups of AddToCartCriteriaType PER_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

      protected TravelPromotionsFacade getTravelPromotionsFacade()
      Returns:
      the travelPromotionsFacade
    • setTravelPromotionsFacade

      public void setTravelPromotionsFacade(TravelPromotionsFacade travelPromotionsFacade)
      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

      protected TravelCartService getTravelCartService()
      Returns:
      the travelCartService
    • setTravelCartService

      public void setTravelCartService(TravelCartService travelCartService)
      Parameters:
      travelCartService - the travelCartService to set
    • getTravelCommerceStockService

      protected TravelCommerceStockService getTravelCommerceStockService()
      Returns:
      the travelCommerceStockService
    • setTravelCommerceStockService

      public void setTravelCommerceStockService(TravelCommerceStockService travelCommerceStockService)
      Parameters:
      travelCommerceStockService - the travelCommerceStockService to set