Overview

Summary

ContactDonateImprint


Appendix E-11: ALERT EVENT (UI prompt)


AlertEventPortModuleMarineTraffic

Properties (7)

PropertyTypeEntityReferenceModule
(1) AlertRuleLONGAlertEventAlertRulePortModule
(2) EventDescriptionSTRINGAlertEvent
(3) GeographicalAreaLONGAlertEventGeographicalAreaGeographicalAreaModule
(4) PortLONGAlertEventPortPortModule
(5) PositionReportLONGAlertEventPositionReportVesselModule
(6) TriggeredUtcDATEAlertEvent
(7) VesselLONGAlertEventVesselVesselModule


Module Interfaces (11)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /notification/alertevent/{id}findAllNotificationOfAlertEvent(id)FleetModuleGETAlertEvent Notification
(2) /alertevent/{id}deleteAlertEventById(id)PortModuleDELETEAlertEvent
(3) /alertevent/port/{id}findAllAlertEventOfPort(id)PortModuleGETPort AlertEvent
(4) /alertevent/{id}findAlertEventById(id)PortModuleGETAlertEvent
(5) /alertevent/geographicalarea/{id}findAllAlertEventOfGeographicalArea(id)PortModuleGETGeographicalArea AlertEvent
(6) /alerteventinsertAlertEvent(alertevent)PortModulePOSTAlertEvent
(7) /alerteventfindAllAlertEvent()PortModuleGETAlertEvent
(8) /alertevent/positionreport/{id}findAllAlertEventOfPositionReport(id)PortModuleGETPositionReport AlertEvent
(9) /alertevent/alertrule/{id}findAllAlertEventOfAlertRule(id)PortModuleGETAlertRule AlertEvent
(10) /alertevent/{id}updateAlertEventById(alertevent)PortModulePUTAlertEvent
(11) /alertevent/vessel/{id}findAllAlertEventOfVessel(id)PortModuleGETVessel AlertEvent





Example:

final AlertEvent alertevent = (AlertEvent) invokeModule(PORT_MODULE + "/alertevent/" + id, AlertEvent.class);
if (alertevent != null) {
    final Vessel vessel1 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + alertevent.getVessel().getId(), Vessel.class);
    if (vessel1 != null) {
        final VesselType vesseltype2 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel1.getVesselType().getId(), VesselType.class);
        if (vesseltype2 != null) {
        }
        final Country flagcountry3 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel1.getFlagCountry().getId(), Country.class);
        if (flagcountry3 != null) {
        }
        final VesselStatus vesselstatus4 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel1.getVesselStatus().getId(), VesselStatus.class);
        if (vesselstatus4 != null) {
        }
    }
    final GeographicalArea geographicalarea5 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + alertevent.getGeographicalArea().getId(), GeographicalArea.class);
    if (geographicalarea5 != null) {
    }
    final PositionReport positionreport6 = (PositionReport) invokeModule(VESSEL_MODULE + "/positionreport/" + alertevent.getPositionReport().getId(), PositionReport.class);
    if (positionreport6 != null) {
        final AisStation aisstation7 = (AisStation) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/aisstation/" + positionreport6.getAisStation().getId(), AisStation.class);
        if (aisstation7 != null) {
            final Country country8 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + aisstation7.getCountry().getId(), Country.class);
            if (country8 != null) {
            }
        }
        final Vessel vessel9 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + positionreport6.getVessel().getId(), Vessel.class);
        if (vessel9 != null) {
            final VesselType vesseltype10 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel9.getVesselType().getId(), VesselType.class);
            if (vesseltype10 != null) {
            }
            final Country flagcountry11 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel9.getFlagCountry().getId(), Country.class);
            if (flagcountry11 != null) {
            }
            final VesselStatus vesselstatus12 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel9.getVesselStatus().getId(), VesselStatus.class);
            if (vesselstatus12 != null) {
            }
        }
        final GeographicalArea geographicalarea13 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + positionreport6.getGeographicalArea().getId(), GeographicalArea.class);
        if (geographicalarea13 != null) {
        }
    }
    final AlertRule alertrule14 = (AlertRule) invokeModule(PORT_MODULE + "/alertrule/" + alertevent.getAlertRule().getId(), AlertRule.class);
    if (alertrule14 != null) {
        final UserAccount useraccount15 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + alertrule14.getUserAccount().getId(), UserAccount.class);
        if (useraccount15 != null) {
            final Country country16 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + useraccount15.getCountry().getId(), Country.class);
            if (country16 != null) {
            }
        }
        final GeographicalArea geographicalarea17 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + alertrule14.getGeographicalArea().getId(), GeographicalArea.class);
        if (geographicalarea17 != null) {
        }
        final Vessel vessel18 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + alertrule14.getVessel().getId(), Vessel.class);
        if (vessel18 != null) {
            final VesselType vesseltype19 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel18.getVesselType().getId(), VesselType.class);
            if (vesseltype19 != null) {
            }
            final Country flagcountry20 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel18.getFlagCountry().getId(), Country.class);
            if (flagcountry20 != null) {
            }
            final VesselStatus vesselstatus21 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel18.getVesselStatus().getId(), VesselStatus.class);
            if (vesselstatus21 != null) {
            }
        }
        final Port port22 = (Port) invokeModule(PORT_MODULE + "/port/" + alertrule14.getPort().getId(), Port.class);
        if (port22 != null) {
            final Country country23 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + port22.getCountry().getId(), Country.class);
            if (country23 != null) {
            }
        }
    }
    final Port port24 = (Port) invokeModule(PORT_MODULE + "/port/" + alertevent.getPort().getId(), Port.class);
    if (port24 != null) {
        final Country country25 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + port24.getCountry().getId(), Country.class);
        if (country25 != null) {
        }
    }
}
return alertevent;


Overview

Summary

ContactDonateImprint