Overview

Summary

ContactDonateImprint


Appendix E-17: FLIGHT BOOKING SEGMENT (UI prompt)


FlightBookingSegmentAirportModuleBookingCom

Properties (5)

PropertyTypeEntityReferenceModule
(1) FlightINTFlightBookingSegmentFlightAirportModule
(2) FlightBookingINTFlightBookingSegmentFlightBookingCurrencyModule
(3) SeatSTRINGFlightBookingSegment
(4) SegmentNumberINTFlightBookingSegment
(5) StatusSTRINGFlightBookingSegment


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /flightbookingsegment/{id}updateFlightBookingSegmentById(flightbookingsegment)AirportModulePUTFlightBookingSegment
(2) /flightbookingsegment/{id}findFlightBookingSegmentById(id)AirportModuleGETFlightBookingSegment
(3) /flightbookingsegment/flightbooking/{id}findAllFlightBookingSegmentOfFlightBooking(id)AirportModuleGETFlightBooking FlightBookingSegment
(4) /flightbookingsegment/flight/{id}findAllFlightBookingSegmentOfFlight(id)AirportModuleGETFlight FlightBookingSegment
(5) /flightbookingsegmentinsertFlightBookingSegment(flightbookingsegment)AirportModulePOSTFlightBookingSegment
(6) /flightbookingsegment/{id}deleteFlightBookingSegmentById(id)AirportModuleDELETEFlightBookingSegment
(7) /flightbookingsegmentfindAllFlightBookingSegment()AirportModuleGETFlightBookingSegment





Example:

final FlightBookingSegment flightbookingsegment = (FlightBookingSegment) invokeModule(AIRPORT_MODULE + "/flightbookingsegment/" + id, FlightBookingSegment.class);
if (flightbookingsegment != null) {
    final Flight flight1 = (Flight) invokeModule(AIRPORT_MODULE + "/flight/" + flightbookingsegment.getFlight().getId(), Flight.class);
    if (flight1 != null) {
        final Airport originairport2 = (Airport) invokeModule(AIRPORT_MODULE + "/airport/" + flight1.getOriginAirport().getId(), Airport.class);
        if (originairport2 != null) {
            final LocationCity locationcity3 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + originairport2.getLocationCity().getId(), LocationCity.class);
            if (locationcity3 != null) {
                final LocationRegion locationregion4 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity3.getLocationRegion().getId(), LocationRegion.class);
                if (locationregion4 != null) {
                    final LocationCountry locationcountry5 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion4.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry5 != null) {
                    }
                }
                final LocationCountry locationcountry6 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity3.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry6 != null) {
                }
            }
        }
        final FlightCarrier flightcarrier7 = (FlightCarrier) invokeModule(AIRPORT_MODULE + "/flightcarrier/" + flight1.getFlightCarrier().getId(), FlightCarrier.class);
        if (flightcarrier7 != null) {
        }
        final Airport destinationairport8 = (Airport) invokeModule(AIRPORT_MODULE + "/airport/" + flight1.getDestinationAirport().getId(), Airport.class);
        if (destinationairport8 != null) {
            final LocationCity locationcity9 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + destinationairport8.getLocationCity().getId(), LocationCity.class);
            if (locationcity9 != null) {
                final LocationRegion locationregion10 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity9.getLocationRegion().getId(), LocationRegion.class);
                if (locationregion10 != null) {
                    final LocationCountry locationcountry11 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion10.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry11 != null) {
                    }
                }
                final LocationCountry locationcountry12 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity9.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry12 != null) {
                }
            }
        }
    }
    final FlightBooking flightbooking13 = (FlightBooking) invokeModule(CURRENCY_MODULE + "/flightbooking/" + flightbookingsegment.getFlightBooking().getId(), FlightBooking.class);
    if (flightbooking13 != null) {
        final Booking booking14 = (Booking) invokeModule(BOOKING_MODULE + "/booking/" + flightbooking13.getBooking().getId(), Booking.class);
        if (booking14 != null) {
            final UserAccount useraccount15 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + booking14.getUserAccount().getId(), UserAccount.class);
            if (useraccount15 != null) {
                final Currency defaultcurrency16 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + useraccount15.getDefaultCurrency().getId(), Currency.class);
                if (defaultcurrency16 != null) {
                }
                final Language defaultlanguage17 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + useraccount15.getDefaultLanguage().getId(), Language.class);
                if (defaultlanguage17 != null) {
                }
            }
            final Currency currency18 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + booking14.getCurrency().getId(), Currency.class);
            if (currency18 != null) {
            }
        }
        final Currency currency19 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + flightbooking13.getCurrency().getId(), Currency.class);
        if (currency19 != null) {
        }
    }
}
return flightbookingsegment;


Overview

Summary

ContactDonateImprint