Class AbstractOfferRestrictionHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractOfferRestrictionHandler
- Direct Known Subclasses:
OfferGroupOfferRestrictionHandler,OfferRestrictionHandler
Abstract handler responsible for instantiating the travelRestriction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.product.ProductServiceprotected de.hybris.platform.servicelayer.dto.converter.Converter<TravelRestrictionModel,TravelRestrictionData> protected TravelRestrictionFacadeprotected TravelRestrictionDatasetDefaultTravelRestrictionValues(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.voidsetProductService(de.hybris.platform.product.ProductService productService) voidsetTravelRestriction(OfferPricingInfoData offerPricingInfoData) This method sets the travelRestrictionData to the offerPricingInfoData for the corresponding productDatavoidsetTravelRestrictionConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravelRestrictionModel, TravelRestrictionData> travelRestrictionConverter) voidsetTravelRestrictionFacade(TravelRestrictionFacade travelRestrictionFacade)
-
Constructor Details
-
AbstractOfferRestrictionHandler
public AbstractOfferRestrictionHandler()
-
-
Method Details
-
setTravelRestriction
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
- Returns:
- the travelRestrictionFacade
-
setTravelRestrictionFacade
- Parameters:
travelRestrictionFacade- the travelRestrictionFacade to set
-