@Component(value="reporting_ReportImportExport") public class ReportImportExport extends java.lang.Object implements ReportImportExportAPI, ReportImportExportMBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENCODING |
NAME| Constructor and Description |
|---|
ReportImportExport() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
deployAllReportsFromPath(java.lang.String path)
Deploys report from folder
Folder should have the following structure, in other cases RuntimeException will be thrown
|
byte[] |
exportReports(java.util.Collection<Report> reports) |
java.util.Collection<Report> |
importReports(byte[] zipBytes) |
java.util.Collection<Report> |
importReports(byte[] zipBytes,
java.util.EnumSet<ReportImportOption> importOptions) |
ReportImportResult |
importReportsWithResult(byte[] zipBytes,
java.util.EnumSet<ReportImportOption> importOptions) |
public static final java.lang.String ENCODING
public byte[] exportReports(java.util.Collection<Report> reports)
exportReports in interface ReportImportExportAPIpublic java.util.Collection<Report> importReports(byte[] zipBytes)
importReports in interface ReportImportExportAPIpublic java.util.Collection<Report> importReports(byte[] zipBytes, java.util.EnumSet<ReportImportOption> importOptions)
importReports in interface ReportImportExportAPIpublic ReportImportResult importReportsWithResult(byte[] zipBytes, java.util.EnumSet<ReportImportOption> importOptions)
importReportsWithResult in interface ReportImportExportAPIpublic java.lang.String deployAllReportsFromPath(java.lang.String path)
throws java.io.IOException
folder sub-folder1 report.structure template.doc sub-folder2 report.structure template.docx
deployAllReportsFromPath in interface ReportImportExportMBeanpath - to folder with reportsjava.io.IOException