Package org.olat.course.tree

Examples of org.olat.course.tree.CourseInternalLinkTreeModel


      boolean hasEditRights = (cgm.isIdentityCourseAdministrator(ureq.getIdentity()) || cgm.hasRight(ureq.getIdentity(),
          CourseRights.RIGHT_COURSEEDITOR));
      if (hasEditRights) {
        spCtr.allowPageEditing();
        // set the link tree model to internal for the HTML editor
        CustomLinkTreeModel linkTreeModel = new CourseInternalLinkTreeModel(userCourseEnv.getCourseEnvironment().getRunStructure().getRootNode());
        spCtr.setInternalLinkTreeModel(linkTreeModel);
      }
      spCtr.addLoggingResourceable(LoggingResourceable.wrap(this));
      // create clone wrapper layout, allow popping into second window
      CloneLayoutControllerCreatorCallback clccc = new CloneLayoutControllerCreatorCallback() {
View Full Code Here


    CourseGroupManager cgm = userCourseEnv.getCourseEnvironment().getCourseGroupManager();
    hasEditRights = isFileTypeEditable(fileName)
        && (cgm.isIdentityCourseAdministrator(ureq.getIdentity()) || cgm.hasRight(ureq.getIdentity(), CourseRights.RIGHT_COURSEEDITOR));

    if (hasEditRights) {
      linkTreeModel = new CourseInternalLinkTreeModel(userCourseEnv.getCourseEnvironment().getRunStructure().getRootNode());
    }
   
    // init main panel and do start page or direct launch
    main = new Panel("sprunmain");
    doInlineIntegration(ureq, hasEditRights);   
View Full Code Here

    String chosenFile = (String) config.get(CONFIG_KEY_FILE);
    iframeForm.forceIframe(chosenFile);
   
    allowRelativeLinks  = moduleConfiguration.getBooleanEntry(CONFIG_KEY_ALLOW_RELATIVE_LINKS);

    fccecontr = new LinkChooseCreateEditController(ureq, getWindowControl(), chosenFile, allowRelativeLinks, course.getCourseFolderContainer(), new CourseInternalLinkTreeModel(course.getEditorTreeModel()) );   
    this.listenTo(fccecontr);
    fccecontr.setIframeEnabled(useIframe);
    if (useIframe) {
      fccecontr.setAllFileSuffixesAllowed(true);
    } else {
View Full Code Here

    }

  }

  private void addStartEditorToView(UserRequest ureq) {
    this.fccecontr = new LinkChooseCreateEditController(ureq, getWindowControl(), chosenFile, allowRelativeLinks, courseFolderContainer, new CourseInternalLinkTreeModel(editorModel) );   
    this.listenTo(fccecontr);

    fccePanel = new Panel("filechoosecreateedit");
    Component fcContent = fccecontr.getInitialComponent();
    fccePanel.setContent(fcContent);
View Full Code Here

    String target = "qti";
    allowRelativeLinks  = moduleConfiguration.getBooleanEntry(CONFIG_KEY_ALLOW_RELATIVE_LINKS);
    if(allowRelativeLinks==null){
      allowRelativeLinks=Boolean.FALSE;
    }
    fccecontr = new LinkChooseCreateEditController(ureq, wControl, disclaimer, allowRelativeLinks, course.getCourseFolderContainer(), target, legend, new CourseInternalLinkTreeModel(course.getEditorTreeModel()) );   
    this.listenTo(fccecontr);
   
    Component fcContent = fccecontr.getInitialComponent();
    myContent.put("filechoosecreateedit", fcContent);
   
View Full Code Here

TOP

Related Classes of org.olat.course.tree.CourseInternalLinkTreeModel

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.