Package org.projectforge.export

Examples of org.projectforge.export.ExportJson


  }

  protected void jsonExport()
  {
    try {
      final ExportJson exportJson = (ExportJson) groovyResult.getResult();
      final StringBuilder sb = new StringBuilder();
      sb.append(exportJson.getJsonName()).append("_");
      sb.append(DateHelper.getTimestampAsFilenameSuffix(new Date())).append(".json");
      final String filename = sb.toString();
      DownloadUtils.setDownloadTarget(filename, exportJson.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.ExportJson

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.