Overview

Summary

ContactDonateImprint


Appendix E-1: ALERT (UI prompt)


AlertFlightModuleFlightRadar

Properties (6)

PropertyTypeEntityReferenceModule
(1) ActiveBOOLAlert
(2) CreatedAtUtcDATEAlert
(3) FlightINTAlertFlightFlightModule
(4) TriggerConditionJsonSTRINGAlert
(5) TypeSTRINGAlert
(6) UserAccountINTAlertUserAccountUserAccountModule


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /alert/{id}updateAlertById(alert)FlightModulePUTAlert
(2) /alert/{id}deleteAlertById(id)FlightModuleDELETEAlert
(3) /alertfindAllAlert()FlightModuleGETAlert
(4) /alert/{id}findAlertById(id)FlightModuleGETAlert
(5) /alert/useraccount/{id}findAllAlertOfUserAccount(id)FlightModuleGETUserAccount Alert
(6) /alertinsertAlert(alert)FlightModulePOSTAlert
(7) /alert/flight/{id}findAllAlertOfFlight(id)FlightModuleGETFlight Alert





Example:

final Alert alert = (Alert) invokeModule(FLIGHT_MODULE + "/alert/" + id, Alert.class);
if (alert != null) {
    final Flight flight1 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + alert.getFlight().getId(), Flight.class);
    if (flight1 != null) {
        final Airport arrivalairport2 = (Airport) invokeModule(FLIGHT_MODULE + "/airport/" + flight1.getArrivalAirport().getId(), Airport.class);
        if (arrivalairport2 != null) {
        }
        final Airport departureairport3 = (Airport) invokeModule(FLIGHT_MODULE + "/airport/" + flight1.getDepartureAirport().getId(), Airport.class);
        if (departureairport3 != null) {
        }
        final Aircraft aircraft4 = (Aircraft) invokeModule(AIRCRAFT_MODULE + "/aircraft/" + flight1.getAircraft().getId(), Aircraft.class);
        if (aircraft4 != null) {
            final Airline airline5 = (Airline) invokeModule(FLIGHT_MODULE + "/airline/" + aircraft4.getAirline().getId(), Airline.class);
            if (airline5 != null) {
            }
            final AircraftModel aircraftmodel6 = (AircraftModel) invokeModule(AIRCRAFT_MODULE + "/aircraftmodel/" + aircraft4.getAircraftModel().getId(), AircraftModel.class);
            if (aircraftmodel6 != null) {
            }
        }
        final Airline airline7 = (Airline) invokeModule(FLIGHT_MODULE + "/airline/" + flight1.getAirline().getId(), Airline.class);
        if (airline7 != null) {
        }
    }
    final UserAccount useraccount8 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + alert.getUserAccount().getId(), UserAccount.class);
    if (useraccount8 != null) {
    }
}
return alert;


Overview

Summary

ContactDonateImprint