Examples of AssessmentChangedEvent


Examples of org.olat.course.assessment.AssessmentChangedEvent

    */
   
    /*
     * --------------------------------------------------------------------------------------------------------------
     */
    AssessmentChangedEvent ace = new AssessmentChangedEvent(AssessmentChangedEvent.TYPE_SCORE_EVAL_CHANGED, ident);
   
    System.out.println("result:"+ObjectCloner.deepCopy(ace));
   
    ChiefControllerMessageEvent ccme = new ChiefControllerMessageEvent();
    ccme.setMsg("yes, it is a message");
View Full Code Here

Examples of org.olat.course.assessment.AssessmentChangedEvent

      // registered only to one event, but good style.
      if (ojde.targetEquals(course, true)) {
        dispose();
      }
    } else if (event instanceof AssessmentChangedEvent) {
      AssessmentChangedEvent ace = (AssessmentChangedEvent) event;
      Identity identity = uce.getIdentityEnvironment().getIdentity();
      // reevaluate the changed node if the event changed the current user
      if (ace.getIdentityKey().equals(identity.getKey())) {
        String assessmentChangeType = ace.getCommand();
        // do not re-evaluate things if only comment has been changed
        if (assessmentChangeType.equals(AssessmentChangedEvent.TYPE_SCORE_EVAL_CHANGED)
            || assessmentChangeType.equals(AssessmentChangedEvent.TYPE_ATTEMPTS_CHANGED)) {
          //LD: do not recalculate the score now, but at the next click, since the event comes before DB commit
          //uce.getScoreAccounting().evaluateAll();
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.