Class AbstractASRedirectStrategy
java.lang.Object
de.hybris.platform.travelacceleratorstorefront.strategies.asm.AbstractASRedirectStrategy
- Direct Known Subclasses:
ASRedirectForAccommodationOnlyStrategy,ASRedirectForBookingPackageStrategy,ASRedirectForTransportAccommodationStrategy,ASRedirectForTransportOnlyStrategy
Abstract redirect strategy that exposes the common methods for the ASM redirect strategies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLocationName(String locationCode, String locationType) Gets the location name.protected StringGets the entry group from the order entry and find the parent bundle template id by EntryGroup#ExternalReference.protected PassengerTypeFacadeReturns the map of the passenger type quantities.protected de.hybris.platform.servicelayer.session.SessionServiceprotected TransportOfferingFacadeprotected TravelBundleTemplateFacadeGets travel bundle template facade.protected TravellerSortStrategyprotected ZonedDateTimegetUTCDepartureTime(TransportOfferingModel transportOfferingModel) Return the UTC departure time for the given transportOfferingvoidsetPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade) voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) voidsetTransportOfferingFacade(TransportOfferingFacade transportOfferingFacade) voidsetTravelBundleTemplateFacade(TravelBundleTemplateFacade travelBundleTemplateFacade) Sets travel bundle template facade.voidsetTravellerSortStrategy(TravellerSortStrategy travellerSortStrategy)
-
Constructor Details
-
AbstractASRedirectStrategy
public AbstractASRedirectStrategy()
-
-
Method Details
-
getPassengerTypeQuantityList
Returns the map of the passenger type quantities.- Returns:
- a map with key corresponding to the passenger type and value correponding to its quantity
-
getLocationName
Gets the location name.- Parameters:
locationCode- the location codelocationType- the location type- Returns:
- the location name
-
getParentBundleTemplateIdByEntryGroup
Gets the entry group from the order entry and find the parent bundle template id by EntryGroup#ExternalReference.- Parameters:
entry- the entry model- Returns:
- the bundle template id
-
getUTCDepartureTime
Return the UTC departure time for the given transportOffering- Parameters:
transportOfferingModel- as the tranportOffering- Returns:
- the zoned date time
-
getTravellerSortStrategy
- Returns:
- the travellerSortStrategy
-
setTravellerSortStrategy
- Parameters:
travellerSortStrategy- the travellerSortStrategy to set
-
getPassengerTypeFacade
- Returns:
- the passengerTypeFacade
-
setPassengerTypeFacade
- Parameters:
passengerTypeFacade- the passengerTypeFacade to set
-
getTransportOfferingFacade
- Returns:
- the transportOfferingFacade
-
setTransportOfferingFacade
- Parameters:
transportOfferingFacade- the transportOfferingFacade to set
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()- Returns:
- the sessionService
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) - Parameters:
sessionService- the sessionService to set
-
getTravelBundleTemplateFacade
Gets travel bundle template facade.- Returns:
- the travel bundle template facade
-
setTravelBundleTemplateFacade
Sets travel bundle template facade.- Parameters:
travelBundleTemplateFacade- the travel bundle template facade
-