Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

(IOR = Instructor of Record)
(CMA = CourseManagementAdministration)
(CMS = CourseManagementService)

assumptions or prereq's

Roles for instructors of different ilks

  • InstructorOfRecord
  • Instructor
  • TA
    ///need to look at whether only IOR can grade, if so then, other roles may need to be qualified more WRT grading
Code Block
titleSomeClass.java
CMA.createCourseSet(

		Calendar startCal = Calendar.getInstance();
		Calendar endCal = Calendar.getInstance();
		
		startCal.set(2006, 8, 1);
		endCal.set(2006, 12, 1);
		
		String deptOrSchoolEid  = "Mythical Dept/School EID","; /// can we use college codes for courseset id's?
		String category = "L&S"; 
		
		String noParent = null;
		String courseSetTitle = "Inhumanities",;
		String description = "This Department has a lot of courses in varying SUBJ codes", "L&S", null);
CMA.createAcademicSession("200710",;

		String academicSessionEid = "200710";
		String academicSessionTitle = "Fall QTR 2007",;
		String academicSessionDesc = "Fall Quarter 2007",;
new Date("Sept. 2X, 2007"), new Date("Dec. 2Y, 2007"));

1. Unique Course

Example: ENG 121 001 Smit

One course with one section for a term

Code Block
titleSomeClass.java


CMA.createCanonicalCourse(		
		String canonicalCourseEid = "ENG 121";
		String canonicalCourseTitle = "ENG 121", "ENG 121",;
		String canonicalCourseDescr = "What more can be said?";

		cmAdmin.createCourseSet(deptOrSchoolEid, courseSetTitle, description, category, noParent);
CMA.addCanonicalCourseToCourseSet("Mythical Dept/School EID", "ENG 121");// can or should do both or not?

CMA
		cmAdmin.createAcademicSession(academicSessionEid, academicSessionTitle, academicSessionDesc,startCal.getTime(), endCal.getTime());
		cmAdmin.createCanonicalCourse(canonicalCourseEid, canonicalCourseTitle, canonicalCourseDescr);
		cmAdmin.addCanonicalCourseToCourseSet(deptOrSchoolEid, canonicalCourseEid);

/// query for enrollment sets
		foreach enrollmentSet in enrollmentSets { 

			cmAdmin.createCourseOffering("ENG 121 200710 001", "English For The Toothless", "Finally a class for the tooth challangedchallenged.", 
		   + "10 2007"academicSessionEid, "ENG 121", new Date("Sept. 26, 2007), new Date("Dec. 21, 2007"))
CMA.addCourseOfferingCourseToCourseSet("Mythical Dept/School EID", "ENG");
//		 can or
should		 do both or not?

CMAcmAdmin.createEnrollmentSet("20071021213", "Fall QTR 2007 Roster", "Fall QTR 2007 Enrollments", "L&S undergrads", "3", 
		                    "ENG 121 200710", null /* IORs to be added later */);

		  ///may need to make more unique ID's here, depending on impl details
		    cmAdmin.createSection("ENG 121 200710 001", String title, String description,
					"Lecture", null, "ENG 121 200710",
					"20071021213"); 

		  Vector officialGraderEids = new Vector();
		  List instructors = provider.etUserswithroles(new String[] {"InstructorOfRecord","Instructor", "TA"});
		  foreach student{
CMA.addOrUpdateEnrollment(String student.getId, "20071021213", "Active", "3", "Standard Letter Plus-Minus") 
}

// --- now with a section instructor  in instructors {
		    officialGraderEids.add(instructor);
		   role = provider?.getRoleInAuthzGroup(insructor);
		   Membership member =  new MemberShipCmImpl(instructor, role, CMA.getCourseOffering("ENG 121 200710", "active"}

		  cmAdmin.addOrUpdateSectionMembership(member.getUserId(), member.getRole(), "ENG 121 200710 001", member.getSTatus() );

		  cmAdmin.newSectionMeeting("ENG 121 200710 001", "Klieber 100000B", "7D839D00SA0S", "Meets next to the horse barn")



		 /// by convention UCD might adopt the strat of using an time object ID in the time string

		} // end foreach enrollmentSet in ...

1. Unique Course

Example: ENG 121 001 Smit

One course with one section for a term

Code Block
titleSomeClass.java


CMA.createCanonicalCourse("ENG 121", "ENG 121", "What more can be said?");
CMA.addCanonicalCourseToCourseSet("Mythical Dept/School EID"deptOrSchool, "ENG 121");// can or should do both or not?


foreach enrollmentSet in enrollmentSets { 

  CMA.createCourseOffering("ENG 121 200710", "English For The Toothless", "Finally a class for the tooth challangedchallenged.", 
   + "10 2007200710", "ENG 121", new Date("Sept. 26, 2007), new Date("Dec. 21, 2007"));
  
 ; CMA.createEnrollmentSet("20071021213", "Fall QTR 2007 Roster", "Fall QTR 2007 Enrollments", "L&S undergrads", "3", 
                    "ENG 121 200710", officialGraderEids null /* IORs to be added later */);

  ///may need to make more unique ID's here, depending on impl details
  CMA.createSection("ENG 121 200710 001", String title, String description,
			"Lecture", null, "ENG 121 200710",
			"20071021213"); 

  Vector officialGraderEids = new Vector();
  List instructors = provider.etUserswithroles(new String[] {"InstructorOfRecord","Instructor", "TA"});
  foreach instructor  in instructors {
    officialGraderEids.add(instructor);
   role = provider?.getRoleInAuthzGroup(insructor);
   Membership member =  new MemberShipCmImpl(instructor, role, CMA.getCourseOffering("ENG 121 200710", "active"}

  CMA.addOrUpdateSectionMembership(member.getUserId(), member.getRole(), "ENG 121 200710 001", member.getSTatus() );

  CMA.newSectionMeeting("ENG 121 200710 001", "Klieber 100000B", "7D839D00SA0S", "Meets next to the horse barn")



 /// by convention UCD might adopt the strat of using an time object ID in the time string

} // end foreach enrollmentSet in ...

2. Mutliple Sections with single IOR per section

...