Class TransportOfferingPastDepartureDateStrategy

java.lang.Object
de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
de.hybris.platform.travelfacades.strategies.impl.TransportOfferingPastDepartureDateStrategy
All Implemented Interfaces:
OfferResponseFilterStrategy

public class TransportOfferingPastDepartureDateStrategy extends AbstractOfferResponseFilterStrategy
Strategy that extends the AbstractOfferResponseFilterStrategy. The strategy is used to filter out the originDestinationOfferInfos if at least one of its transportOfferings is in the past, that means that the departure date is before the current time.
  • Constructor Details

    • TransportOfferingPastDepartureDateStrategy

      public TransportOfferingPastDepartureDateStrategy()
  • Method Details

    • filterOfferResponseData

      public void filterOfferResponseData(OfferResponseData offerResponseData)
      Description copied from interface: OfferResponseFilterStrategy
      Method to filter out the originDestinationOfferInfos.
      Parameters:
      offerResponseData - as the offerResponseData with the originDestinationOfferInfos to be filtered.
    • isAnyTransportOfferingInThePast

      protected boolean isAnyTransportOfferingInThePast(OriginDestinationOfferInfoData originDestinationOfferInfoData, OfferGroupData offerGroupData)
      Is any transport offering in the past boolean.
      Parameters:
      originDestinationOfferInfoData - the origin destination offer info data
      offerGroupData - the offer group data
      Returns:
      the boolean
    • filterSeatMapData

      public void filterSeatMapData(SeatMapResponseData seatMapResponseData)
      Description copied from interface: OfferResponseFilterStrategy
      Method to filter out the seatMapData.
      Parameters:
      seatMapResponseData - as the seatMapResponseData with the seatMapData to be filtered.
    • isTransportOfferingInThePast

      protected boolean isTransportOfferingInThePast(TransportOfferingData to)
      Is transport offering in the past boolean.
      Parameters:
      to - the to
      Returns:
      the boolean
    • getTimeService

      protected de.hybris.platform.servicelayer.time.TimeService getTimeService()
      Gets time service.
      Returns:
      the timeService
    • setTimeService

      public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
      Sets time service.
      Parameters:
      timeService - the timeService to set