Class SimpleReportReader
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.run.reports.SimpleReportReader
-
- All Implemented Interfaces:
AutoCloseable
@Experimental public class SimpleReportReader extends Object implements AutoCloseable
Very simple report reader, to be used for tests or for displaying parts of reports created.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static @NotNull SimpleReportReader
createFor(@NotNull InputStream stream, @NotNull List<String> columns)
static @NotNull SimpleReportReader
createForLocalReportData(@NotNull String reportDataOid, @NotNull List<String> columns, @NotNull CommonTaskBeans beans, @NotNull OperationResult result)
List<String>
getHeaderNames()
List<List<String>>
getRows()
-
-
-
Method Detail
-
createForLocalReportData
@VisibleForTesting @NotNull public static @NotNull SimpleReportReader createForLocalReportData(@NotNull @NotNull String reportDataOid, @NotNull @NotNull List<String> columns, @NotNull @NotNull CommonTaskBeans beans, @NotNull @NotNull OperationResult result) throws IOException, SchemaException, ObjectNotFoundException
-
createFor
@NotNull public static @NotNull SimpleReportReader createFor(@NotNull @NotNull InputStream stream, @NotNull @NotNull List<String> columns) throws IOException
- Throws:
IOException
-
getRows
public List<List<String>> getRows() throws IOException
- Throws:
IOException
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-