Class DefaultCheckInFacade

java.lang.Object
de.hybris.platform.travelfacades.facades.impl.DefaultCheckInFacade
All Implemented Interfaces:
CheckInFacade

public class DefaultCheckInFacade extends Object implements CheckInFacade
Default implementation of CheckInFacade
  • Constructor Details

    • DefaultCheckInFacade

      public DefaultCheckInFacade()
  • Method Details

    • doCheckin

      public CheckInResponseData doCheckin(CheckInRequestData checkInRequest)
      Description copied from interface: CheckInFacade
      This method will perform the Check-In based on the incoming RequestData
      Specified by:
      doCheckin in interface CheckInFacade
      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

      public String getCheckinFlowGroupForCheckout()
      Description copied from interface: CheckInFacade
      Gets checkin flow group for checkout.
      Specified by:
      getCheckinFlowGroupForCheckout in interface CheckInFacade
      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

      public boolean isCheckInPossible(ReservationData reservation, int originDestinationRefNumber)
      Description copied from interface: CheckInFacade
      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 otherwise
      Specified by:
      isCheckInPossible in interface CheckInFacade
      Parameters:
      reservation - Reservation details to be Checked In
      originDestinationRefNumber - 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: CheckInFacade
      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 otherwise
      Specified by:
      isTravellerCheckInPossible in interface CheckInFacade
      Parameters:
      reservation - Reservation details to be Checked In
      originDestinationRefNumber - 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: CheckInFacade
      Method to check if a traveller is eligible to amend the ancillaries of his order.
      Specified by:
      checkTravellerEligibility in interface CheckInFacade
      Parameters:
      travellerCode - as the code of the traveller to be checked
      transportOfferingCodes - as the codes of the transportOffering to check
      abstractOrderCode - 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: CheckInFacade
      Method to start the check-in process
      Specified by:
      startCheckInProcess in interface CheckInFacade
      Parameters:
      bookingReference - as the reference of the booking
      originDestinationRefNumber - as the originDestinationRefNumber of the leg the traveller has checked in
      travellersToCheckIn - 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

      protected TravellerService getTravellerService()
      Returns:
      the travellerService
    • setTravellerService

      public void setTravellerService(TravellerService travellerService)
      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

      protected CheckInEvaluatorStrategy getCheckInEvaluatorStrategy()
      Returns:
      the checkInEvaluatorStrategy
    • setCheckInEvaluatorStrategy

      public void setCheckInEvaluatorStrategy(CheckInEvaluatorStrategy checkInEvaluatorStrategy)
      Parameters:
      checkInEvaluatorStrategy - the checkInEvaluatorStrategy to set
    • getBookingService

      protected BookingService getBookingService()
      Returns:
      the bookingService
    • setBookingService

      public void setBookingService(BookingService bookingService)
      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

      protected CheckInEvaluatorStrategy getTravellerCheckinEvaluatorStrategy()
      Returns:
      the travellerCheckinEvaluatorStrategy
    • setTravellerCheckinEvaluatorStrategy

      public void setTravellerCheckinEvaluatorStrategy(CheckInEvaluatorStrategy travellerCheckinEvaluatorStrategy)
      Parameters:
      travellerCheckinEvaluatorStrategy - the travellerCheckinEvaluatorStrategy to set