Examples of saveConfigTo()


Examples of org.olat.course.config.CourseConfigManager.saveConfigTo()

    } 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

Examples of org.olat.course.config.CourseConfigManager.saveConfigTo()

        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

Examples of org.olat.course.config.CourseConfigManager.saveConfigTo()

    } 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

Examples of org.olat.course.config.CourseConfigManager.saveConfigTo()

        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

Examples of org.olat.user.HomePageConfigManager.saveConfigTo()

          HomePageConfig hpcfg = hpcm.loadConfigFor(identity.getName());
          String oldBio = hpcfg.getTextAboutMe();
          if (StringHelper.containsNonWhitespace(oldBio)){
            String newBio = migrateStringSavely(oldBio);
            hpcfg.setTextAboutMe(newBio);
            hpcm.saveConfigTo(identity.getName(), hpcfg);
            counter++;
          }
          DBFactory.getInstance().intermediateCommit();
        } catch (Exception e) {
          log.error("Error during Migration: "+e, e);
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.