Class DefaultTravellerCheckinEvaluatorStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultCheckInEvaluatorStrategy
de.hybris.platform.travelfacades.strategies.impl.DefaultTravellerCheckinEvaluatorStrategy
- All Implemented Interfaces:
CheckInEvaluatorStrategy
public class DefaultTravellerCheckinEvaluatorStrategy
extends DefaultCheckInEvaluatorStrategy
implements CheckInEvaluatorStrategy
Default implementation of CheckInEvaluatorStrategy to check traveller check is allowed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleancheckReservationAndStatus(ReservationData reservation) Check reservation and status boolean.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected List<TransportOfferingStatus>Gets not allowed statuses.protected de.hybris.platform.servicelayer.time.TimeServiceGets time service.booleanisCheckInPossible(ReservationData reservation, int originDestinationRefNumber) Method to check if traveller check in is possiblevoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetNotAllowedStatuses(List<TransportOfferingStatus> notAllowedStatuses) Sets not allowed statuses.voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.
-
Constructor Details
-
DefaultTravellerCheckinEvaluatorStrategy
public DefaultTravellerCheckinEvaluatorStrategy()
-
-
Method Details
-
isCheckInPossible
public boolean isCheckInPossible(ReservationData reservation, int originDestinationRefNumber) throws ReservationException Method to check if traveller check in is possible- Specified by:
isCheckInPossiblein interfaceCheckInEvaluatorStrategy- Overrides:
isCheckInPossiblein classDefaultCheckInEvaluatorStrategy- Parameters:
reservation-originDestinationRefNumber-- Returns:
- the boolean
- Throws:
ReservationException
-
checkReservationAndStatus
Check reservation and status boolean.- Overrides:
checkReservationAndStatusin classDefaultCheckInEvaluatorStrategy- Parameters:
reservation- the reservation- Returns:
- the boolean
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets configuration service.- Overrides:
getConfigurationServicein classDefaultCheckInEvaluatorStrategy- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.- Overrides:
setConfigurationServicein classDefaultCheckInEvaluatorStrategy- Parameters:
configurationService- the configurationService to set
-
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()Gets time service.- Overrides:
getTimeServicein classDefaultCheckInEvaluatorStrategy- Returns:
- the timeService
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.- Overrides:
setTimeServicein classDefaultCheckInEvaluatorStrategy- Parameters:
timeService- the timeService to set
-
getNotAllowedStatuses
Gets not allowed statuses.- Overrides:
getNotAllowedStatusesin classDefaultCheckInEvaluatorStrategy- Returns:
- the notAllowedStatuses
-
setNotAllowedStatuses
Sets not allowed statuses.- Overrides:
setNotAllowedStatusesin classDefaultCheckInEvaluatorStrategy- Parameters:
notAllowedStatuses- the notAllowedStatuses to set
-