Interface ReservationFacade
- All Known Implementing Classes:
DefaultReservationFacade
public interface ReservationFacade
Exposes the services relevant to Reservation DTO.
-
Method Summary
Modifier and TypeMethodDescriptiongetAccommodationReservationData(AbstractOrderModel abstractOrderModel) Gets the accommodation reservation data.getAccommodationReservationSummary(String orderCode) Populates the AccommodationReservationData from the order with data only needed for displaying the accommodation summary.getBaseGlobalTravelReservationData(AbstractOrderModel abstractOrderModel) Retrieve the globalTravelReservationData from theOrderModelorder.getBasicReservationData(AbstractOrderModel abstractOrderModel) Populates the ReservationData from the provided abstractOrderModel without the pricing informationgetBookerEmailIDFromReservationData(GlobalTravelReservationData globalReservationData, String lastName, String passengerReference) Gets booker email id from reservation data.getBookingJourneyType(String orderCode) Returns the string representing the BookingJourneyType corresponding to the given orderCode.getCancelledGlobalTravelReservationData(AbstractOrderModel abstractOrderModel) Gets the cancelled global travel reservation data.Gets the current accommodation reservation data.Populates the AccommodationReservationData from the current session cart with data only needed for displaying the accommodation summary.gets current global travel reservation datagets current global travel reservation dataPopulates the ReservationData from the current session cart with data only needed for displaying the transport summary.Populates the Reservation DTO from the current Session Cart.Populates the ReservationData from the current session cart with data only needed for displaying the transport summary.getGlobalTravelReservationData(AbstractOrderModel abstractOrderModel) Gets the global travel reservation data.getReservationData(AbstractOrderModel abstractOrderModel) Populates the Reservation DTO from Abstract Order Model.getReservationDetails(String orderId, String lastName, String travellerReference) Gets reservation details for traveller reference.Returns the reservation details associated to theOrderModelfor order code and current user.retrieveGlobalReservationData(String bookingReference) Retrieves and returns theGlobalTravelReservationDataassociated to theOrderModelwith the provided bookingReference, null otherwise
-
Method Details
-
getReservationData
Populates the Reservation DTO from Abstract Order Model.- Parameters:
abstractOrderModel- - abstract order model to be converted- Returns:
- reservation DTO
-
getCurrentReservationData
ReservationData getCurrentReservationData()Populates the Reservation DTO from the current Session Cart.- Returns:
- reservation DTO
-
getCurrentReservationSummary
ReservationData getCurrentReservationSummary()Populates the ReservationData from the current session cart with data only needed for displaying the transport summary.- Returns:
- current reservation summary
-
getAccommodationReservationData
Gets the accommodation reservation data.- Parameters:
abstractOrderModel- the abstract order model- Returns:
- the accommodation reservation data
-
getCurrentAccommodationReservation
AccommodationReservationData getCurrentAccommodationReservation()Gets the current accommodation reservation data.- Returns:
- the accommodation reservation data
-
getCurrentAccommodationReservationSummary
AccommodationReservationData getCurrentAccommodationReservationSummary()Populates the AccommodationReservationData from the current session cart with data only needed for displaying the accommodation summary.- Returns:
- current reservation summary
-
getAccommodationReservationSummary
Populates the AccommodationReservationData from the order with data only needed for displaying the accommodation summary.- Parameters:
orderCode- the order code- Returns:
- current reservation summary
-
getCurrentGlobalTravelReservationData
GlobalTravelReservationData getCurrentGlobalTravelReservationData()gets current global travel reservation data- Returns:
- current global travel reservation data
-
getGlobalTravelReservationData
Gets the global travel reservation data.- Parameters:
abstractOrderModel- the abstract order model- Returns:
- the global travel reservation data
-
retrieveGlobalReservationData
Retrieves and returns theGlobalTravelReservationDataassociated to theOrderModelwith the provided bookingReference, null otherwise- Parameters:
bookingReference- a String representing bookingReference Number- Returns:
- global travel reservation data
-
getCancelledGlobalTravelReservationData
GlobalTravelReservationData getCancelledGlobalTravelReservationData(AbstractOrderModel abstractOrderModel) Gets the cancelled global travel reservation data.- Parameters:
abstractOrderModel- the order- Returns:
- the cancelled global travel reservation data
-
getCurrentPackageTransportReservationSummary
ReservationData getCurrentPackageTransportReservationSummary()Populates the ReservationData from the current session cart with data only needed for displaying the transport summary.- Returns:
- current reservation summary
-
getBasicReservationData
Populates the ReservationData from the provided abstractOrderModel without the pricing information- Parameters:
abstractOrderModel- the abstract order model- Returns:
- reservation summary
-
getBookerEmailIDFromReservationData
String getBookerEmailIDFromReservationData(GlobalTravelReservationData globalReservationData, String lastName, String passengerReference) Gets booker email id from reservation data.- Parameters:
globalReservationData- the global reservation datalastName- the last namepassengerReference- the passenger reference- Returns:
- the booker email id from reservation data
-
getBookingJourneyType
Returns the string representing the BookingJourneyType corresponding to the given orderCode.- Parameters:
orderCode- as the order code- Returns:
- the string representing the BookingJourneyType corresponding to the given orderCode, null if not present.
-
getReservationDetailsForCurrentUser
Returns the reservation details associated to theOrderModelfor order code and current user.- Parameters:
code- order code- Returns:
- the reservation details
-
getReservationDetails
GlobalTravelReservationData getReservationDetails(String orderId, String lastName, String travellerReference) throws InvalidOrderStatusException, TravellerNotEligibleException, ReservationDetailsDeniedException Gets reservation details for traveller reference.- Parameters:
orderId- the order idlastName- the last nametravellerReference- the traveller reference- Returns:
- the reservation details for traveller reference
- Throws:
InvalidOrderStatusException- the invalid order status exceptionTravellerNotEligibleException- the traveller not eligible exception when passenger reference is not provided for additional security.ReservationDetailsDeniedException- the booking details not found exception due to invalid last name or passenger reference.
-
getBaseGlobalTravelReservationData
GlobalTravelReservationData getBaseGlobalTravelReservationData(AbstractOrderModel abstractOrderModel) Retrieve the globalTravelReservationData from theOrderModelorder.- Parameters:
abstractOrderModel- the order- Returns:
- the globalTravelReservationData
-
getCurrentBaseGlobalTravelReservationData
GlobalTravelReservationData getCurrentBaseGlobalTravelReservationData()gets current global travel reservation data- Returns:
- current global travel reservation data
-