Class CheckInWindowRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.CheckInWindowRestrictionStrategy
- All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy
public class CheckInWindowRestrictionStrategy
extends Object
implements BookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List, setting it to false if the departureDate of
the first transportOffering is not included between the minCheckInTime and maxCheckInTime. Values of minCheckInTime
and maxCheckInTime can be set in the properties file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Applies the strategy for Listprotected de.hybris.platform.servicelayer.config.ConfigurationServiceprotected de.hybris.platform.servicelayer.time.TimeServicevoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
-
Constructor Details
-
CheckInWindowRestrictionStrategy
public CheckInWindowRestrictionStrategy()
-
-
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
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) - Parameters:
configurationService- the configurationService to set
-
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
-