Package org.olat.course.nodes

Examples of org.olat.course.nodes.AssessableCourseNode


        if (type.equals(AssessmentInstance.QMD_ENTRY_TYPE_ASSESS)) {
          // update scoring overview for the user in the current course
          Float score = new Float(se.getScore());
          Boolean passed = new Boolean(se.isPassed());
          ScoreEvaluation sceval = new ScoreEvaluation(score, passed, new Long(se.getAssessmentID()));
          AssessableCourseNode acn = (AssessableCourseNode)courseNode; // assessment nodes are assesable     
          boolean incrementUserAttempts = true;
          acn.updateUserScoreEvaluation(sceval, userCourseEnv, urequest.getIdentity(), incrementUserAttempts);
          //userCourseEnv.getScoreAccounting().scoreInfoChanged(acn, sceval);         
          exposeUserTestDataToVC(urequest);
                   
          // Mark publisher for notifications
          AssessmentNotificationsHandler anh = AssessmentNotificationsHandler.getInstance();
View Full Code Here


    // configuration data
    myContent.contextPut("attemptsConfig", modConfig.get(IQEditController.CONFIG_KEY_ATTEMPTS));
    // user data
    if ( !(courseNode instanceof AssessableCourseNode))
      throw new AssertException("exposeUserTestDataToVC can only be called for test nodes, not for selftest or questionnaire");
    AssessableCourseNode acn = (AssessableCourseNode)courseNode; // assessment nodes are assesable
    ScoreEvaluation scoreEval = acn.getUserScoreEvaluation(userCourseEnv);
   
    Identity identity = userCourseEnv.getIdentityEnvironment().getIdentity();
    myContent.contextPut("score", AssessmentHelper.getRoundedScore(scoreEval.getScore()));
    myContent.contextPut("hasPassedValue", (scoreEval.getPassed() == null ? Boolean.FALSE : Boolean.TRUE));
    myContent.contextPut("passed", scoreEval.getPassed());
    myContent.contextPut("comment", acn.getUserUserComment(userCourseEnv));
    myContent.contextPut("attempts", acn.getUserAttempts(userCourseEnv));
   
    UserNodeAuditManager am = userCourseEnv.getCourseEnvironment().getAuditManager();
    myContent.contextPut("log", am.getUserNodeLog(courseNode, identity));
           
    exposeResults(ureq);
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.AssessableCourseNode

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.