Package org.olat.core.commons.modules.bc

Examples of org.olat.core.commons.modules.bc.FolderRunController


    SubscriptionContext nodefolderSubContext = (isGuestOnly ? null : CourseModule.createSubscriptionContext(courseEnv, ne.getCourseNode()));

    OlatNamedContainerImpl namedContainer = BCCourseNode.getNodeFolderContainer((BCCourseNode) ne.getCourseNode(), courseEnv);
    VFSSecurityCallback scallback = new FolderNodeCallback(namedContainer.getRelPath(), ne, isOlatAdmin, isGuestOnly, nodefolderSubContext);
    namedContainer.setLocalSecurityCallback(scallback);
    frc = new FolderRunController(namedContainer, false, true, ureq, getWindowControl());
    setInitialComponent(frc.getInitialComponent());
  }
View Full Code Here


    super(wControl);   
    trans = new PackageTranslator(PACKAGE, ureq.getLocale());
    previewVC = new VelocityContainer("bcPreviewVC", VELOCITY_ROOT + "/preview.html", trans, this);
    OlatNamedContainerImpl namedContainer = BCCourseNode.getNodeFolderContainer(node, courseEnv);
    namedContainer.setLocalSecurityCallback(new ReadOnlyCallback());
    FolderRunController folder = new FolderRunController(namedContainer, false, ureq, getWindowControl());
    previewVC.put("folder", folder.getInitialComponent());
    // get additional infos
    VFSSecurityCallback secCallback = new FolderNodeCallback(namedContainer.getRelPath(), ne, false, false, null);
    previewVC.contextPut("canUpload", Boolean.valueOf(secCallback.canWrite()));
    previewVC.contextPut("canDownload", Boolean.valueOf(secCallback.canRead()));
    Quota q = secCallback.getQuota();
View Full Code Here

      //decided in plenum to have read only view in the personal visit card, even for admin
      VFSSecurityCallback secCallback = new ReadOnlyCallback();
      namedFolder.setLocalSecurityCallback(secCallback);
     
      removeAsListenerAndDispose(folderRunController);
      folderRunController = new FolderRunController(namedFolder, false, true, ureq, getWindowControl());
      listenTo(folderRunController);
      myContent.put("userinfo", folderRunController.getInitialComponent());

    } else if (menuCommand.equals(CMD_CONTACT)) {
      ContactMessage cmsg = new ContactMessage(ureq.getIdentity());
View Full Code Here

    myContent = new VelocityContainer("taskVC", VELOCITY_ROOT + "/returnbox.html", translator, this);
    // returnbox display
    OlatRootFolderImpl rootFolder = new OlatRootFolderImpl(getReturnboxPathFor(userCourseEnv.getCourseEnvironment(), node, ureq.getIdentity()) , null);
    OlatNamedContainerImpl namedContainer = new OlatNamedContainerImpl(ureq.getIdentity().getName(), rootFolder);
    namedContainer.setLocalSecurityCallback(new ReadOnlyCallback());
    returnboxFolderRunController = new FolderRunController(namedContainer, false, ureq, wControl);
    returnboxFolderRunController.addControllerListener(this);
    myContent.put("returnbox", returnboxFolderRunController.getInitialComponent());
    // notification
    if ( !previewMode && !ureq.getUserSession().getRoles().isGuestOnly()) {
      // offer subscription, but not to guests
View Full Code Here

        OlatRootFolderImpl rootFolder = new OlatRootFolderImpl(relPath, null);
        OlatNamedContainerImpl namedFolder = new OlatNamedContainerImpl(translate("taskfolder"), rootFolder);
        namedFolder.setLocalSecurityCallback(new FolderCallback(relPath, false));
       
        removeAsListenerAndDispose(frc);
        frc = new FolderRunController(namedFolder, false, urequest, getWindowControl());
        listenTo (frc);
       
        removeAsListenerAndDispose(cmc);
        cmc = new CloseableModalController(
            getWindowControl(), translate("folder.close"), frc.getInitialComponent()
View Full Code Here

        relPath = targetDir.substring(personalFolderDir.length()).replace("\\", "/");
        targetDir = targetDir.substring(0, personalFolderDir.length());
      }
     
      VFSContainer targetFolder = new LocalFolderImpl(new File(targetDir));
      FolderRunController bcrun = new FolderRunController(targetFolder, true, ureq, getWindowControl());
      Component folderComponent = bcrun.getInitialComponent();
      if (relPath.length()!=0) {
        if (!relPath.endsWith("/")) {
          relPath = relPath + "/";
        }
        bcrun.activate(ureq, relPath);
      }
     
      String personalFolder = Util.createPackageTranslator(HomeMainController.class, ureq.getLocale(), null).translate("menu.bc");
     
      CloseableModalController clc = new CloseableModalController(getWindowControl(), translate("close"), folderComponent, true, personalFolder);
View Full Code Here

TOP

Related Classes of org.olat.core.commons.modules.bc.FolderRunController

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.