Examples of AssessmentManager


Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#updateUserCoachComment(java.lang.String,
   *      org.olat.course.run.userview.UserCourseEnvironment)
   */
  public void updateUserCoachComment(String coachComment, UserCourseEnvironment userCourseEnvironment) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    if (coachComment != null) {
      am.saveNodeCoachComment(this, userCourseEnvironment.getIdentityEnvironment().getIdentity(), coachComment);
    }
  }
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();
    try {
     am.saveScoreEvaluation(this, coachingIdentity, mySelf, scoreEvaluation, userCourseEnvironment, incrementAttempts);
    } catch(DBRuntimeException ex) {
      throw new KnownIssueException("DBRuntimeException - Row was updated or deleted...",3570);
    }
  }
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

  /**
   * @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);
    ScoreEvaluation se = new ScoreEvaluation(score, passed);
    return se;
  }
View Full Code Here

Examples of org.olat.course.assessment.AssessmentManager

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#updateUserCoachComment(java.lang.String,
   *      org.olat.course.run.userview.UserCourseEnvironment)
   */
  public void updateUserCoachComment(String coachComment, UserCourseEnvironment userCourseEnvironment) {
    AssessmentManager am = userCourseEnvironment.getCourseEnvironment().getAssessmentManager();
    if (coachComment != null) {
      am.saveNodeCoachComment(this, userCourseEnvironment.getIdentityEnvironment().getIdentity(), coachComment);
    }
  }
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.