Interface FareSearchHashResolver
- All Known Implementing Classes:
DefaultFareSearchHashResolver
public interface FareSearchHashResolver
Interface for the FareSearchHashResolver
-
Method Summary
Modifier and TypeMethodDescriptiongenerateIdentifier(ItineraryPricingInfoData itineraryPricingInfo) Generates the identifier based on the seed stored in session and theItineraryPricingInfoDataprovidedgenerateIdentifier(ItineraryPricingInfoData itineraryPricingInfo, String searchSeed) Generates the identifier based on the seed and theItineraryPricingInfoDataprovidedReturns a random string generated usingSecureRandombooleanvalidItineraryIdentifier(AddBundleToCartRequestData addBundleToCartRequestData, String itineraryIdentifier, String bundleType) Returns true if the identifier generated from theAddBundleToCartRequestDatamatches with the itineraryIdentifier and bundleType providedbooleanvalidItineraryIdentifier(List<ItineraryPricingInfoData> itineraryPricingInfos, String bundleTemplateID) Returns true if the identifier included in theItineraryPricingInfoDatamatches the products included in the offer.booleanvalidPackageItineraryIdentifier(ItineraryPricingInfoData itineraryPricingInfo) Returns true if the identifier included in theItineraryPricingInfoDatamatches the products included in the offer
-
Method Details
-
generateSeed
String generateSeed()Returns a random string generated usingSecureRandom- Returns:
-
generateIdentifier
Generates the identifier based on the seed stored in session and theItineraryPricingInfoDataprovided- Parameters:
itineraryPricingInfo-
-
generateIdentifier
Generates the identifier based on the seed and theItineraryPricingInfoDataprovided- Parameters:
itineraryPricingInfo-
-
validItineraryIdentifier
boolean validItineraryIdentifier(AddBundleToCartRequestData addBundleToCartRequestData, String itineraryIdentifier, String bundleType) Returns true if the identifier generated from theAddBundleToCartRequestDatamatches with the itineraryIdentifier and bundleType provided- Parameters:
addBundleToCartRequestData-itineraryIdentifier-bundleType-- Returns:
-
validItineraryIdentifier
boolean validItineraryIdentifier(List<ItineraryPricingInfoData> itineraryPricingInfos, String bundleTemplateID) Returns true if the identifier included in theItineraryPricingInfoDatamatches the products included in the offer. Removes all the seeds from the session. This function in meant to be called from a deal page that reloads its content and regenerates the search seeds.- Parameters:
itineraryPricingInfos-bundleTemplateID-- Returns:
-
validPackageItineraryIdentifier
Returns true if the identifier included in theItineraryPricingInfoDatamatches the products included in the offer- Parameters:
itineraryPricingInfo-- Returns:
-