Package org.olat.modules.iq

Examples of org.olat.modules.iq.IQSubmittedEvent


   * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
   */
  public void event(UserRequest urequest, Controller source, Event event) {
    if (source == displayController) {
      if (event instanceof IQSubmittedEvent) {
        IQSubmittedEvent se = (IQSubmittedEvent) event;
        AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
       
       
        // Save results in case of test
        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);
View Full Code Here

TOP

Related Classes of org.olat.modules.iq.IQSubmittedEvent

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.