Examples of EfficiencyStatementManager


Examples of org.olat.course.assessment.EfficiencyStatementManager

      // assessment data exists for user
      // - appear as link when configured, assessable node exist and assessment
      // data exists for user
      myTool.addPopUpLink("efficiencystatement", translate("command.efficiencystatement"), "command.efficiencystatement", null,
          "750", "800", false);
      EfficiencyStatementManager esm = EfficiencyStatementManager.getInstance();
      EfficiencyStatement es = esm.getUserEfficiencyStatement(courseRepositoryEntry.getKey(), identity);
      if (es == null) {
        myTool.setEnabled("command.efficiencystatement", false);
      }
    }
   
View Full Code Here

Examples of org.olat.course.assessment.EfficiencyStatementManager

    if (cev != null) { return defaultValue(); }

    /*
     * the real function evaluation which is used during run time
     */
    EfficiencyStatementManager esm = EfficiencyStatementManager.getInstance();
    EfficiencyStatement es = esm.getUserEfficiencyStatement(courseRepoEntryKey, getUserCourseEnv().getIdentityEnvironment().getIdentity());
    if (es == null) return defaultValue();
    Boolean passed = esm.getPassed(childId, es);
    if (passed == null) return defaultValue();
    // finally check existing value
    return (passed.booleanValue() ? ConditionInterpreter.INT_TRUE : ConditionInterpreter.INT_FALSE);
   
  }
View Full Code Here

Examples of org.olat.course.assessment.EfficiencyStatementManager

    /*
     * the real function evaluation which is used during run time
     */

    EfficiencyStatementManager esm = EfficiencyStatementManager.getInstance();
    EfficiencyStatement es = esm.getUserEfficiencyStatement(courseRepoEntryKey, getUserCourseEnv().getIdentityEnvironment().getIdentity());
    if (es == null) return defaultValue();
    Double score = esm.getScore(childId, es);
    if (score == null) return defaultValue();
    // finally check existing value
    return score;
   
  }
View Full Code Here

Examples of org.olat.course.assessment.EfficiencyStatementManager

    // BEGIN EFFICIENCY STATEMENT
    // create all efficiency statements for all users in all courses
    if (! uhd.getBooleanDataValue(TASK_EFFICIENCY_STATEMENT_DONE)) {
      RepositoryManager rm = RepositoryManager.getInstance();
      EfficiencyStatementManager esm = EfficiencyStatementManager.getInstance();
      // get all course repository entries
      List entries = rm.queryByType(CourseModule.ORES_TYPE_COURSE);
      Iterator iter = entries.iterator();
      while (iter.hasNext()) {
        RepositoryEntry re = (RepositoryEntry) iter.next();
        // load course from entry
        ICourse course = CourseFactory.loadCourse(re.getOlatResource());
        CoursePropertyManager cpm = course.getCourseEnvironment().getCoursePropertyManager();
        List identities = cpm.getAllIdentitiesWithCourseAssessmentData();
        // now create all statements for this course
        esm.updateEfficiencyStatements(course,identities, false);
      }
      uhd.setBooleanDataValue(TASK_EFFICIENCY_STATEMENT_DONE, true);
      upgradeManager.setUpgradesHistory(uhd, VERSION);
    }
    // END EFFICIENCY STATEMENT
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.