Class DefaultCheckInFacade
java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultCheckInFacade
- All Implemented Interfaces:
CheckInFacade
Default implementation of CheckInFacade
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckTravellerEligibility(String travellerCode, List<String> transportOfferingCodes, String abstractOrderCode) Method to check if a traveller is eligible to amend the ancillaries of his order.doCheckin(CheckInRequestData checkInRequest) This method will perform the Check-In based on the incoming RequestDataprotected de.hybris.platform.store.services.BaseStoreServiceprotected BookingServiceprotected de.hybris.platform.processengine.BusinessProcessServiceprotected CheckInEvaluatorStrategyGets checkin flow group for checkout.protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected CheckInEvaluatorStrategyprotected TravellerServiceprotected CheckInResponseDatahandleErrorMessage(String errorMessageKey, CheckInResponseData checkInResponseData, String errorValueCode) protected CheckInResponseDatahandleErrorMessageWithLog(String errorMessageKey, CheckInResponseData checkInResponseData, String errorValueCode) booleanisCheckInPossible(ReservationData reservation, int originDestinationRefNumber) This method checks if the Check-In process is possible for the leg identified by the originDestinationRefNumber for the given ReservationData Returns true if Check In is possible, false otherwiseprotected booleanisPassengerAgeValidAtTimeOfTravel(PassengerTypeModel passengerTypeModel, Date dateOfBirth, Date arrivalTime) booleanisTravellerCheckInPossible(ReservationData reservation, int originDestinationRefNumber) This method checks if the Check-In process is possible for the leg identified by the originDestinationRefNumber for the given ReservationData Returns true if Check In is possible, false otherwiseprotected voidpopulateErrorMessageMap(CheckInResponseData checkInResponseData, String errorMessageKey, List<String> errorValue) protected voidpopulatePassengerInformation(PassengerInformationModel passengerInformationModel, PassengerInformationData passengerInformationData) voidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) voidsetBookingService(BookingService bookingService) voidsetBusinessProcessService(de.hybris.platform.processengine.BusinessProcessService businessProcessService) voidsetCheckInEvaluatorStrategy(CheckInEvaluatorStrategy checkInEvaluatorStrategy) voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetTravellerCheckinEvaluatorStrategy(CheckInEvaluatorStrategy travellerCheckinEvaluatorStrategy) voidsetTravellerService(TravellerService travellerService) voidstartCheckInProcess(String bookingReference, int originDestinationRefNumber, List<String> travellersToCheckIn) Method to start the check-in process
-
Constructor Details
-
DefaultCheckInFacade
public DefaultCheckInFacade()
-
-
Method Details
-
doCheckin
Description copied from interface:CheckInFacadeThis method will perform the Check-In based on the incoming RequestData- Specified by:
doCheckinin interfaceCheckInFacade- Parameters:
checkInRequest- the check in request- Returns:
- CheckInResponseData evaluated from checkInRequest
-
populatePassengerInformation
protected void populatePassengerInformation(PassengerInformationModel passengerInformationModel, PassengerInformationData passengerInformationData) -
handleErrorMessageWithLog
protected CheckInResponseData handleErrorMessageWithLog(String errorMessageKey, CheckInResponseData checkInResponseData, String errorValueCode) -
handleErrorMessage
protected CheckInResponseData handleErrorMessage(String errorMessageKey, CheckInResponseData checkInResponseData, String errorValueCode) -
getCheckinFlowGroupForCheckout
Description copied from interface:CheckInFacadeGets checkin flow group for checkout.- Specified by:
getCheckinFlowGroupForCheckoutin interfaceCheckInFacade- Returns:
- String checkin flow group for checkout
-
populateErrorMessageMap
protected void populateErrorMessageMap(CheckInResponseData checkInResponseData, String errorMessageKey, List<String> errorValue) -
isPassengerAgeValidAtTimeOfTravel
protected boolean isPassengerAgeValidAtTimeOfTravel(PassengerTypeModel passengerTypeModel, Date dateOfBirth, Date arrivalTime) -
isCheckInPossible
Description copied from interface:CheckInFacadeThis method checks if the Check-In process is possible for the leg identified by the originDestinationRefNumber for the given ReservationData Returns true if Check In is possible, false otherwise- Specified by:
isCheckInPossiblein interfaceCheckInFacade- Parameters:
reservation- Reservation details to be Checked InoriginDestinationRefNumber- Origin Destination reference number to identify the leg- Returns:
- boolean boolean
-
isTravellerCheckInPossible
public boolean isTravellerCheckInPossible(ReservationData reservation, int originDestinationRefNumber) throws ReservationException Description copied from interface:CheckInFacadeThis method checks if the Check-In process is possible for the leg identified by the originDestinationRefNumber for the given ReservationData Returns true if Check In is possible, false otherwise- Specified by:
isTravellerCheckInPossiblein interfaceCheckInFacade- Parameters:
reservation- Reservation details to be Checked InoriginDestinationRefNumber- Origin Destination reference number to identify the leg- Returns:
- boolean boolean
- Throws:
ReservationException
-
checkTravellerEligibility
public boolean checkTravellerEligibility(String travellerCode, List<String> transportOfferingCodes, String abstractOrderCode) Description copied from interface:CheckInFacadeMethod to check if a traveller is eligible to amend the ancillaries of his order.- Specified by:
checkTravellerEligibilityin interfaceCheckInFacade- Parameters:
travellerCode- as the code of the traveller to be checkedtransportOfferingCodes- as the codes of the transportOffering to checkabstractOrderCode- the abstract order code, i.e., the booking reference number- Returns:
- true if it is possible to amend the ancillaries for the specific traveller and transportOfferings, false otherwise
-
startCheckInProcess
public void startCheckInProcess(String bookingReference, int originDestinationRefNumber, List<String> travellersToCheckIn) Description copied from interface:CheckInFacadeMethod to start the check-in process- Specified by:
startCheckInProcessin interfaceCheckInFacade- Parameters:
bookingReference- as the reference of the bookingoriginDestinationRefNumber- as the originDestinationRefNumber of the leg the traveller has checked intravellersToCheckIn- as the list of travellers to check in
-
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
-
getTravellerService
- Returns:
- the travellerService
-
setTravellerService
- Parameters:
travellerService- the travellerService to set
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()- Returns:
- the modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) - Parameters:
modelService- the modelService to set
-
getCheckInEvaluatorStrategy
- Returns:
- the checkInEvaluatorStrategy
-
setCheckInEvaluatorStrategy
- Parameters:
checkInEvaluatorStrategy- the checkInEvaluatorStrategy to set
-
getBookingService
- Returns:
- the bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-
getBusinessProcessService
protected de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()- Returns:
- the businessProcessService
-
setBusinessProcessService
public void setBusinessProcessService(de.hybris.platform.processengine.BusinessProcessService businessProcessService) - Parameters:
businessProcessService- the businessProcessService to set
-
getCommonI18NService
protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()- Returns:
- the commonI18NService
-
setCommonI18NService
public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) - Parameters:
commonI18NService- the commonI18NService to set
-
getTravellerCheckinEvaluatorStrategy
- Returns:
- the travellerCheckinEvaluatorStrategy
-
setTravellerCheckinEvaluatorStrategy
public void setTravellerCheckinEvaluatorStrategy(CheckInEvaluatorStrategy travellerCheckinEvaluatorStrategy) - Parameters:
travellerCheckinEvaluatorStrategy- the travellerCheckinEvaluatorStrategy to set
-