Class DepartedLegRestrictionStrategy

java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.DepartedLegRestrictionStrategy
All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy

public class DepartedLegRestrictionStrategy extends Object implements BookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List. For each leg, if the TransportOfferingStatus is DEPARTED, the enabled property is set to false, true otherwise.
  • Constructor Details

    • DepartedLegRestrictionStrategy

      public DepartedLegRestrictionStrategy()
  • Method Details

    • applyStrategy

      public void applyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData)
      Description copied from interface: BookingActionEnabledEvaluatorStrategy
      Applies the strategy for List
      Specified by:
      applyStrategy in interface BookingActionEnabledEvaluatorStrategy
      Parameters:
      bookingActionDataList - the booking action data list
      reservationData - the reservation data
    • getTimeService

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

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

      protected List<TransportOfferingStatus> getNotAllowedStatuses()
      Returns:
      the notAllowedStatuses
    • setNotAllowedStatuses

      public void setNotAllowedStatuses(List<TransportOfferingStatus> notAllowedStatuses)
      Parameters:
      notAllowedStatuses - the notAllowedStatuses to set