Class ASRedirectForBookingPackageStrategy
java.lang.Object
de.hybris.platform.travelacceleratorstorefront.strategies.asm.AbstractASRedirectStrategy
de.hybris.platform.travelacceleratorstorefront.strategies.asm.ASRedirectForBookingPackageStrategy
- All Implemented Interfaces:
AssistedServiceRedirectByJourneyTypeStrategy
- Direct Known Subclasses:
ShoppingASRedirectForBookingPackageStrategy
public class ASRedirectForBookingPackageStrategy
extends AbstractASRedirectStrategy
implements AssistedServiceRedirectByJourneyTypeStrategy
Redirect strategy for package journey responsible for building the required url parameters and redirect to the package details
page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildUrlParametersForDeal(CartModel cartModel) Returns the string with the url parameters required for the redirect to the deal-details page.protected StringbuildUrlParametersForPackage(CartModel cartModel) Returns the string with the url parameters required for the redirect to the package-details page.protected CabinClassFacadeprotected DealBundleTemplateFacadeprotected DealCartFacadeprotected StringgetGuestOccupancy(List<AbstractOrderEntryModel> transportationEntries, List<AbstractOrderEntryModel> accommodationEntries) Returns the string with the guest occupancies.getRedirectPath(CartModel cartModel) Returns the redirect path.protected TravellerFacadeprotected voidpopulatePartHotelStay(Map<String, String> urlParameters) Populates the partHotelStay attribute in the urlParameters mapprotected voidpopulateUrlParametersForAccommodation(List<AbstractOrderEntryModel> accommodationEntries, Map<String, String> urlParameters) Populates the url parameters map with the attributes for the accommodation part.protected voidpopulateUrlParametersForTransport(List<AbstractOrderEntryModel> transportationEntries, Map<String, String> urlParameters) Populates the url parameters map with the attributes for the transport part.voidsetCabinClassFacade(CabinClassFacade cabinClassFacade) voidsetDealBundleTemplateFacade(DealBundleTemplateFacade dealBundleTemplateFacade) voidsetDealCartFacade(DealCartFacade dealCartFacade) voidsetTravellerFacade(TravellerFacade travellerFacade) Methods inherited from class de.hybris.platform.travelacceleratorstorefront.strategies.asm.AbstractASRedirectStrategy
getLocationName, getParentBundleTemplateIdByEntryGroup, getPassengerTypeFacade, getPassengerTypeQuantityList, getSessionService, getTransportOfferingFacade, getTravelBundleTemplateFacade, getTravellerSortStrategy, getUTCDepartureTime, setPassengerTypeFacade, setSessionService, setTransportOfferingFacade, setTravelBundleTemplateFacade, setTravellerSortStrategy
-
Constructor Details
-
ASRedirectForBookingPackageStrategy
public ASRedirectForBookingPackageStrategy()
-
-
Method Details
-
getRedirectPath
Description copied from interface:AssistedServiceRedirectByJourneyTypeStrategyReturns the redirect path.- Specified by:
getRedirectPathin interfaceAssistedServiceRedirectByJourneyTypeStrategy- Parameters:
cartModel- as the cart model- Returns:
- a string corresponding to the redirect path
-
buildUrlParametersForDeal
Returns the string with the url parameters required for the redirect to the deal-details page.- Parameters:
cartModel- as the cart model- Returns:
- the string of the url parameters
-
buildUrlParametersForPackage
Returns the string with the url parameters required for the redirect to the package-details page.- Parameters:
cartModel- as the cart model- Returns:
- the string of the url parameters
-
populateUrlParametersForTransport
protected void populateUrlParametersForTransport(List<AbstractOrderEntryModel> transportationEntries, Map<String, String> urlParameters) Populates the url parameters map with the attributes for the transport part.- Parameters:
transportationEntries- as the list of abstract order entry models of type transporturlParameters- as the url parameters map
-
populateUrlParametersForAccommodation
protected void populateUrlParametersForAccommodation(List<AbstractOrderEntryModel> accommodationEntries, Map<String, String> urlParameters) Populates the url parameters map with the attributes for the accommodation part.- Parameters:
accommodationEntries- as the list of abstract order entry models of type accommodationurlParameters- as the url parameters map
-
getGuestOccupancy
protected String getGuestOccupancy(List<AbstractOrderEntryModel> transportationEntries, List<AbstractOrderEntryModel> accommodationEntries) Returns the string with the guest occupancies.- Parameters:
transportationEntries- as the list of abstract order entry models of type transportaccommodationEntries- as the list of abstract order entry models of type accommodation- Returns:
- the string with the guest occupancies
-
populatePartHotelStay
Populates the partHotelStay attribute in the urlParameters map- Parameters:
urlParameters- as the map of the url parameters.
-
getDealCartFacade
- Returns:
- the dealCartFacade
-
setDealCartFacade
- Parameters:
dealCartFacade- the dealCartFacade to set
-
getDealBundleTemplateFacade
- Returns:
- the dealBundleTemplateFacade
-
setDealBundleTemplateFacade
- Parameters:
dealBundleTemplateFacade- the dealBundleTemplateFacade to set
-
getCabinClassFacade
- Returns:
- the cabinClassFacade
-
setCabinClassFacade
- Parameters:
cabinClassFacade- the cabinClassFacade to set
-
getTravellerFacade
- Returns:
- the travellerFacade
-
setTravellerFacade
- Parameters:
travellerFacade- the travellerFacade to set
-