Package teammates.jdo

Examples of teammates.jdo.TeamFormingSession


    //by kalpit
    //TODO: may have to change when getTeamFormingSession changes
    Date dummyDeadline = null;
    TeamForming teamForming = TeamForming.inst();
    TeamFormingSession teamFormingSession = teamForming.getTeamFormingSession(courseID, dummyDeadline);
   
    Date deadline = teamFormingSession.getDeadline();

    teamForming.remindStudents(studentsToRemindList, courseID, deadline);
  }
View Full Code Here


  private void coordinatorGetTeamFormingSession() throws IOException {
    String courseID = req.getParameter("courseid");
    Date dummyDeadline = null;
   
    TeamForming teamForming = TeamForming.inst();
    TeamFormingSession teamFormingSession = teamForming.getTeamFormingSession(courseID, dummyDeadline);
   
    if(teamFormingSession!=null){
    resp.getWriter().write(
        "<teamformingsession>"
            + parseCoordinatorTeamFormingSesssionToXML(
View Full Code Here

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

    //TODO: replace null with deadline if deadline is part of the primary key
    TeamForming teamForming = TeamForming.inst();
    TeamFormingSession teamFormingSession = teamForming.getTeamFormingSession(courseID, null);   
   
    Date deadline = teamFormingSession.getDeadline();
    teamForming.informStudentsOfChanges(studentList, courseID, deadline);
  }
View Full Code Here

    //by kalpit
    //TODO: may have to change when getTeamFormingSession changes
    Date dummyDeadline = null;
    TeamForming teamForming = TeamForming.inst();
    TeamFormingSession teamFormingSession = teamForming.getTeamFormingSession(courseID, dummyDeadline);
   
    Date deadline = teamFormingSession.getDeadline();

    teamForming.remindStudents(studentsToRemindList, courseID, deadline);
  }
View Full Code Here

 
  protected void teamFormingSessionAdd() throws IOException {
    String json = req.getParameter("teamformingsession");

    Gson gson = new Gson();
    TeamFormingSession e = gson.fromJson(json, TeamFormingSession.class);

    try{
      TeamForming teamForming = TeamForming.inst();
      teamForming.createTeamFormingSession(e.getCourseID(), e.getStart(),
          e.getDeadline(), e.getTimeZone(), e.getGracePeriod(), e.getInstructions(), e.getProfileTemplate());
      resp.getWriter().write("ok");
    }
    catch (TeamFormingSessionExistsException ex){
      resp.getWriter().write("fail");
    }   
View Full Code Here

TOP

Related Classes of teammates.jdo.TeamFormingSession

Copyright © 2018 www.massapicom. 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.