Package org.olat.core.commons.controllers.linkchooser

Examples of org.olat.core.commons.controllers.linkchooser.CustomLinkTreeModel


      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


    ControllerCreator linkChooserControllerCreator = new ControllerCreator() {
      public Controller createController(UserRequest lureq,WindowControl lwControl) {
        LinkChooserController myLinkChooserController;
        VFSContainer baseContainer = config.getLinkBrowserBaseContainer();
        String uploadRelPath = config.getLinkBrowserUploadRelPath();
        CustomLinkTreeModel linkBrowserCustomTreeModel = config.getLinkBrowserCustomLinkTreeModel();
        if (type.equals(CMD_FILEBROWSER)) {
          // when in file mode we include the internal links to the selection
          //FIXME: user activity logger
          myLinkChooserController = new LinkChooserController(lureq, lwControl, baseContainer, uploadRelPath, suffixes, fileName, linkBrowserCustomTreeModel);     
        } else {
View Full Code Here

TOP

Related Classes of org.olat.core.commons.controllers.linkchooser.CustomLinkTreeModel

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.