Class OfferGroupOfferPricingInfoRequestHandler
java.lang.Object
de.hybris.platform.travelfacades.ancillary.search.handlers.impl.OfferGroupOfferPricingInfoRequestHandler
- All Implemented Interfaces:
AncillarySearchRequestHandler
public class OfferGroupOfferPricingInfoRequestHandler
extends Object
implements AncillarySearchRequestHandler
Handler class to populate OfferPricingInfoData for each category of products available to offer as ancillaries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckAddToCartCriteria(String addToCartCriteria) Checks if the given travelRestrictionData has theAddToCartCriteriaTypeof type PER_BOOKING or PER_PAXprotected booleancheckTravelRestriction(TravelRestrictionData travelRestrictionData) Deprecated.Deprecated since version 2.0.protected List<OfferGroupData>getFilteredOfferGroups(OfferRequestData offerRequestData) Filters the list of offerGroups based on theirAddToCartCriteriaType, returning the offerGroups of type PER_BOOKING or PER_PAXprotected List<OfferGroupData>getFilteredOfferGroups(ReservationData reservationData, OfferRequestData offerRequestData) Deprecated.since version 4 usegetFilteredOfferGroups(offerRequestData)protected List<OfferPricingInfoData>getOfferPricingInfos(ReservationData reservationData) Returns the list of offerPricingInfosprotected List<OfferPricingInfoData>getOfferPricingInfos(ReservationData reservationData, List<OfferGroupData> offerGroups) Deprecated.Deprecated since version 2.0.protected TravelRestrictionFacadevoidhandle(ReservationData reservationData, OfferRequestData offerRequestData) Handle method.voidsetTravelRestrictionFacade(TravelRestrictionFacade travelRestrictionFacade)
-
Constructor Details
-
OfferGroupOfferPricingInfoRequestHandler
public OfferGroupOfferPricingInfoRequestHandler()
-
-
Method Details
-
handle
Description copied from interface:AncillarySearchRequestHandlerHandle method.- Specified by:
handlein interfaceAncillarySearchRequestHandler- Parameters:
reservationData- the reservation dataofferRequestData- the offer request data
-
getFilteredOfferGroups
@Deprecated protected List<OfferGroupData> getFilteredOfferGroups(ReservationData reservationData, OfferRequestData offerRequestData) Deprecated.since version 4 usegetFilteredOfferGroups(offerRequestData)Filters the list of offerGroups based on theirAddToCartCriteriaType, returning the offerGroups of type PER_BOOKING or PER_PAX- Parameters:
reservationData-offerRequestData-- Returns:
-
getFilteredOfferGroups
Filters the list of offerGroups based on theirAddToCartCriteriaType, returning the offerGroups of type PER_BOOKING or PER_PAX- Parameters:
offerRequestData-- Returns:
-
getOfferPricingInfos
Returns the list of offerPricingInfos- Parameters:
reservationData-- Returns:
-
getOfferPricingInfos
@Deprecated protected List<OfferPricingInfoData> getOfferPricingInfos(ReservationData reservationData, List<OfferGroupData> offerGroups) Deprecated.Deprecated since version 2.0. Replaced bygetOfferPricingInfos(ReservationData)Returns the list of offerPricingInfos- Parameters:
reservationData-offerGroups-- Returns:
-
checkTravelRestriction
Deprecated.Deprecated since version 2.0. Please usecheckAddToCartCriteria(String)Checks if the given travelRestrictionData has theAddToCartCriteriaTypeof type PER_BOOKING or PER_PAX- Parameters:
travelRestrictionData-- Returns:
-
checkAddToCartCriteria
Checks if the given travelRestrictionData has theAddToCartCriteriaTypeof type PER_BOOKING or PER_PAX- Parameters:
addToCartCriteria-- Returns:
-
getTravelRestrictionFacade
- Returns:
- the travelRestrictionFacade
-
setTravelRestrictionFacade
- Parameters:
travelRestrictionFacade- the travelRestrictionFacade to set
-