Class PROSOfferRestrictionHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractOfferRestrictionHandler
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OfferRestrictionHandler
de.hybris.platform.prosfacades.ancillary.search.handlers.impl.PROSOfferRestrictionHandler
- All Implemented Interfaces:
AncillarySearchHandler
The type Pros offer restriction handler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PROSSearchResponseServiceGets pros search response service.protected SearchResponseWrapperGets search response wrapper.protected TravelCartServiceGets travel cart service.voidhandle(OfferRequestData offerRequestData, OfferResponseData offerResponseData) Handle method.protected voidsetPROSBaggageTravelRestrictions(OfferPricingInfoData offerPricingInfoData, ProductModel product, Map<String, Integer> productToMaxQuantityMap, Map<String, Integer> productToMinQuantityMap) Sets pros travel restrictions.voidsetProsSearchResponseService(PROSSearchResponseService prosSearchResponseService) Sets pros search response service.protected voidsetPROSTravelRestrictions(OfferResponseData offerResponseData, SearchResponseWrapper searchResponseWrapper) Sets pros travel restrictions.voidsetTravelCartService(TravelCartService travelCartService) Sets travel cart service.Methods inherited from class de.hybris.platform.travelfacades.ancillary.search.handlers.impl.AbstractOfferRestrictionHandler
getProductService, getTravelRestrictionConverter, getTravelRestrictionFacade, setDefaultTravelRestrictionValues, setProductService, setTravelRestriction, setTravelRestrictionConverter, setTravelRestrictionFacade
-
Constructor Details
-
PROSOfferRestrictionHandler
public PROSOfferRestrictionHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchHandler- Overrides:
handlein classOfferRestrictionHandler- Parameters:
offerRequestData- the offer request dataofferResponseData- the offer response data
-
getSearchResponseWrapper
Gets search response wrapper.- Returns:
- the search response wrapper
-
setPROSTravelRestrictions
protected void setPROSTravelRestrictions(OfferResponseData offerResponseData, SearchResponseWrapper searchResponseWrapper) Sets pros travel restrictions. Iterates on theChargeand for each different type calculates the minimum and maximum number of occurrences of that specificShoppingBaggageProductModelin theOfferPricingInfoData.- Parameters:
offerResponseData- the offer response datasearchResponseWrapper- the search response wrapper
-
setPROSBaggageTravelRestrictions
protected void setPROSBaggageTravelRestrictions(OfferPricingInfoData offerPricingInfoData, ProductModel product, Map<String, Integer> productToMaxQuantityMap, Map<String, Integer> productToMinQuantityMap) Sets pros travel restrictions. Iterates on theChargeand for each different type calculates the minimum and maximum number of occurrences of that specificShoppingBaggageProductModelin theOfferPricingInfoData.- Parameters:
offerPricingInfoData- the offer pricing info dataproduct- the productproductToMaxQuantityMap- the product to max quantity mapproductToMinQuantityMap- the product to min quantity map
-
getProsSearchResponseService
Gets pros search response service.- Returns:
- the pros search response service
-
setProsSearchResponseService
Sets pros search response service.- Parameters:
prosSearchResponseService- the pros search response service
-
getTravelCartService
Gets travel cart service.- Returns:
- the travel cart service
-
setTravelCartService
Sets travel cart service.- Parameters:
travelCartService- the travel cart service
-