Overview

Summary

ContactDonateImprint


Appendix E-33: CREW ASSIGNMENT (UI prompt)


CrewAssignmentPersonModuleSpaceX

Properties (4)

PropertyTypeEntityReferenceModule
(1) CrewedFlightINTCrewAssignmentCrewedFlightMissionModule
(2) NotesSTRINGCrewAssignment
(3) PersonINTCrewAssignmentPersonPersonModule
(4) RoleSTRINGCrewAssignment


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /crewassignment/{id}updateCrewAssignmentById(crewassignment)PersonModulePUTCrewAssignment
(2) /crewassignment/{id}findCrewAssignmentById(id)PersonModuleGETCrewAssignment
(3) /crewassignment/person/{id}findAllCrewAssignmentOfPerson(id)PersonModuleGETPerson CrewAssignment
(4) /crewassignment/{id}deleteCrewAssignmentById(id)PersonModuleDELETECrewAssignment
(5) /crewassignment/crewedflight/{id}findAllCrewAssignmentOfCrewedFlight(id)PersonModuleGETCrewedFlight CrewAssignment
(6) /crewassignmentinsertCrewAssignment(crewassignment)PersonModulePOSTCrewAssignment
(7) /crewassignmentfindAllCrewAssignment()PersonModuleGETCrewAssignment





Example:

final CrewAssignment crewassignment = (CrewAssignment) invokeModule(PERSON_MODULE + "/crewassignment/" + id, CrewAssignment.class);
if (crewassignment != null) {
    final Person person1 = (Person) invokeModule(PERSON_MODULE + "/person/" + crewassignment.getPerson().getId(), Person.class);
    if (person1 != null) {
    }
    final CrewedFlight crewedflight2 = (CrewedFlight) invokeModule(MISSION_MODULE + "/crewedflight/" + crewassignment.getCrewedFlight().getId(), CrewedFlight.class);
    if (crewedflight2 != null) {
        final Mission mission3 = (Mission) invokeModule(MISSION_MODULE + "/mission/" + crewedflight2.getMission().getId(), Mission.class);
        if (mission3 != null) {
            final Spacecraft spacecraft4 = (Spacecraft) invokeModule(MISSION_MODULE + "/spacecraft/" + mission3.getSpacecraft().getId(), Spacecraft.class);
            if (spacecraft4 != null) {
                final Company company5 = (Company) invokeModule(COMPANY_MODULE + "/company/" + spacecraft4.getCompany().getId(), Company.class);
                if (company5 != null) {
                }
            }
            final Contract contract6 = (Contract) invokeModule(COMPANY_MODULE + "/contract/" + mission3.getContract().getId(), Contract.class);
            if (contract6 != null) {
                final Program program7 = (Program) invokeModule(COMPANY_MODULE + "/program/" + contract6.getProgram().getId(), Program.class);
                if (program7 != null) {
                    final Company company8 = (Company) invokeModule(COMPANY_MODULE + "/company/" + program7.getCompany().getId(), Company.class);
                    if (company8 != null) {
                    }
                }
                final Company company9 = (Company) invokeModule(COMPANY_MODULE + "/company/" + contract6.getCompany().getId(), Company.class);
                if (company9 != null) {
                }
                final Customer customer10 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + contract6.getCustomer().getId(), Customer.class);
                if (customer10 != null) {
                }
            }
            final Customer customer11 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + mission3.getCustomer().getId(), Customer.class);
            if (customer11 != null) {
            }
            final Company company12 = (Company) invokeModule(COMPANY_MODULE + "/company/" + mission3.getCompany().getId(), Company.class);
            if (company12 != null) {
            }
            final LaunchVehicle launchvehicle13 = (LaunchVehicle) invokeModule(LAUNCH_VEHICLE_MODULE + "/launchvehicle/" + mission3.getLaunchVehicle().getId(), LaunchVehicle.class);
            if (launchvehicle13 != null) {
                final Company company14 = (Company) invokeModule(COMPANY_MODULE + "/company/" + launchvehicle13.getCompany().getId(), Company.class);
                if (company14 != null) {
                }
            }
            final LandingSite landingsite15 = (LandingSite) invokeModule(MISSION_MODULE + "/landingsite/" + mission3.getLandingSite().getId(), LandingSite.class);
            if (landingsite15 != null) {
                final Facility facility16 = (Facility) invokeModule(FACILITY_MODULE + "/facility/" + landingsite15.getFacility().getId(), Facility.class);
                if (facility16 != null) {
                    final Company company17 = (Company) invokeModule(COMPANY_MODULE + "/company/" + facility16.getCompany().getId(), Company.class);
                    if (company17 != null) {
                    }
                }
            }
            final Program program18 = (Program) invokeModule(COMPANY_MODULE + "/program/" + mission3.getProgram().getId(), Program.class);
            if (program18 != null) {
                final Company company19 = (Company) invokeModule(COMPANY_MODULE + "/company/" + program18.getCompany().getId(), Company.class);
                if (company19 != null) {
                }
            }
            final MissionType missiontype20 = (MissionType) invokeModule(MISSION_MODULE + "/missiontype/" + mission3.getMissionType().getId(), MissionType.class);
            if (missiontype20 != null) {
            }
            final Orbit orbit21 = (Orbit) invokeModule(MISSION_MODULE + "/orbit/" + mission3.getOrbit().getId(), Orbit.class);
            if (orbit21 != null) {
            }
            final LaunchSite launchsite22 = (LaunchSite) invokeModule(FACILITY_MODULE + "/launchsite/" + mission3.getLaunchSite().getId(), LaunchSite.class);
            if (launchsite22 != null) {
                final Facility facility23 = (Facility) invokeModule(FACILITY_MODULE + "/facility/" + launchsite22.getFacility().getId(), Facility.class);
                if (facility23 != null) {
                    final Company company24 = (Company) invokeModule(COMPANY_MODULE + "/company/" + facility23.getCompany().getId(), Company.class);
                    if (company24 != null) {
                    }
                }
            }
        }
    }
}
return crewassignment;


Overview

Summary

ContactDonateImprint