Overview

Summary

ContactDonateImprint


Appendix E-12: BOOKING (UI prompt)


BookingCustomerModuleZeppelinFlight

Properties (7)

PropertyTypeEntityReferenceModule
(1) BookingCodeSTRINGBooking
(2) BookingDateTimeDATEBooking
(3) CurrencySTRINGBooking
(4) CustomerINTBookingCustomerCustomerModule
(5) FlightINTBookingFlightFlightModule
(6) StatusSTRINGBooking
(7) TotalPriceSTRINGBooking


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /bookingfindAllBooking()CustomerModuleGETBooking
(2) /booking/customer/{id}findAllBookingOfCustomer(id)CustomerModuleGETCustomer Booking
(3) /booking/flight/{id}findAllBookingOfFlight(id)CustomerModuleGETFlight Booking
(4) /bookinginsertBooking(booking)CustomerModulePOSTBooking
(5) /booking/{id}deleteBookingById(id)CustomerModuleDELETEBooking
(6) /payment/booking/{id}findAllPaymentOfBooking(id)CustomerModuleGETBooking Payment
(7) /booking/{id}updateBookingById(booking)CustomerModulePUTBooking
(8) /booking/{id}findBookingById(id)CustomerModuleGETBooking
(9) /bookingseat/booking/{id}findAllBookingSeatOfBooking(id)FlightModuleGETBooking BookingSeat
(10) /giftredemption/booking/{id}findAllGiftRedemptionOfBooking(id)GiftVoucherModuleGETBooking GiftRedemption





Example:

final Booking booking = (Booking) invokeModule(CUSTOMER_MODULE + "/booking/" + id, Booking.class);
if (booking != null) {
    final Flight flight1 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + booking.getFlight().getId(), Flight.class);
    if (flight1 != null) {
        final FlightRoute flightroute2 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight1.getFlightRoute().getId(), FlightRoute.class);
        if (flightroute2 != null) {
            final Location departurelocation3 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute2.getDepartureLocation().getId(), Location.class);
            if (departurelocation3 != null) {
                final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation3.getCountry().getId(), Country.class);
                if (country4 != null) {
                }
            }
            final Hangar defaulthangar5 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute2.getDefaultHangar().getId(), Hangar.class);
            if (defaulthangar5 != null) {
                final Location location6 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar5.getLocation().getId(), Location.class);
                if (location6 != null) {
                    final Country country7 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location6.getCountry().getId(), Country.class);
                    if (country7 != null) {
                    }
                }
            }
            final Location arrivallocation8 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute2.getArrivalLocation().getId(), Location.class);
            if (arrivallocation8 != null) {
                final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation8.getCountry().getId(), Country.class);
                if (country9 != null) {
                }
            }
        }
        final Zeppelin zeppelin10 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight1.getZeppelin().getId(), Zeppelin.class);
        if (zeppelin10 != null) {
            final ZeppelinClass zeppelinclass11 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin10.getZeppelinClass().getId(), ZeppelinClass.class);
            if (zeppelinclass11 != null) {
                final Organization manufacturer12 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass11.getManufacturer().getId(), Organization.class);
                if (manufacturer12 != null) {
                    final Location headquarterslocation13 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer12.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation13 != null) {
                        final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation13.getCountry().getId(), Country.class);
                        if (country14 != null) {
                        }
                    }
                }
            }
            final Location homebaselocation15 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin10.getHomeBaseLocation().getId(), Location.class);
            if (homebaselocation15 != null) {
                final Country country16 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation15.getCountry().getId(), Country.class);
                if (country16 != null) {
                }
            }
            final Organization operator17 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin10.getOperator().getId(), Organization.class);
            if (operator17 != null) {
                final Location headquarterslocation18 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator17.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation18 != null) {
                    final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation18.getCountry().getId(), Country.class);
                    if (country19 != null) {
                    }
                }
            }
        }
    }
    final Customer customer20 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + booking.getCustomer().getId(), Customer.class);
    if (customer20 != null) {
        final Country country21 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer20.getCountry().getId(), Country.class);
        if (country21 != null) {
        }
    }
}
return booking;


Overview

Summary

ContactDonateImprint