Examples of AssessmentManager


Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getUserScoreEvaluation(org.olat.course.run.userview.UserCourseEnvironment)
   */
  public ScoreEvaluation getUserScoreEvaluation(UserCourseEnvironment userCourseEnvironment) {
    // read score from properties
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    Boolean passed = null;
    Float score = null;
    // only db lookup if configured, else return null
    if (hasPassedConfigured()) passed = am.getNodePassed(this, mySelf);
    if (hasScoreConfigured()) score = am.getNodeScore(this, mySelf);

    ScoreEvaluation se = new ScoreEvaluation(score, passed);
    return se;
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

   *      org.olat.course.run.userview.UserCourseEnvironment,
   *      org.olat.core.id.Identity)
   */
  public void updateUserScoreEvaluation(ScoreEvaluation scoreEvaluation, UserCourseEnvironment userCourseEnvironment,
      Identity coachingIdentity, boolean incrementAttempts) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    am.saveScoreEvaluation(this, coachingIdentity, mySelf, new ScoreEvaluation(scoreEvaluation.getScore(), scoreEvaluation.getPassed()), userCourseEnvironment, incrementAttempts);   
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

   *      org.olat.course.run.userview.UserCourseEnvironment,
   *      org.olat.core.id.Identity)
   */
  public void updateUserUserComment(String userComment, UserCourseEnvironment userCourseEnvironment, Identity coachingIdentity) {
    if (userComment != null) {
      AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
      Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
      am.saveNodeComment(this, coachingIdentity, mySelf, userComment);
    }
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getUserCoachComment(org.olat.course.run.userview.UserCourseEnvironment)
   */
  public String getUserCoachComment(UserCourseEnvironment userCourseEnvironment) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    String coachCommentValue = am.getNodeCoachComment(this, mySelf);
    return coachCommentValue;
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getUserUserComment(org.olat.course.run.userview.UserCourseEnvironment)
   */
  public String getUserUserComment(UserCourseEnvironment userCourseEnvironment) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    String userCommentValue = am.getNodeComment(this, mySelf);
    return userCommentValue;
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getUserAttempts(org.olat.course.run.userview.UserCourseEnvironment)
   */
  public Integer getUserAttempts(UserCourseEnvironment userCourseEnvironment) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    Integer userAttemptsValue = am.getNodeAttempts(this, mySelf);
    return userAttemptsValue;

  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

   *      org.olat.course.run.userview.UserCourseEnvironment,
   *      org.olat.core.id.Identity)
   */
  public void updateUserAttempts(Integer userAttempts, UserCourseEnvironment userCourseEnvironment, Identity coachingIdentity) {
    if (userAttempts != null) {
      AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
      Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
      am.saveNodeAttempts(this, coachingIdentity, mySelf, userAttempts);
    }
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#incrementUserAttempts(org.olat.course.run.userview.UserCourseEnvironment)
   */
  public void incrementUserAttempts(UserCourseEnvironment userCourseEnvironment) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    am.incrementNodeAttempts(this, mySelf, userCourseEnvironment);
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

      Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
      AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
      IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
      RepositoryEntry repositoryEntry = ne.getCourseNode().getReferencedRepositoryEntry();
      OLATResourceable ores = repositoryEntry.getOlatResource();
      Long resId = ores.getResourceableId();
      TestFileResource fr = new TestFileResource();
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getUserScoreEvaluation(org.olat.course.run.userview.UserCourseEnvironment)
   */
  public ScoreEvaluation getUserScoreEvaluation(UserCourseEnvironment userCourseEnvironment) {
    // read score from properties save score, passed and attempts information
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    Identity mySelf = userCourseEnvironment.getIdentityEnvironment().getIdentity();
    Boolean passed = am.getNodePassed(this, mySelf);
    Float score = am.getNodeScore(this, mySelf);   
    Long assessmentID = am.getAssessmentID(this, mySelf);   
    ScoreEvaluation se = new ScoreEvaluation(score, passed, assessmentID);
    return se;
  }
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.