Package org.projectforge.export

Examples of org.projectforge.export.ExportZipArchive


  }

  private void zipExport()
  {
    try {
      final ExportZipArchive exportZipArchive = (ExportZipArchive) groovyResult.getResult();
      final StringBuilder sb = new StringBuilder();
      sb.append(exportZipArchive.getFilename()).append("_");
      sb.append(DateHelper.getTimestampAsFilenameSuffix(new Date())).append(".zip");
      final String filename = sb.toString();
      DownloadUtils.setDownloadTarget(filename, exportZipArchive.createResourceStreamWriter());
    } catch (final Exception ex) {
      error(getLocalizedMessage("error", ex.getMessage()));
      log.error(ex.getMessage(), ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.projectforge.export.ExportZipArchive

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.