Class DepartedLegsRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.DepartedLegsRestrictionStrategy
- All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy
public class DepartedLegsRestrictionStrategy
extends Object
implements BookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List. If all legs of the booking have at least one
TransportOffering in status DEPARTED, the enabled property is set to false, true otherwise
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Applies the strategy for Listprotected List<TransportOfferingStatus>protected de.hybris.platform.servicelayer.time.TimeServicevoidsetNotAllowedStatuses(List<TransportOfferingStatus> notAllowedStatuses) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
-
Constructor Details
-
DepartedLegsRestrictionStrategy
public DepartedLegsRestrictionStrategy()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Description copied from interface:BookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listreservationData- 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
- Returns:
- the notAllowedStatuses
-
setNotAllowedStatuses
- Parameters:
notAllowedStatuses- the notAllowedStatuses to set
-