Package org.webcamp.users.dto

Examples of org.webcamp.users.dto.User


    this.resultsService = resultsService;
  }

  @RequestMapping("user-results")
  public ModelAndView viewResults(HttpSession session) {
    User user = (User) session.getAttribute("user");
    List<QuestionaryResult> results = resultsService.getUserResult(user.getId());
    return new ModelAndView("user_overall_results", "results", results);
  }
View Full Code Here


    if (progress.getCurrentQuestionIndex() == progress.getQuestionary().getQuestions().size() - 1) {

      PercentileScore ps = new PercentileScore();
      Score score = ps.evaluate(progress.getQuestionary(), progress.getAnswers());

      User user = (User) session.getAttribute("user");
      QuestionaryResult result = new QuestionaryResult();
      result.setUserId(user.getId());
      result.setDate(new Date());
      result.setQuestionaryName(progress.getQuestionary().getName());
      result.setResult(score.getValue());
      resultsService.addResult(result);
View Full Code Here

TOP

Related Classes of org.webcamp.users.dto.User

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.