Class ASRedirectForTransportAccommodationStrategy
java.lang.Object
de.hybris.platform.travelacceleratorstorefront.strategies.asm.AbstractASRedirectStrategy
de.hybris.platform.travelacceleratorstorefront.strategies.asm.ASRedirectForTransportAccommodationStrategy
- All Implemented Interfaces:
AssistedServiceRedirectByJourneyTypeStrategy
- Direct Known Subclasses:
ShoppingASRedirectForTransportAccommodationStrategy
public class ASRedirectForTransportAccommodationStrategy
extends AbstractASRedirectStrategy
implements AssistedServiceRedirectByJourneyTypeStrategy
Redirect strategy for transport + accommodation journey responsible for building the required url parameters for transportation
and redirect to the fare selection page and for building the required url parameters for accommodation and set it in the
session.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AccommodationSuggestionFacadeprotected CabinClassFacadeprotected StringgetGuestOccupancy(CartModel cartModel) Returns the string with the guest occupancies build from the cart.protected StringReturns the string with the guest occupancies build from the transport travellers.getRedirectPath(CartModel cartModel) Returns the redirect path.protected TransportFacilityFacadeprotected TravellerFacadeprotected TravelLocationFacadeprotected StringgetUrlParametersForAccommodation(CartModel cartModel, Map<String, String> transportUrlParameters) Returns the url parameters map with the attributes for the accommodation part.getUrlParametersForTransportation(CartModel cartModel) Returns the url parameters map with the attributes for the transport part.voidsetAccommodationSuggestionFacade(AccommodationSuggestionFacade accommodationSuggestionFacade) voidsetCabinClassFacade(CabinClassFacade cabinClassFacade) voidsetTransportFacilityFacade(TransportFacilityFacade transportFacilityFacade) voidsetTravellerFacade(TravellerFacade travellerFacade) voidsetTravelLocationFacade(TravelLocationFacade travelLocationFacade) 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
-
ASRedirectForTransportAccommodationStrategy
public ASRedirectForTransportAccommodationStrategy()
-
-
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
-
getUrlParametersForTransportation
Returns the url parameters map with the attributes for the transport part.- Parameters:
cartModel- as the cart model
-
getUrlParametersForAccommodation
protected String getUrlParametersForAccommodation(CartModel cartModel, Map<String, String> transportUrlParameters) Returns the url parameters map with the attributes for the accommodation part.- Parameters:
cartModel- as the cart modeltransportUrlParameters- as the map with the url parameters for the transport part
-
getGuestOccupancy
Returns the string with the guest occupancies build from the cart.- Parameters:
cartModel- as the cart model- Returns:
- the string with the guest occupancies
-
getGuestOccupancyFromTransport
Returns the string with the guest occupancies build from the transport travellers.- Returns:
- the string with the guest occupancies
-
getCabinClassFacade
- Returns:
- the cabinClassFacade
-
setCabinClassFacade
- Parameters:
cabinClassFacade- the cabinClassFacade to set
-
getTravellerFacade
- Returns:
- the travellerFacade
-
setTravellerFacade
- Parameters:
travellerFacade- the travellerFacade to set
-
getTransportFacilityFacade
- Returns:
- the transportFacilityFacade
-
setTransportFacilityFacade
- Parameters:
transportFacilityFacade- the transportFacilityFacade to set
-
getTravelLocationFacade
- Returns:
- the travelLocationFacade
-
setTravelLocationFacade
- Parameters:
travelLocationFacade- the travelLocationFacade to set
-
getAccommodationSuggestionFacade
- Returns:
- the accommodationSuggestionFacade
-
setAccommodationSuggestionFacade
public void setAccommodationSuggestionFacade(AccommodationSuggestionFacade accommodationSuggestionFacade) - Parameters:
accommodationSuggestionFacade- the accommodationSuggestionFacade to set
-