Overview

Summary

ContactDonateImprint


Appendix E-2: FLIGHT SEAT (UI prompt)


FlightSeatFlightModuleZeppelinFlight

Properties (5)

PropertyTypeEntityReferenceModule
(1) CurrencySTRINGFlightSeat
(2) FlightINTFlightSeatFlightFlightModule
(3) PriceSTRINGFlightSeat
(4) SeatINTFlightSeatSeatZeppelinModule
(5) SeatStatusSTRINGFlightSeat


Module Interfaces (8)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /flightseat/{id}findFlightSeatById(id)FlightModuleGETFlightSeat
(2) /bookingseat/flightseat/{id}findAllBookingSeatOfFlightSeat(id)FlightModuleGETFlightSeat BookingSeat
(3) /flightseatinsertFlightSeat(flightseat)FlightModulePOSTFlightSeat
(4) /flightseat/seat/{id}findAllFlightSeatOfSeat(id)FlightModuleGETSeat FlightSeat
(5) /flightseat/{id}updateFlightSeatById(flightseat)FlightModulePUTFlightSeat
(6) /flightseat/flight/{id}findAllFlightSeatOfFlight(id)FlightModuleGETFlight FlightSeat
(7) /flightseat/{id}deleteFlightSeatById(id)FlightModuleDELETEFlightSeat
(8) /flightseatfindAllFlightSeat()FlightModuleGETFlightSeat





Example:

final FlightSeat flightseat = (FlightSeat) invokeModule(FLIGHT_MODULE + "/flightseat/" + id, FlightSeat.class);
if (flightseat != null) {
    final Seat seat1 = (Seat) invokeModule(ZEPPELIN_MODULE + "/seat/" + flightseat.getSeat().getId(), Seat.class);
    if (seat1 != null) {
        final Zeppelin zeppelin2 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + seat1.getZeppelin().getId(), Zeppelin.class);
        if (zeppelin2 != null) {
            final ZeppelinClass zeppelinclass3 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin2.getZeppelinClass().getId(), ZeppelinClass.class);
            if (zeppelinclass3 != null) {
                final Organization manufacturer4 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass3.getManufacturer().getId(), Organization.class);
                if (manufacturer4 != null) {
                    final Location headquarterslocation5 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer4.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation5 != null) {
                        final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation5.getCountry().getId(), Country.class);
                        if (country6 != null) {
                        }
                    }
                }
            }
            final Location homebaselocation7 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin2.getHomeBaseLocation().getId(), Location.class);
            if (homebaselocation7 != null) {
                final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation7.getCountry().getId(), Country.class);
                if (country8 != null) {
                }
            }
            final Organization operator9 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin2.getOperator().getId(), Organization.class);
            if (operator9 != null) {
                final Location headquarterslocation10 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator9.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation10 != null) {
                    final Country country11 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation10.getCountry().getId(), Country.class);
                    if (country11 != null) {
                    }
                }
            }
        }
    }
    final Flight flight12 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + flightseat.getFlight().getId(), Flight.class);
    if (flight12 != null) {
        final FlightRoute flightroute13 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight12.getFlightRoute().getId(), FlightRoute.class);
        if (flightroute13 != null) {
            final Location departurelocation14 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute13.getDepartureLocation().getId(), Location.class);
            if (departurelocation14 != null) {
                final Country country15 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation14.getCountry().getId(), Country.class);
                if (country15 != null) {
                }
            }
            final Hangar defaulthangar16 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute13.getDefaultHangar().getId(), Hangar.class);
            if (defaulthangar16 != null) {
                final Location location17 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar16.getLocation().getId(), Location.class);
                if (location17 != null) {
                    final Country country18 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location17.getCountry().getId(), Country.class);
                    if (country18 != null) {
                    }
                }
            }
            final Location arrivallocation19 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute13.getArrivalLocation().getId(), Location.class);
            if (arrivallocation19 != null) {
                final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation19.getCountry().getId(), Country.class);
                if (country20 != null) {
                }
            }
        }
        final Zeppelin zeppelin21 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight12.getZeppelin().getId(), Zeppelin.class);
        if (zeppelin21 != null) {
            final ZeppelinClass zeppelinclass22 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin21.getZeppelinClass().getId(), ZeppelinClass.class);
            if (zeppelinclass22 != null) {
                final Organization manufacturer23 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass22.getManufacturer().getId(), Organization.class);
                if (manufacturer23 != null) {
                    final Location headquarterslocation24 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer23.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation24 != null) {
                        final Country country25 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation24.getCountry().getId(), Country.class);
                        if (country25 != null) {
                        }
                    }
                }
            }
            final Location homebaselocation26 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin21.getHomeBaseLocation().getId(), Location.class);
            if (homebaselocation26 != null) {
                final Country country27 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation26.getCountry().getId(), Country.class);
                if (country27 != null) {
                }
            }
            final Organization operator28 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin21.getOperator().getId(), Organization.class);
            if (operator28 != null) {
                final Location headquarterslocation29 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator28.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation29 != null) {
                    final Country country30 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation29.getCountry().getId(), Country.class);
                    if (country30 != null) {
                    }
                }
            }
        }
    }
}
return flightseat;


Overview

Summary

ContactDonateImprint