Examples of Course


Examples of teammates.jdo.Course

    String googleID = accounts.getUser().getNickname();

    Courses courses = Courses.inst();
    String courseID = req.getParameter(COURSE_ID);

    Course course = courses.getCourse(courseID);
    String courseName = course.getName();
    String coordinatorName = accounts.getCoordinatorName(course
        .getCoordinatorID());

    Student student = courses.getStudentWithID(courseID, googleID);

    String studentEmail = student.getEmail();
View Full Code Here

Examples of teammates.jdo.Course

    String courseName = "";
    String teamName = "";

    boolean archived = false;

    Course course = null;

    for (Student s : studentList) {
      courseID = s.getCourseID();
      course = courses.getCourse(courseID);
      courseName = course.getName();
      archived = s.isCourseArchived();
      teamName = courses.getTeamName(courseID, s.getEmail());

      courseSummaryList.add(new CourseSummaryForStudent(courseID,
          courseName, teamName, archived));
View Full Code Here

Examples of teammates.jdo.Course

      throws CourseExistsException {
    if (getCourse(ID) != null) {
      throw new CourseExistsException();
    }

    Course course = new Course(ID, name, coordinatorID);

    try {
      getPM().makePersistent(course);
    }
View Full Code Here

Examples of teammates.jdo.Course

   * @throws CourseDoesNotExistException
   *             if the course with the specified ID cannot be found
   */
  public void cleanUpCourse(String courseID)
      throws CourseDoesNotExistException {
    Course course = getCourse(courseID);

    // Check that the course exists
    if (course == null)
      throw new CourseDoesNotExistException();

View Full Code Here

Examples of teammates.jdo.Course

   *
   * @throws CourseDoesNotExistException
   *             if the course with the specified ID cannot be found
   */
  public void deleteCoordinatorCourse(String courseID) {
    Course course = getCourse(courseID);

    System.out.println("delete coordinator course");
    // Check that the course exists

    try {
View Full Code Here

Examples of teammates.jdo.Course

    // String courseName = req.getParameter("course_name");
    String googleID = req.getParameter("google_id");
    String json = req.getParameter("course");

    Gson gson = new Gson();
    Course c = gson.fromJson(json, Course.class);
    c.setCoordinatorID(googleID);

    getPM().makePersistent(c);

    resp.getWriter().write("ok");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.