Class JourneyCheckInRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.JourneyCheckInRestrictionStrategy
- All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy
public class JourneyCheckInRestrictionStrategy
extends Object
implements BookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List, setting it to false if all the travellers
have been checked in in every leg, true otherwise
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Applies the strategy for Listprotected booleancheckedInOrCancelledOrPastLeg(ConsignmentModel consignment) protected de.hybris.platform.store.services.BaseStoreServiceprotected List<ConsignmentStatus>protected de.hybris.platform.commerceservices.customer.CustomerAccountServiceprotected de.hybris.platform.servicelayer.time.TimeServicevoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) voidsetConsignmentStatusList(List<ConsignmentStatus> consignmentStatusList) voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
-
Constructor Details
-
JourneyCheckInRestrictionStrategy
public JourneyCheckInRestrictionStrategy()
-
-
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
-
checkedInOrCancelledOrPastLeg
-
getBaseStoreService
protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) - Parameters:
baseStoreService- the baseStoreService to set
-
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()- Returns:
- the customerAccountService
-
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) - Parameters:
customerAccountService- the customerAccountService 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
-
getConsignmentStatusList
- Returns:
- the consignmentStatusList
-
setConsignmentStatusList
- Parameters:
consignmentStatusList- the consignmentStatusList to set
-