Class SimpleReportReader
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.reports.SimpleReportReader
- All Implemented Interfaces:
AutoCloseable
Very simple report reader, to be used for tests or for displaying parts of reports created.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) getRows()
-
Method Details
-
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
- Throws:
IOException
-
getHeaderNames
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-