public interface ReportGeneratorPlugin
Modifier and Type | Method and Description |
---|---|
void |
generateReport(OutputStreamWriter data,
List<String> urls,
String path,
List<String> files,
TimeRange range,
String currentuser,
SecurityWrapper classification,
WebServiceContext ctx)
Generates the content of the report
Implementors must check access control urls using
UserIdentityUtil
prior to report generation. |
List<PolicyType> |
getAppliesTo()
a list of all policy types that this report applies to
|
String |
getDescription()
a human readable description, it will be html encoded
|
String |
getDisplayName()
human friendly display name of the report type
|
String getDisplayName()
String getDescription()
List<PolicyType> getAppliesTo()
void generateReport(OutputStreamWriter data, List<String> urls, String path, List<String> files, TimeRange range, String currentuser, SecurityWrapper classification, WebServiceContext ctx) throws IOException
UserIdentityUtil
prior to report generation. The expected behavior is to skip the url if
the appropriate access is not granted to the requestor
Use Utility#getPerformanceDBConnection() for database connections
be sure to close all database records when done. See aksi {@link DBUtils}data
- write your html content hereurls
- this the policy uris from which to generate reports frompath
- this is the temporary output path, if creating charts, produce them
here then add the filename to the files listfiles
- the list of files, these files are added to the report at completionrange
- time range from which to generate the reportcurrentuser
- the current userclassification
- classification levelIOException
Copyright © 2008–2017 MIL-OSS. All rights reserved.