Overview

Summary

ContactDonateImprint


2. CUSTOMER MODULE (UI prompt)



Module Entities (11)

EntityAliasModuleGlobal Schema
(1) BookingBookingCustomerModuleZeppelinFlight
(2) BookingSeatBookingSeatFlightModuleZeppelinFlight
(3) CountryCountryCountryModuleZeppelinFlight
(4) CustomerCustomerCustomerModuleZeppelinFlight
(5) CustomerOrderCustomerOrderCustomerModuleZeppelinFlight
(6) FlightFlightFlightModuleZeppelinFlight
(7) GiftRedemptionGiftRedemptionGiftVoucherModuleZeppelinFlight
(8) GiftVoucherGiftVoucherGiftVoucherModuleZeppelinFlight
(9) PaymentPaymentCustomerModuleZeppelinFlight
(10) ReservationReservationCustomerModuleZeppelinFlight
(11) RestaurantRestaurantRestaurantModuleZeppelinFlight

Module Interfaces (32)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /payment/{id}updatePaymentById(payment)CustomerModulePUTPayment
(2) /customer/{id}findCustomerById(id)CustomerModuleGETCustomer
(3) /reservation/{id}deleteReservationById(id)CustomerModuleDELETEReservation
(4) /payment/booking/{id}findAllPaymentOfBooking(id)CustomerModuleGETBooking Payment
(5) /booking/{id}updateBookingById(booking)CustomerModulePUTBooking
(6) /customer/{id}updateCustomerById(customer)CustomerModulePUTCustomer
(7) /customerorderinsertCustomerOrder(customerorder)CustomerModulePOSTCustomerOrder
(8) /bookinginsertBooking(booking)CustomerModulePOSTBooking
(9) /paymentfindAllPayment()CustomerModuleGETPayment
(10) /reservation/customer/{id}findAllReservationOfCustomer(id)CustomerModuleGETCustomer Reservation
(11) /customerorderfindAllCustomerOrder()CustomerModuleGETCustomerOrder
(12) /reservation/{id}updateReservationById(reservation)CustomerModulePUTReservation
(13) /payment/{id}findPaymentById(id)CustomerModuleGETPayment
(14) /booking/{id}findBookingById(id)CustomerModuleGETBooking
(15) /payment/{id}deletePaymentById(id)CustomerModuleDELETEPayment
(16) /reservationfindAllReservation()CustomerModuleGETReservation
(17) /reservationinsertReservation(reservation)CustomerModulePOSTReservation
(18) /bookingfindAllBooking()CustomerModuleGETBooking
(19) /customerorder/{id}findCustomerOrderById(id)CustomerModuleGETCustomerOrder
(20) /customerfindAllCustomer()CustomerModuleGETCustomer
(21) /customerorder/customer/{id}findAllCustomerOrderOfCustomer(id)CustomerModuleGETCustomer CustomerOrder
(22) /customerorder/{id}updateCustomerOrderById(customerorder)CustomerModulePUTCustomerOrder
(23) /booking/customer/{id}findAllBookingOfCustomer(id)CustomerModuleGETCustomer Booking
(24) /booking/{id}deleteBookingById(id)CustomerModuleDELETEBooking
(25) /booking/flight/{id}findAllBookingOfFlight(id)CustomerModuleGETFlight Booking
(26) /paymentinsertPayment(payment)CustomerModulePOSTPayment
(27) /customerinsertCustomer(customer)CustomerModulePOSTCustomer
(28) /customer/{id}deleteCustomerById(id)CustomerModuleDELETECustomer
(29) /reservation/restaurant/{id}findAllReservationOfRestaurant(id)CustomerModuleGETRestaurant Reservation
(30) /customer/country/{id}findAllCustomerOfCountry(id)CustomerModuleGETCountry Customer
(31) /reservation/{id}findReservationById(id)CustomerModuleGETReservation
(32) /customerorder/{id}deleteCustomerOrderById(id)CustomerModuleDELETECustomerOrder






2.1 BOOKING


BookingCustomerModuleZeppelinFlight

Properties (7)

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





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;


2.2 CUSTOMER


CustomerCustomerModuleZeppelinFlight

Properties (9)

PropertyTypeEntityReferenceModule
(1) AddressLine1STRINGCustomer
(2) AddressLine2STRINGCustomer
(3) CitySTRINGCustomer
(4) CountryINTCustomerCountryCountryModule
(5) EmailSTRINGCustomer
(6) FirstNameSTRINGCustomer
(7) LastNameSTRINGCustomer
(8) PhoneSTRINGCustomer
(9) PostalCodeSTRINGCustomer





Example:

final Customer customer = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + id, Customer.class);
if (customer != null) {
    final Country country1 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer.getCountry().getId(), Country.class);
    if (country1 != null) {
    }
}
return customer;


2.3 CUSTOMER ORDER


CustomerOrderCustomerModuleZeppelinFlight

Properties (6)

PropertyTypeEntityReferenceModule
(1) CurrencySTRINGCustomerOrder
(2) CustomerINTCustomerOrderCustomerCustomerModule
(3) OrderDateTimeDATECustomerOrder
(4) OrderNumberSTRINGCustomerOrder
(5) StatusSTRINGCustomerOrder
(6) TotalAmountSTRINGCustomerOrder





Example:

