Package org.olat.course.config

Examples of org.olat.course.config.CourseConfigManager


      importSharedfolderVC.setPage(VELOCITY_ROOT + "/import_repo_details.html");
      continueButton = LinkFactory.createButton("import.redetails.continue", importSharedfolderVC, this);
      return;
    } else if (source == noopButton) {
      // delete reference
      CourseConfigManager ccm = CourseConfigManagerImpl.getInstance();
      CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
      courseConfig.setSharedFolderSoftkey(CourseConfig.VALUE_EMPTY_SHAREDFOLDER_SOFTKEY);
      ccm.saveConfigTo(course, courseConfig);
      fireEvent(ureq, Event.DONE_EVENT);
    } else if (source == cancelButton) {
      fireEvent(ureq, Event.CANCELLED_EVENT);
    } else if (source == continueButton){
      fireEvent(ureq, Event.DONE_EVENT);
View Full Code Here


      main.setContent(importSharedfolderVC);
      if (event == ReferencableEntriesSearchController.EVENT_REPOSITORY_ENTRY_SELECTED) {
        // repository search controller done
        RepositoryEntry re = searchController.getSelectedEntry();
        if (re != null) {
          CourseConfigManager ccm = CourseConfigManagerImpl.getInstance();
          CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
          courseConfig.setSharedFolderSoftkey(re.getSoftkey());
          ccm.saveConfigTo(course, courseConfig);
          CourseSharedFolderController.updateRefTo(re, course);
          getWindowControl().setInfo(getTranslator().translate("import.reattach.success"));
          fireEvent(ureq, Event.DONE_EVENT);
        }
        // else cancelled repo search, display import options again.
View Full Code Here

      importGlossaryVC.setPage(VELOCITY_ROOT + "/import_repo_details.html");
      continueButton = LinkFactory.createButton("import.redetails.continue", importGlossaryVC, this);
      return;
    } else if (source == noopButton) {
      // delete reference
      CourseConfigManager ccm = CourseConfigManagerImpl.getInstance();
      CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
      courseConfig.setGlossarySoftKey(null);
      ccm.saveConfigTo(course, courseConfig);
      fireEvent(ureq, Event.DONE_EVENT);
    } else if (source == cancelButton) {
      fireEvent(ureq, Event.CANCELLED_EVENT);
    } else if (source == continueButton) {
      fireEvent(ureq, Event.DONE_EVENT);
View Full Code Here

      main.setContent(importGlossaryVC);
      if (event == ReferencableEntriesSearchController.EVENT_REPOSITORY_ENTRY_SELECTED) {
        // repository search controller done
        RepositoryEntry re = searchController.getSelectedEntry();
        if (re != null) {
          CourseConfigManager ccm = CourseConfigManagerImpl.getInstance();
          CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
          courseConfig.setGlossarySoftKey(re.getSoftkey());
          ccm.saveConfigTo(course, courseConfig);
          ReferenceManager.getInstance().addReference(course, re.getOlatResource(), GlossaryManager.GLOSSARY_REPO_REF_IDENTIFYER);
          getWindowControl().setInfo(getTranslator().translate("import.reattach.success"));
          fireEvent(ureq, Event.DONE_EVENT);
        }
        // else cancelled repo search, display import options again.
View Full Code Here

TOP

Related Classes of org.olat.course.config.CourseConfigManager

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.