Package projectatlast.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


    List<Activity> activities = new ArrayList<Activity>();
    Random rand = new Random();

    // Collect data
    Calendar cal = Calendar.getInstance();
    Student student = AuthController.getCurrentStudent();
    List<Course> courses = student.getCourses();
    List<String> studyTypes = new ArrayList<String>(StudyActivity
        .getTypes().keySet());
    //List<String> freeTimeTypes = student.getFreeTimeTypes();
    List<String> socials = Arrays.asList(new String[] { "Alone", "Two",
        "Group" });
    List<String> tools = student.getTools();
    List<String> locations = student.getLocations();

    for (int i = 0; i < nActivities; ++i) {
      // Random date in November or December
      cal.set(Calendar.YEAR, 2011);
      cal.set(Calendar.MILLISECOND, 0);
View Full Code Here

  @Override
  public void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {

    // Collect parameters
    Student student = AuthController.getCurrentStudent();
    long activityId;
    long pages = 0;
    long moodInterest = 50;
    long moodComprehension = 50;
    try {
View Full Code Here

  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {

    Student student = AuthController.getCurrentStudent();
    Activity activity = StudentController.getCurrentActivity(student);

    // Remove current activity in student
    StudentController.setCurrentActivity(student, null);
View Full Code Here

  @Override
  public void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws IOException, ServletException {

    // Get the current student
    Student student = AuthController.getCurrentStudent();

    // Get the id of the requested graph
    Long graphId = null;
    try {
      graphId = Long.parseLong(req.getParameter("graphId"));
View Full Code Here

  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException, ServletException {

    // Get the current student
    Student student = AuthController.getCurrentStudent();

    // Get the id of the requested milestone
    Long milestoneId = null;
    try {
      milestoneId = Long.parseLong(req.getParameter("milestoneId"));
View Full Code Here

  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException, ServletException {
    resp.setContentType("application/json");

    // Get the current student
    Student student = AuthController.getCurrentStudent();
    // Get graph identifier
    Long graphId = Long.parseLong(req.getParameter("id"));

    // Retrieve graph, verifying it belongs to the student
    Graph graph = GraphController.getGraph(graphId, student);
View Full Code Here

        return filter;

      if (value.equalsIgnoreCase("current")
          || value.equalsIgnoreCase("currentuser")
          || value.equalsIgnoreCase("currentstudent")) {
        Student student = AuthController.getCurrentStudent();
        filter = new StudentFilter(student);
      }

      return filter;
    }
View Full Code Here

    }

    @Override
    public boolean stringify(Option option, Map<String, String> optionMap) {
      if (option instanceof StudentFilter) {
        Student student = ((StudentFilter) option).student();
        if (student.equals(AuthController.getCurrentStudent())) {
          optionMap.put("student", "currentstudent");
        }
        return true;
      }
      return false;
View Full Code Here

    String maintype = req.getParameter("maintype");
    String graphtype = req.getParameter("chart-type");

    // Get current student
    Student student = AuthController.getCurrentStudent();

    String groupfield = req.getParameter("sortfield");
    String subgroupfield = req.getParameter("subgroup");

    String parser = req.getParameter("parser1");
View Full Code Here

TOP

Related Classes of projectatlast.student.Student

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.