Overview

Summary

ContactDonateImprint


Appendix E-33: MISSION (UI prompt)


MissionMissionModuleZeppelinFlight

Properties (10)

PropertyTypeEntityReferenceModule
(1) DescriptionSTRINGMission
(2) DestinationLocationINTMissionLocationLocationModule
(3) EndDateTimeDATEMission
(4) MilitaryBranchINTMissionMilitaryBranchCountryModule
(5) MissionTypeINTMissionMissionTypeMissionModule
(6) OriginLocationINTMissionLocationLocationModule
(7) OutcomeSTRINGMission
(8) StartDateTimeDATEMission
(9) WarINTMissionWarMissionModule
(10) ZeppelinINTMissionZeppelinZeppelinModule


Module Interfaces (12)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /accident/mission/{id}findAllAccidentOfMission(id)LocationModuleGETMission Accident
(2) /mission/militarybranch/{id}findAllMissionOfMilitaryBranch(id)MissionModuleGETMilitaryBranch Mission
(3) /missionfindAllMission()MissionModuleGETMission
(4) /mission/war/{id}findAllMissionOfWar(id)MissionModuleGETWar Mission
(5) /mission/{id}findMissionById(id)MissionModuleGETMission
(6) /missioninsertMission(mission)MissionModulePOSTMission
(7) /mission/{id}updateMissionById(mission)MissionModulePUTMission
(8) /mission/zeppelin/{id}findAllMissionOfZeppelin(id)MissionModuleGETZeppelin Mission
(9) /mission/missiontype/{id}findAllMissionOfMissionType(id)MissionModuleGETMissionType Mission
(10) /mission/{id}deleteMissionById(id)MissionModuleDELETEMission
(11) /mission/destinationlocation/{id}findAllMissionOfDestinationLocation(id)MissionModuleGETLocation Mission
(12) /mission/originlocation/{id}findAllMissionOfOriginLocation(id)MissionModuleGETLocation Mission





Example:

final Mission mission = (Mission) invokeModule(MISSION_MODULE + "/mission/" + id, Mission.class);
if (mission != null) {
    final War war1 = (War) invokeModule(MISSION_MODULE + "/war/" + mission.getWar().getId(), War.class);
    if (war1 != null) {
    }
    final MissionType missiontype2 = (MissionType) invokeModule(MISSION_MODULE + "/missiontype/" + mission.getMissionType().getId(), MissionType.class);
    if (missiontype2 != null) {
    }
    final Location destinationlocation3 = (Location) invokeModule(LOCATION_MODULE + "/location/" + mission.getDestinationLocation().getId(), Location.class);
    if (destinationlocation3 != null) {
        final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + destinationlocation3.getCountry().getId(), Country.class);
        if (country4 != null) {
        }
    }
    final Location originlocation5 = (Location) invokeModule(LOCATION_MODULE + "/location/" + mission.getOriginLocation().getId(), Location.class);
    if (originlocation5 != null) {
        final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + originlocation5.getCountry().getId(), Country.class);
        if (country6 != null) {
        }
    }
    final Zeppelin zeppelin7 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + mission.getZeppelin().getId(), Zeppelin.class);
    if (zeppelin7 != null) {
        final ZeppelinClass zeppelinclass8 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin7.getZeppelinClass().getId(), ZeppelinClass.class);
        if (zeppelinclass8 != null) {
            final Organization manufacturer9 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass8.getManufacturer().getId(), Organization.class);
            if (manufacturer9 != null) {
                final Location headquarterslocation10 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer9.getHeadquartersLocation().getId(), Location.class);
                if (headquarterslocation10 != null) {
                    final Country country11 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation10.getCountry().getId(), Country.class);
                    if (country11 != null) {
                    }
                }
            }
        }
        final Location homebaselocation12 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin7.getHomeBaseLocation().getId(), Location.class);
        if (homebaselocation12 != null) {
            final Country country13 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation12.getCountry().getId(), Country.class);
            if (country13 != null) {
            }
        }
        final Organization operator14 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin7.getOperator().getId(), Organization.class);
        if (operator14 != null) {
            final Location headquarterslocation15 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator14.getHeadquartersLocation().getId(), Location.class);
            if (headquarterslocation15 != null) {
                final Country country16 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation15.getCountry().getId(), Country.class);
                if (country16 != null) {
                }
            }
        }
    }
    final MilitaryBranch militarybranch17 = (MilitaryBranch) invokeModule(COUNTRY_MODULE + "/militarybranch/" + mission.getMilitaryBranch().getId(), MilitaryBranch.class);
    if (militarybranch17 != null) {
        final Country country18 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + militarybranch17.getCountry().getId(), Country.class);
        if (country18 != null) {
        }
    }
}
return mission;


Overview

Summary

ContactDonateImprint