@groovy.util.logging.Slf4j class ReportHelper extends java.lang.Object
Provides helper methods for finding and using reports from the external report engine.
Type | Name and description |
---|---|
private static java.lang.String |
REPORT_PAGE The page that serves up the reports. |
private static ReportHelper |
instance A singleton-style instance for this class. |
Constructor and description |
---|
ReportHelper
() |
Type Params | Return Type | Name and description |
---|---|---|
|
FieldDefinitions |
buildFieldDefinitionsFromParameters(Report report) Builds the FieldDefinitions from the list of report parameters. |
|
java.util.List<java.lang.String> |
determineBuiltinReports() Finds the list of available built-in reports from the file system and/or the class path. |
|
java.lang.String |
determineReportBaseName(java.lang.String fullPath) Determines the base file name for the given report path. |
|
java.io.InputStream |
getInputStream(Report reportDetails) Opens an input stream for the report's jrxml file. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The page that serves up the reports. Used mainly for user preference storage.
A singleton-style instance for this class. Used to make testing easier.
Builds the FieldDefinitions from the list of report parameters. This is used for display purposes.
report
- The report.Finds the list of available built-in reports from the file system and/or the class path. Ignores .jrxml files that start with underscore (_).
Determines the base file name for the given report path. For example, 'reports/Metrics.jrxml' returns 'Metrics'.
fullPath
- The full path of the report.Opens an input stream for the report's jrxml file. Supports built-in reports found on the classpath.
reportDetails
- The report details.Groovy Documentation