Package org.olat.core.gui.media

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


    if (exportFile != null) {
      Version version = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
      String fileName = "language_export_" + version.getApplicationName() + "_" + version.getVersion() + ".jar";
      // Create a temporary media resource that gets deleted from the
      // file system automatically after delivery
      NamedFileMediaResource mediaResource = new NamedFileMediaResource(exportFile, fileName,
          "language download for brasato webapp framework", true);
      logDebug("Exporting tmp file::" + exportFile.getAbsolutePath() + " as fileName::" + fileName, null);

      // TODO open in new window (click invalid)
      ureq.getDispatchResult().setResultingMediaResource(mediaResource);
View Full Code Here

TOP

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

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.