Package org.olat.core.gui.media

Examples of org.olat.core.gui.media.CleanupAfterDeliveryFileMediaResource


    RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(res, true);
    String exportFileName = re.getDisplayname() + ".zip";
    exportFileName = StringHelper.transformDisplayNameToFileSystemName(exportFileName);
    File fExportZIP = new File(FolderConfig.getCanonicalTmpDir() + "/" + exportFileName);
    CourseFactory.exportCourseToZIP(res, fExportZIP);
    return new CleanupAfterDeliveryFileMediaResource(fExportZIP);
  }
View Full Code Here


    //  pro increased transaction timeout: would fix OLAT-5368 but only move the problem
    //@TODO OLAT-2597: real solution is a long-running background-task concept...
    DBFactory.getInstance().intermediateCommit();

    ZipUtil.zip(sharedFolder.getItems(), new LocalFileImpl(fExportZIP));
    return new CleanupAfterDeliveryFileMediaResource(fExportZIP);
  }
View Full Code Here

    RepositoryEntry repoEntry = RepositoryManager.getInstance().lookupRepositoryEntry(res, false);
    String exportFileName = repoEntry.getDisplayname() + ".zip";
    File fExportZIP = new File(FolderConfig.getCanonicalTmpDir() + "/" + exportFileName);
    VFSContainer glossaryRoot = getGlossaryRootFolder(res);
    ZipUtil.zip(glossaryRoot.getItems(), new LocalFileImpl(fExportZIP));
    return new CleanupAfterDeliveryFileMediaResource(fExportZIP);
  }
View Full Code Here

         
          File outputFile = archiveMembers(ureq);
          velocityContainer4.contextPut("filename", outputFile.getName());
          wizardController.setWizardTitle(translate("memberlistwizard.finished.title"));
          wizardController.setNextWizardStep(translate("memberlistwizard.finished"), velocityContainer4);         
          this.setArchiveMediaResource(new CleanupAfterDeliveryFileMediaResource(outputFile));
        }
      }
    } else if (source == colsChoiceController) {
      if (event == Event.DONE_EVENT) {
        List<String> selected = colsChoiceController.getSelectedEntries();
View Full Code Here

TOP

Related Classes of org.olat.core.gui.media.CleanupAfterDeliveryFileMediaResource

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.