Examples of Student


Examples of projectatlast.student.Student

    Date s1 = cal.getTime();
    int randDuration = new Random().nextInt(7*24*60*60);
    cal.add(Calendar.SECOND, randDuration);
    Date e1 = cal.getTime();

    Student student = AuthController.getCurrentStudent();
    Course analyse = Registry.courseFinder().getCourse("H01A0B");
    Activity a1 = new StudyActivity(student, "Exercises", analyse);
    a1.setStart(s1);
    a1.setEnd(e1);
    ActivityController.put(true, a1);
View Full Code Here

Examples of sis.studentinfo.Student

    input.append(line(StudentUI.QUIT_OPTION));
  }
 
  private void assertStudents(List<Student> students) {
    assertEquals(1, students.size());
    Student student = students.get(0);
    assertEquals(name, student.getName());
  }
View Full Code Here

Examples of teammates.jdo.Student

    // Create dud Student objects with e-mail provided by tester
    List<Student> studentList = new ArrayList<Student>();

    for (int x = 0; x < 40; x++) {
      Student s = new Student(email, "Admin", ("Comments"),
          "Test Course", "Test TeamName");
      s.setRegistrationKey((long) 1111);
      studentList.add(s);
    }

    // Send the keys to the dud Student objects with e-mail provided by
    // tester
View Full Code Here

Examples of teammates.jdo.Student

    Evaluations evaluations = Evaluations.inst();

    System.out.println(newEmail + "|" + email);

    // Check duplicate email
    Student dupStudent = courses.getStudentWithEmail(courseID, newEmail);
    if (dupStudent != null && !dupStudent.getID().equals(newGoogleID)) {
      System.out.println(courses.getStudentWithEmail(courseID, newEmail)
          .getID());
      System.out.println(newGoogleID);

      resp.getWriter().write(
View Full Code Here

Examples of teammates.jdo.Student

        else {
          comments = "";
        }

        if (!emails.contains(email)) {
          studentList.add(new Student(email, name, comments,
              courseID, teamName));
          emails.add(email);
        }
      }
View Full Code Here

Examples of teammates.jdo.Student

    String fromStudentName = "";
    String toStudentName = "";

    String fromStudentComments = null;
    String toStudentComments = null;
    Student student = null;

    float pointsBumpRatio = 0;

    Courses courses = Courses.inst();
    List<Student> studentList = courses.getStudentList(courseID);

    for (Submission s : submissionList) {
      student = null;
      // search for student
      for (Student stu : studentList) {
        if (stu.getEmail().equals(s.getFromStudent())) {
          student = stu;
        }
      }
      if (student == null) {
        fromStudentName = "[deleted]" + s.getFromStudent();
        fromStudentComments = "";
      } else {
        fromStudentName = student.getName();
        fromStudentComments = student.getComments();
      }

      student = courses.getStudentWithEmail(courseID, s.getToStudent());
      if (student == null) {
        toStudentName = "[deleted]" + s.getToStudent();
        toStudentComments = ("");
      } else {
        toStudentName = student.getName();
        toStudentComments = student.getComments();
      }

      // filter submisstion list by fromStudent
      List<Submission> fromList = new LinkedList<Submission>();
      for (Submission fs : submissionList) {
View Full Code Here

Examples of teammates.jdo.Student

    String courseID = req.getParameter(COURSE_ID);
    String email = req.getParameter(STUDENT_EMAIL);

    Course course = courses.getCourse(courseID);
    Student student = courses.getStudentWithEmail(courseID, email);

    List<Student> studentList = new ArrayList<Student>();
    studentList.add(student);

    String courseName = course.getName();
View Full Code Here

Examples of teammates.jdo.Student

    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();
    String studentName = student.getName();
    String teamName = courses.getTeamName(courseID, studentEmail);

    ArrayList<String> teammateList = new ArrayList<String>();
    List<Student> studentList = courses.getStudentList(courseID);
View Full Code Here

Examples of teammates.jdo.Student

    // evaluation is published and open evaluations are not
    // returned to student
    List<Evaluation> filteredEvaluationList = new ArrayList<Evaluation>();

    String email = "";
    Student student = null;

    Calendar now = Calendar.getInstance();
    Calendar start = Calendar.getInstance();
    Calendar deadline = Calendar.getInstance();

    for (Evaluation e : evaluationList) {
      // Fix the time zone accordingly
      now.add(Calendar.MILLISECOND,
          (int) (60 * 60 * 1000 * e.getTimeZone()));

      student = courses.getStudentWithID(e.getCourseID(), googleID);

      if (student != null) {
        email = student.getEmail();

        start.setTime(e.getStart());
        deadline.setTime(e.getDeadline());

        if (e.isPublished()) {
          filteredEvaluationList.add(e);
        }

        else if (now.after(deadline) && !student.isCourseArchived()) {
          filteredEvaluationList.add(e);
        }

        else {
          if (evaluations.isEvaluationSubmitted(e, email)
              && (now.after(start))
              && !student.isCourseArchived()) {
            filteredEvaluationList.add(e);
          }
        }
      }

View Full Code Here

Examples of teammates.jdo.Student

    // Filter evaluationList - make sure archived, submitted and closed
    // evaluations are not returned to student
    List<Evaluation> filteredEvaluationList = new ArrayList<Evaluation>();

    String email = "";
    Student student = null;

    Calendar now = Calendar.getInstance();
    Calendar start = Calendar.getInstance();
    Calendar deadline = Calendar.getInstance();

    for (Evaluation e : evaluationList) {
      // Fix the time zone accordingly
      now.add(Calendar.MILLISECOND,
          (int) (60 * 60 * 1000 * e.getTimeZone()));

      student = courses.getStudentWithID(e.getCourseID(), googleID);

      if (student != null) {
        email = student.getEmail();

        start.setTime(e.getStart());
        deadline.setTime(e.getDeadline());

        if (!evaluations.isEvaluationSubmitted(e, email)
            && (now.after(start) && now.before(deadline))
            && !student.isCourseArchived()) {
          filteredEvaluationList.add(e);
        }
      }

      else {
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.