final CustomerOrder customerorder = (CustomerOrder) invokeModule(CUSTOMER_MODULE + "/customerorder/" + id, CustomerOrder.class);
if (customerorder != null) {
    final Customer customer1 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + customerorder.getCustomer().getId(), Customer.class);
    if (customer1 != null) {
        final Country country2 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
}
return customerorder;


2.4 PAYMENT


PaymentCustomerModuleZeppelinFlight

Properties (7)

PropertyTypeEntityReferenceModule
(1) AmountSTRINGPayment
(2) BookingINTPaymentBookingCustomerModule
(3) CurrencySTRINGPayment
(4) PaymentDateTimeDATEPayment
(5) PaymentMethodSTRINGPayment
(6) StatusSTRINGPayment
(7) TransactionReferenceSTRINGPayment





Example:

final Payment payment = (Payment) invokeModule(CUSTOMER_MODULE + "/payment/" + id, Payment.class);
if (payment != null) {
    final Booking booking1 = (Booking) invokeModule(CUSTOMER_MODULE + "/booking/" + payment.getBooking().getId(), Booking.class);
    if (booking1 != null) {
        final Flight flight2 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + booking1.getFlight().getId(), Flight.class);
        if (flight2 != null) {
            final FlightRoute flightroute3 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight2.getFlightRoute().getId(), FlightRoute.class);
            if (flightroute3 != null) {
                final Location departurelocation4 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute3.getDepartureLocation().getId(), Location.class);
                if (departurelocation4 != null) {
                    final Country country5 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation4.getCountry().getId(), Country.class);
                    if (country5 != null) {
                    }
                }
                final Hangar defaulthangar6 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute3.getDefaultHangar().getId(), Hangar.class);
                if (defaulthangar6 != null) {
                    final Location location7 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar6.getLocation().getId(), Location.class);
                    if (location7 != null) {
                        final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location7.getCountry().getId(), Country.class);
                        if (country8 != null) {
                        }
                    }
                }
                final Location arrivallocation9 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute3.getArrivalLocation().getId(), Location.class);
                if (arrivallocation9 != null) {
                    final Country country10 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation9.getCountry().getId(), Country.class);
                    if (country10 != null) {
                    }
                }
            }
            final Zeppelin zeppelin11 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight2.getZeppelin().getId(), Zeppelin.class);
            if (zeppelin11 != null) {
                final ZeppelinClass zeppelinclass12 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin11.getZeppelinClass().getId(), ZeppelinClass.class);
                if (zeppelinclass12 != null) {
                    final Organization manufacturer13 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass12.getManufacturer().getId(), Organization.class);
                    if (manufacturer13 != null) {
                        final Location headquarterslocation14 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer13.getHeadquartersLocation().getId(), Location.class);
                        if (headquarterslocation14 != null) {
                            final Country country15 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation14.getCountry().getId(), Country.class);
                            if (country15 != null) {
                            }
                        }
                    }
                }
                final Location homebaselocation16 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin11.getHomeBaseLocation().getId(), Location.class);
                if (homebaselocation16 != null) {
                    final Country country17 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation16.getCountry().getId(), Country.class);
                    if (country17 != null) {
                    }
                }
                final Organization operator18 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin11.getOperator().getId(), Organization.class);
                if (operator18 != null) {
                    final Location headquarterslocation19 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator18.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation19 != null) {
                        final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation19.getCountry().getId(), Country.class);
                        if (country20 != null) {
                        }
                    }
                }
            }
        }
        final Customer customer21 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + booking1.getCustomer().getId(), Customer.class);
        if (customer21 != null) {
            final Country country22 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer21.getCountry().getId(), Country.class);
            if (country22 != null) {
            }
        }
    }
}
return payment;


2.5 RESERVATION


ReservationCustomerModuleZeppelinFlight

Properties (6)

PropertyTypeEntityReferenceModule
(1) CustomerINTReservationCustomerCustomerModule
(2) NotesSTRINGReservation
(3) PartySizeINTReservation
(4) ReservationDateTimeDATEReservation
(5) RestaurantINTReservationRestaurantRestaurantModule
(6) StatusSTRINGReservation





Example:

final Reservation reservation = (Reservation) invokeModule(CUSTOMER_MODULE + "/reservation/" + id, Reservation.class);
if (reservation != null) {
    final Restaurant restaurant1 = (Restaurant) invokeModule(RESTAURANT_MODULE + "/restaurant/" + reservation.getRestaurant().getId(), Restaurant.class);
    if (restaurant1 != null) {
        final Hangar relatedhangar2 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + restaurant1.getRelatedHangar().getId(), Hangar.class);
        if (relatedhangar2 != null) {
            final Location location3 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedhangar2.getLocation().getId(), Location.class);
            if (location3 != null) {
                final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location3.getCountry().getId(), Country.class);
                if (country4 != null) {
                }
            }
        }
        final Location location5 = (Location) invokeModule(LOCATION_MODULE + "/location/" + restaurant1.getLocation().getId(), Location.class);
        if (location5 != null) {
            final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location5.getCountry().getId(), Country.class);
            if (country6 != null) {
            }
        }
    }
    final Customer customer7 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + reservation.getCustomer().getId(), Customer.class);
    if (customer7 != null) {
        final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer7.getCountry().getId(), Country.class);
        if (country8 != null) {
        }
    }
}
return reservation;


Overview

Summary

ContactDonateImprint