Overview

Summary

ContactDonateImprint


Appendix E-27: FLIGHT (UI prompt)


FlightFlightModuleZeppelinFlight

Properties (6)

PropertyTypeEntityReferenceModule
(1) FlightNumberSTRINGFlight
(2) FlightRouteINTFlightFlightRouteLocationModule
(3) ScheduledArrivalDATEFlight
(4) ScheduledDepartureDATEFlight
(5) StatusSTRINGFlight
(6) ZeppelinINTFlightZeppelinZeppelinModule


Module Interfaces (9)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /booking/flight/{id}findAllBookingOfFlight(id)CustomerModuleGETFlight Booking
(2) /flight/{id}deleteFlightById(id)FlightModuleDELETEFlight
(3) /flight/{id}updateFlightById(flight)FlightModulePUTFlight
(4) /flight/flightroute/{id}findAllFlightOfFlightRoute(id)FlightModuleGETFlightRoute Flight
(5) /flight/zeppelin/{id}findAllFlightOfZeppelin(id)FlightModuleGETZeppelin Flight
(6) /flight/{id}findFlightById(id)FlightModuleGETFlight
(7) /flightseat/flight/{id}findAllFlightSeatOfFlight(id)FlightModuleGETFlight FlightSeat
(8) /flightfindAllFlight()FlightModuleGETFlight
(9) /flightinsertFlight(flight)FlightModulePOSTFlight





Example:

final Flight flight = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + id, Flight.class);
if (flight != null) {
    final FlightRoute flightroute1 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight.getFlightRoute().getId(), FlightRoute.class);
    if (flightroute1 != null) {
        final Location departurelocation2 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute1.getDepartureLocation().getId(), Location.class);
        if (departurelocation2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
        final Hangar defaulthangar4 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute1.getDefaultHangar().getId(), Hangar.class);
        if (defaulthangar4 != null) {
            final Location location5 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar4.getLocation().getId(), Location.class);
            if (location5 != null) {
                final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location5.getCountry().getId(), Country.class);
                if (country6 != null) {
                }
            }
        }
        final Location arrivallocation7 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute1.getArrivalLocation().getId(), Location.class);
        if (arrivallocation7 != null) {
            final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation7.getCountry().getId(), Country.class);
            if (country8 != null) {
            }
        }
    }
    final Zeppelin zeppelin9 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight.getZeppelin().getId(), Zeppelin.class);
    if (zeppelin9 != null) {
        final ZeppelinClass zeppelinclass10 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin9.getZeppelinClass().getId(), ZeppelinClass.class);
        if (zeppelinclass10 != null) {
            final Organization manufacturer11 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass10.getManufacturer().getId(), Organization.class);
            if (manufacturer11 != null) {
                final Location headquarterslocation12 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer11.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation12 != null) {
                    final Country country13 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation12.getCountry().getId(), Country.class);
                    if (country13 != null) {
                    }
                }
            }
        }
        final Location homebaselocation14 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin9.getHomeBaseLocation().getId(), Location.class);
        if (homebaselocation14 != null) {
            final Country country15 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation14.getCountry().getId(), Country.class);
            if (country15 != null) {
            }
        }
        final Organization operator16 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin9.getOperator().getId(), Organization.class);
        if (operator16 != null) {
            final Location headquarterslocation17 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator16.getHeadquartersLocation().getId(), Location.class);
            if (headquarterslocation17 != null) {
                final Country country18 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation17.getCountry().getId(), Country.class);
                if (country18 != null) {
                }
            }
        }
    }
}
return flight;


Overview

Summary

ContactDonateImprint