Package org.olat.core.util.vfs

Examples of org.olat.core.util.vfs.VFSContainer.canWrite()


  }

  private void renderList(Renderer r, StringOutput target, FolderComponent fc, URLBuilder ubu, Translator translator, boolean iframePostEnabled) {
   
    VFSContainer currentContainer = fc.getCurrentContainer();
    boolean canWrite = currentContainer.canWrite() == VFSConstants.YES;
    boolean canDelete = false;
    boolean canVersion = FolderConfig.versionsEnabled(fc.getCurrentContainer());
    for (Iterator<VFSItem> iter = fc.getCurrentContainerChildren().iterator(); iter.hasNext();) {
      VFSItem child = iter.next();
      if (child.canDelete() == VFSConstants.YES) {
View Full Code Here


 
  public Controller execute(FolderComponent folderComponent, UserRequest ureq, WindowControl wContr, Translator trans) {
    this.translator = trans;
    FileSelection selection = new FileSelection(ureq, folderComponent.getCurrentContainerPath());
    VFSContainer currentContainer = folderComponent.getCurrentContainer();
    if (!(currentContainer.canWrite() == VFSConstants.YES))
      throw new AssertException("Cannot unzip to folder. Writing denied.");
     
    //check if command is executed on a file containing invalid filenames or paths - checks if the resulting folder has a valid name
    if(selection.getInvalidFileNames().size()>0) {       
      status = FolderCommandStatus.STATUS_INVALID_NAME;
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.