Examples of unzipFileResource()


Examples of org.olat.fileresource.FileResourceManager.unzipFileResource()

   * Update the module configuration from the qti file: read min/max/cut values
   * @param res
   */
  public void updateModuleConfigFromQTIFile(OLATResource res) {
    FileResourceManager frm = FileResourceManager.getInstance();
    File unzippedRoot = frm.unzipFileResource(res);
    //with VFS FIXME:pb:c: remove casts to LocalFileImpl and LocalFolderImpl if no longer needed.
    VFSContainer vfsUnzippedRoot = new LocalFolderImpl(unzippedRoot);
    VFSItem vfsQTI = vfsUnzippedRoot.resolve("qti.xml");
    if (vfsQTI==null){
      throw new AssertException("qti file did not exist even it should be guaranteed by repositor check-in "
View Full Code Here

Examples of org.olat.fileresource.FileResourceManager.unzipFileResource()

    // delete old unzip content. If the repository entry gets called in the meantime,
    // the package will get unzipped again.
    tmpZipFile.delete();
    frm.deleteUnzipContent(fileResource);
    // to be prepared for the next start, unzip right now.
    return (frm.unzipFileResource(fileResource) != null);
  }
 
  /**
   * save the change log in the changelog folder, must be called before savePackageToRepository.
   * @param changelog
View Full Code Here

Examples of org.olat.fileresource.FileResourceManager.unzipFileResource()

    init(fileResource);
  }

  private void init(OLATResourceable fileResource) {
    FileResourceManager frm = FileResourceManager.getInstance();
    fUnzippedDirRoot = frm.unzipFileResource(fileResource);
    sUnzippedDirRel = frm.getUnzippedDirRel(fileResource);
  }

  /**
   * (non-Javadoc)
 
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.