Examples of ModuleConfiguration


Examples of org.olat.modules.ModuleConfiguration

     
      // Add the user object to the view
      Identity assessedIdentity = assessedIdentityWrapper.getIdentity();
      detailView.contextPut("user", assessedIdentity.getUser());
      // Add the coaching info message
      ModuleConfiguration modConfig = courseNode.getModuleConfiguration();
      String infoCoach = (String) modConfig.get(MSCourseNode.CONFIG_KEY_INFOTEXT_COACH);
      infoCoach = Formatter.formatLatexFormulas(infoCoach);
      detailView.contextPut("infoCoach", infoCoach);
      // Add the assessment details form
      assessmentForm = new AssessmentForm(ureq, wControl, courseNode, assessedIdentityWrapper);
      listenTo(assessmentForm);
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

    super(TYPE);
    initDefaultConfig();
  }

  private void initDefaultConfig() {
    ModuleConfiguration config = getModuleConfiguration();
    config.set(CONF_CANCEL_ENROLL_ENABLED, Boolean.TRUE);
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

   * @param isNewNode true: an initial configuration is set; false: upgrading
   *          from previous node configuration version, set default to maintain
   *          previous behaviour
   */
  public void updateModuleConfigDefaults(boolean isNewNode) {
    ModuleConfiguration config = getModuleConfiguration();
    if (isNewNode) {
      // use defaults for new course building blocks
      //REVIEW:pb version should go to 2 now and the handling for 1er should be to remove
      config.setConfigurationVersion(1);
      config.set(DialogConfigForm.DIALOG_CONFIG_INTEGRATION, DialogConfigForm.CONFIG_INTEGRATION_VALUE_INLINE);
    }
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

   * @param isNewNode true: an initial configuration is set; false: upgrading
   *          from previous node configuration version, set default to maintain
   *          previous behaviour
   */
  public void updateModuleConfigDefaults(boolean isNewNode) {
    ModuleConfiguration config = getModuleConfiguration();
    if (isNewNode) {
      // add default module configuration
      config.set(IQEditController.CONFIG_KEY_ENABLEMENU, new Boolean(true));
      config.set(IQEditController.CONFIG_KEY_SEQUENCE, AssessmentInstance.QMD_ENTRY_SEQUENCE_ITEM);
      config.set(IQEditController.CONFIG_KEY_TYPE, AssessmentInstance.QMD_ENTRY_TYPE_SELF);
      config.set(IQEditController.CONFIG_KEY_SUMMARY, AssessmentInstance.QMD_ENTRY_SUMMARY_DETAILED);
    }
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getMaxScoreConfiguration()
   */
  public Float getMaxScoreConfiguration() {
    if (!hasScoreConfigured()) { throw new OLATRuntimeException(ProjectBrokerCourseNode.class, "getMaxScore not defined when hasScore set to false", null); }
    ModuleConfiguration config = getModuleConfiguration();
    Float max = (Float) config.get(MSCourseNode.CONFIG_KEY_SCORE_MAX);
    return max;
  }
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.