Class AbstractOfferRestrictionHandler

java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractOfferRestrictionHandler
Direct Known Subclasses:
OfferGroupOfferRestrictionHandler, OfferRestrictionHandler

public abstract class AbstractOfferRestrictionHandler extends Object
Abstract handler responsible for instantiating the travelRestriction
  • Constructor Details

    • AbstractOfferRestrictionHandler

      public AbstractOfferRestrictionHandler()
  • Method Details

    • setTravelRestriction

      public void setTravelRestriction(OfferPricingInfoData offerPricingInfoData)
      This method sets the travelRestrictionData to the offerPricingInfoData for the corresponding productData
      Parameters:
      offerPricingInfoData - as the OfferPricingInfoData with the productData required to retrieve and then set the TravelRestriction
    • setDefaultTravelRestrictionValues

      protected TravelRestrictionData setDefaultTravelRestrictionValues(TravelRestrictionData travelRestrictionData)
      Method to get the travelRestrictionData with the default values: effectiveDate = empty, expireDate = empty, travellerMinOfferQty = 0, travellerMaxOfferQty = -1, tripMinOfferQty = 0, tripMaxOfferQty = -1, addToCartCriteria = PER_LEG_PER_PAX. The constant -1 is the value to represent no restriction on number
      Parameters:
      travelRestrictionData - the travelRestrictionData to populate with the default values
      Returns:
      the travelRestrictionData with the default values
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
      Returns:
      the productService
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      Parameters:
      productService - the productService to set
    • getTravelRestrictionConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<TravelRestrictionModel,TravelRestrictionData> getTravelRestrictionConverter()
      Returns:
      the travelRestrictionConverter
    • setTravelRestrictionConverter

      public void setTravelRestrictionConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravelRestrictionModel,TravelRestrictionData> travelRestrictionConverter)
      Parameters:
      travelRestrictionConverter - the travelRestrictionConverter to set
    • getTravelRestrictionFacade

      protected TravelRestrictionFacade getTravelRestrictionFacade()
      Returns:
      the travelRestrictionFacade
    • setTravelRestrictionFacade

      public void setTravelRestrictionFacade(TravelRestrictionFacade travelRestrictionFacade)
      Parameters:
      travelRestrictionFacade - the travelRestrictionFacade to set