Overview

Summary

ContactDonateImprint


Appendix E-16: NOTIFICATION (UI prompt)


NotificationFleetModuleMarineTraffic

Properties (8)

PropertyTypeEntityReferenceModule
(1) AlertEventLONGNotificationAlertEventPortModule
(2) BodySTRINGNotification
(3) ChannelSTRINGNotification
(4) DeliveryStatusSTRINGNotification
(5) ErrorMessageSTRINGNotification
(6) SentUtcDATENotification
(7) SubjectSTRINGNotification
(8) UserAccountLONGNotificationUserAccountUserAccountModule


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /notificationfindAllNotification()FleetModuleGETNotification
(2) /notification/useraccount/{id}findAllNotificationOfUserAccount(id)FleetModuleGETUserAccount Notification
(3) /notification/{id}updateNotificationById(notification)FleetModulePUTNotification
(4) /notification/{id}findNotificationById(id)FleetModuleGETNotification
(5) /notificationinsertNotification(notification)FleetModulePOSTNotification
(6) /notification/alertevent/{id}findAllNotificationOfAlertEvent(id)FleetModuleGETAlertEvent Notification
(7) /notification/{id}deleteNotificationById(id)FleetModuleDELETENotification





Example:

final Notification notification = (Notification) invokeModule(FLEET_MODULE + "/notification/" + id, Notification.class);
if (notification != null) {
    final UserAccount useraccount1 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + notification.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 AlertEvent alertevent3 = (AlertEvent) invokeModule(PORT_MODULE + "/alertevent/" + notification.getAlertEvent().getId(), AlertEvent.class);
    if (alertevent3 != null) {
        final Vessel vessel4 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + alertevent3.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 GeographicalArea geographicalarea8 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + alertevent3.getGeographicalArea().getId(), GeographicalArea.class);
        if (geographicalarea8 != null) {
        }
        final PositionReport positionreport9 = (PositionReport) invokeModule(VESSEL_MODULE + "/positionreport/" + alertevent3.getPositionReport().getId(), PositionReport.class);
        if (positionreport9 != null) {
            final AisStation aisstation10 = (AisStation) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/aisstation/" + positionreport9.getAisStation().getId(), AisStation.class);
            if (aisstation10 != null) {
                final Country country11 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + aisstation10.getCountry().getId(), Country.class);
                if (country11 != null) {
                }
            }
            final Vessel vessel12 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + positionreport9.getVessel().getId(), Vessel.class);
            if (vessel12 != null) {
                final VesselType vesseltype13 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel12.getVesselType().getId(), VesselType.class);
                if (vesseltype13 != null) {
                }
                final Country flagcountry14 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel12.getFlagCountry().getId(), Country.class);
                if (flagcountry14 != null) {
                }
                final VesselStatus vesselstatus15 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel12.getVesselStatus().getId(), VesselStatus.class);
                if (vesselstatus15 != null) {
                }
            }
            final GeographicalArea geographicalarea16 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + positionreport9.getGeographicalArea().getId(), GeographicalArea.class);
            if (geographicalarea16 != null) {
            }
        }
        final AlertRule alertrule17 = (AlertRule) invokeModule(PORT_MODULE + "/alertrule/" + alertevent3.getAlertRule().getId(), AlertRule.class);
        if (alertrule17 != null) {
            final UserAccount useraccount18 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + alertrule17.getUserAccount().getId(), UserAccount.class);
            if (useraccount18 != null) {
                final Country country19 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + useraccount18.getCountry().getId(), Country.class);
                if (country19 != null) {
                }
            }
            final GeographicalArea geographicalarea20 = (GeographicalArea) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/geographicalarea/" + alertrule17.getGeographicalArea().getId(), GeographicalArea.class);
            if (geographicalarea20 != null) {
            }
            final Vessel vessel21 = (Vessel) invokeModule(VESSEL_MODULE + "/vessel/" + alertrule17.getVessel().getId(), Vessel.class);
            if (vessel21 != null) {
                final VesselType vesseltype22 = (VesselType) invokeModule(VESSEL_MODULE + "/vesseltype/" + vessel21.getVesselType().getId(), VesselType.class);
                if (vesseltype22 != null) {
                }
                final Country flagcountry23 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + vessel21.getFlagCountry().getId(), Country.class);
                if (flagcountry23 != null) {
                }
                final VesselStatus vesselstatus24 = (VesselStatus) invokeModule(GEOGRAPHICAL_AREA_MODULE + "/vesselstatus/" + vessel21.getVesselStatus().getId(), VesselStatus.class);
                if (vesselstatus24 != null) {
                }
            }
            final Port port25 = (Port) invokeModule(PORT_MODULE + "/port/" + alertrule17.getPort().getId(), Port.class);
            if (port25 != null) {
                final Country country26 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + port25.getCountry().getId(), Country.class);
                if (country26 != null) {
                }
            }
        }
        final Port port27 = (Port) invokeModule(PORT_MODULE + "/port/" + alertevent3.getPort().getId(), Port.class);
        if (port27 != null) {
            final Country country28 = (Country) invokeModule(USER_ACCOUNT_MODULE + "/country/" + port27.getCountry().getId(), Country.class);
            if (country28 != null) {
            }
        }
    }
}
return notification;


Overview

Summary

ContactDonateImprint