Overview

Summary

ContactDonateImprint


Appendix E-13: ALERT RULE (UI prompt)


AlertRulePortModuleMarineTraffic

Properties (10)

PropertyTypeEntityReferenceModule
(1) AlertTypeSTRINGAlertRule
(2) CreatedUtcDATEAlertRule
(3) DescriptionSTRINGAlertRule
(4) GeographicalAreaLONGAlertRuleGeographicalAreaGeographicalAreaModule
(5) IsActiveBOOLAlertRule
(6) NameSTRINGAlertRule
(7) PortLONGAlertRulePortPortModule
(8) ThresholdSpeedSTRINGAlertRule
(9) UserAccountLONGAlertRuleUserAccountUserAccountModule
(10) VesselLONGAlertRuleVesselVesselModule


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /alertrule/port/{id}findAllAlertRuleOfPort(id)PortModuleGETPort AlertRule
(2) /alertruleinsertAlertRule(alertrule)PortModulePOSTAlertRule
(3) /alertrule/{id}updateAlertRuleById(alertrule)PortModulePUTAlertRule
(4) /alertrule/{id}deleteAlertRuleById(id)PortModuleDELETEAlertRule
(5) /alertrule/geographicalarea/{id}findAllAlertRuleOfGeographicalArea(id)PortModuleGETGeographicalArea AlertRule
(6) /alertrule/{id}findAlertRuleById(id)PortModuleGETAlertRule
(7) /alertrule/useraccount/{id}findAllAlertRuleOfUserAccount(id)PortModuleGETUserAccount AlertRule
(8) /alertrulefindAllAlertRule()PortModuleGETAlertRule
(9) /alertevent/alertrule/{id}findAllAlertEventOfAlertRule(id)PortModuleGETAlertRule AlertEvent
(10) /alertrule/vessel/{id}findAllAlertRuleOfVessel(id)PortModuleGETVessel AlertRule





Example:

final AlertRule alertrule = (AlertRule) invokeModule(PORT_MODULE + "/alertrule/" + id, AlertRule.class);
if (alertrule != null) {
    final UserAccount useraccount1 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + alertrule.getUserAccount().getId(), UserAccount.class);
    if (useraccount1 != null) {
        final Country country2 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + useraccount1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final GeographicalArea geographicalarea3 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + alertrule.getGeographicalArea().getId(), GeographicalArea.class);
    if (geographicalarea3 != null) {
    }
    final Vessel vessel4 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + alertrule.getVessel().getId(), Vessel.class);
    if (vessel4 != null) {
        final VesselType vesseltype5 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel4.getVesselType().getId(), VesselType.class);
        if (vesseltype5 != null) {
        }
        final Country flagcountry6 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel4.getFlagCountry().getId(), Country.class);
        if (flagcountry6 != null) {
        }
        final VesselStatus vesselstatus7 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel4.getVesselStatus().getId(), VesselStatus.class);
        if (vesselstatus7 != null) {
        }
    }
    final Port port8 = (Port) invokeModule(PORT_MODULE + "/port/" + alertrule.getPort().getId(), Port.class);
    if (port8 != null) {
        final Country country9 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + port8.getCountry().getId(), Country.class);
        if (country9 != null) {
        }
    }
}
return alertrule;


Overview

Summary

ContactDonateImprint