Examples of Submission


Examples of teammates.jdo.Submission

        justification = new Text(req.getParameter(STUDENT_JUSTIFICATION
            + x));
        commentsToStudent = new Text(
            req.getParameter(STUDENT_COMMENTSTOSTUDENT + x));

        submissionList.add(new Submission(fromStudent, toStudent,
            courseID, evaluationName, teamName, points,
            justification, commentsToStudent));
      }

      evaluations.editSubmissions(submissionList);
View Full Code Here

Examples of teammates.jdo.Submission

      toStudent = req.getParameter(STUDENT_TOSTUDENT + x);
      points = Integer.parseInt(req.getParameter(STUDENT_POINTS + x));
      justification = req.getParameter(STUDENT_JUSTIFICATION + x);
      commentsToStudent = req.getParameter(STUDENT_COMMENTSTOSTUDENT + x);

      submissionList.add(new Submission(fromStudent, toStudent, courseID,
          evaluationName, teamName, points, new Text(justification),
          new Text(commentsToStudent)));
    }

    Evaluations evaluations = Evaluations.inst();
View Full Code Here

Examples of teammates.jdo.Submission

        justification = new Text(req.getParameter(STUDENT_JUSTIFICATION
            + x));
        commentsToStudent = new Text(
            req.getParameter(STUDENT_COMMENTSTOSTUDENT + x));

        submissionList.add(new Submission(fromStudent, toStudent,
            courseID, evaluationName, teamName, points,
            justification, commentsToStudent));
      }

      evaluations.editSubmissions(submissionList);
View Full Code Here

Examples of teammates.jdo.Submission

  public boolean createSubmissions(String courseID, String evaluationName) {
    Courses courses = Courses.inst();
    List<Student> studentList = courses.getStudentList(courseID);

    List<Submission> submissionList = new ArrayList<Submission>();
    Submission submission = null;

    for (Student sx : studentList) {
      for (Student sy : studentList) {
        if (sx.getTeamName().equals(sy.getTeamName())) {
          submission = new Submission(sx.getEmail(), sy.getEmail(),
              courseID, evaluationName, sx.getTeamName());
          submissionList.add(submission);
        }

      }
View Full Code Here

Examples of teammates.jdo.Submission

   * @param submissionList
   *            the list of submissions to be edited (Pre-condition: The
   *            submission list must be valid)
   */
  public void editSubmissions(List<Submission> submissionList) {
    Submission submission = null;

    for (Submission s : submissionList) {
      submission = getSubmission(s.getCourseID(), s.getEvaluationName(),
          s.getTeamName(), s.getToStudent(), s.getFromStudent());

      submission.setPoints(s.getPoints());
      submission.setJustification(s.getJustification());
      submission.setCommentsToStudent(s.getCommentsToStudent());

    }
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.Submission

    return (Document)manager.submit(submittables);
  }

  @Override
  public int compareTo(Object o) {
    Submission t = (Submission)o;
    if (getId() < t.getId()) return -1;
    if (getId() > t.getId()) return 1;
    return 0;
  }
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.