diff --git a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/model/actions/reporting/ReportFormat.java b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/model/actions/reporting/ReportFormat.java index 9806b1a6..3234e6b3 100644 --- a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/model/actions/reporting/ReportFormat.java +++ b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/model/actions/reporting/ReportFormat.java @@ -39,22 +39,23 @@ import org.dhatim.fastexcel.Worksheet; *******************************************************************************/ public enum ReportFormat { - XLSX(Worksheet.MAX_ROWS, Worksheet.MAX_COLS, ExcelPoiBasedStreamingExportStreamer::new, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlsx"), + XLSX(Worksheet.MAX_ROWS, Worksheet.MAX_COLS, ExcelPoiBasedStreamingExportStreamer::new, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlsx", true), ///////////////////////////////////////////////////////////////////////// // if we need to fall back to Fastexcel, this was its version of this. // ///////////////////////////////////////////////////////////////////////// // XLSX(Worksheet.MAX_ROWS, Worksheet.MAX_COLS, ExcelFastexcelExportStreamer::new, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlsx"), - JSON(null, null, JsonExportStreamer::new, "application/json", "json"), - CSV(null, null, CsvExportStreamer::new, "text/csv", "csv"), - LIST_OF_MAPS(null, null, ListOfMapsExportStreamer::new, null, null); + JSON(null, null, JsonExportStreamer::new, "application/json", "json", false), + CSV(null, null, CsvExportStreamer::new, "text/csv", "csv", false), + LIST_OF_MAPS(null, null, ListOfMapsExportStreamer::new, null, null, false); private final Integer maxRows; private final Integer maxCols; private final String mimeType; private final String extension; + private final boolean isBinary; private final Supplier streamerConstructor; @@ -63,13 +64,14 @@ public enum ReportFormat /******************************************************************************* ** *******************************************************************************/ - ReportFormat(Integer maxRows, Integer maxCols, Supplier streamerConstructor, String mimeType, String extension) + ReportFormat(Integer maxRows, Integer maxCols, Supplier streamerConstructor, String mimeType, String extension, boolean isBinary) { this.maxRows = maxRows; this.maxCols = maxCols; this.mimeType = mimeType; this.streamerConstructor = streamerConstructor; this.extension = extension; + this.isBinary = isBinary; } @@ -147,4 +149,15 @@ public enum ReportFormat { return extension; } + + + + /******************************************************************************* + ** Getter for isBinary + ** + *******************************************************************************/ + public boolean getIsBinary() + { + return isBinary; + } }