Class AbstractASRedirectStrategy

java.lang.Object
de.hybris.platform.travelacceleratorstorefront.strategies.asm.AbstractASRedirectStrategy
Direct Known Subclasses:
ASRedirectForAccommodationOnlyStrategy, ASRedirectForBookingPackageStrategy, ASRedirectForTransportAccommodationStrategy, ASRedirectForTransportOnlyStrategy

public abstract class AbstractASRedirectStrategy extends Object
Abstract redirect strategy that exposes the common methods for the ASM redirect strategies.
  • Constructor Details

    • AbstractASRedirectStrategy

      public AbstractASRedirectStrategy()
  • Method Details

    • getPassengerTypeQuantityList

      protected Map<String,Integer> 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

      protected String getLocationName(String locationCode, String locationType)
      Gets the location name.
      Parameters:
      locationCode - the location code
      locationType - the location type
      Returns:
      the location name
    • getParentBundleTemplateIdByEntryGroup

      protected String getParentBundleTemplateIdByEntryGroup(AbstractOrderEntryModel entry)
      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

      protected ZonedDateTime getUTCDepartureTime(TransportOfferingModel transportOfferingModel)
      Return the UTC departure time for the given transportOffering
      Parameters:
      transportOfferingModel - as the tranportOffering
      Returns:
      the zoned date time
    • getTravellerSortStrategy

      protected TravellerSortStrategy getTravellerSortStrategy()
      Returns:
      the travellerSortStrategy
    • setTravellerSortStrategy

      public void setTravellerSortStrategy(TravellerSortStrategy travellerSortStrategy)
      Parameters:
      travellerSortStrategy - the travellerSortStrategy to set
    • getPassengerTypeFacade

      protected PassengerTypeFacade getPassengerTypeFacade()
      Returns:
      the passengerTypeFacade
    • setPassengerTypeFacade

      public void setPassengerTypeFacade(PassengerTypeFacade passengerTypeFacade)
      Parameters:
      passengerTypeFacade - the passengerTypeFacade to set
    • getTransportOfferingFacade

      protected TransportOfferingFacade getTransportOfferingFacade()
      Returns:
      the transportOfferingFacade
    • setTransportOfferingFacade

      public void setTransportOfferingFacade(TransportOfferingFacade transportOfferingFacade)
      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

      protected TravelBundleTemplateFacade getTravelBundleTemplateFacade()
      Gets travel bundle template facade.
      Returns:
      the travel bundle template facade
    • setTravelBundleTemplateFacade

      public void setTravelBundleTemplateFacade(TravelBundleTemplateFacade travelBundleTemplateFacade)
      Sets travel bundle template facade.
      Parameters:
      travelBundleTemplateFacade - the travel bundle template facade