public interface BugzillaReportGenerator
A report instance is usually created first, then init(Configuration)
will be called to give the object a chance to configure itself from
some configuration object (usually XML based).
Then, prepareReport() will be called for each separate report this
object has to create.
Next, the object will receive each bug to take into account. A report shall collect all necessary information from the bug and forget about the bug itself immediately as potentially thousands of bugs might be queued up.
Finally, closeReport() will be called. This is the place where
your implementation should persist its collected data. Some abstract
classes are provided to ease the writing of new reports.
| Modifier and Type | Method and Description |
|---|---|
void |
closeReport()
Closes a report.
|
String |
getMaximumBugzillaVersion()
Returns the maximum Bugzilla version this session supports.
|
String |
getMinimumBugzillaVersion()
Returns the minimum Bugzilla version this session supports.
|
void |
init(org.apache.commons.configuration.Configuration config)
Configures the report.
|
void |
prepareReport()
Prepares a new report.
|
void |
registerBug(Issue bug)
Registers a bug for the report.
|
void |
setBugzillaSession(Session bugzillaSession)
Sets the current Session object used.
|
void init(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
config - - the configuration objectorg.apache.commons.configuration.ConfigurationException - - when a configuration problem occursvoid setBugzillaSession(Session bugzillaSession)
bugzillaSession - - the current session objectString getMinimumBugzillaVersion()
String getMaximumBugzillaVersion()
void prepareReport()
void registerBug(Issue bug)
bug - - the bug to collect data fromvoid closeReport()
Copyright © 2012. All Rights Reserved.