Package com.redwood.scheduler.api.model
Class ReportScript
- java.lang.Object
- 
- com.redwood.scheduler.api.model.ReportScript
 
- 
 public final class ReportScript extends Object Easy interface to reports from scripting.
- 
- 
Constructor SummaryConstructors Constructor Description ReportScript()Create a new ReportScript using the implicit session (jcsSession), and the standard output stream (jcsOut).ReportScript(SchedulerSession newSession, Writer newWriter)Create a new ReportScript using a specific session and writer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendHTML()End HTML output, emits everything from and including the closing body tag.voidrunCSV(String reportName)Run a report with CSV output.voidrunHTML(String reportName)Run a report with HTML output.voidrunXML(String reportName)Run a report with XML output.voidstartHTML(String title)Start HTML output, emits everything up to and including the opening body tag.
 
- 
- 
- 
Constructor Detail- 
ReportScriptpublic ReportScript() Create a new ReportScript using the implicit session (jcsSession), and the standard output stream (jcsOut).
 - 
ReportScriptpublic ReportScript(SchedulerSession newSession, Writer newWriter) Create a new ReportScript using a specific session and writer.- Parameters:
- newSession- the session to use.
- newWriter- the writer to use.
 
 
- 
 - 
Method Detail- 
startHTMLpublic void startHTML(String title) throws IOException Start HTML output, emits everything up to and including the opening body tag.- Parameters:
- title- the title.
- Throws:
- IOException- if writing fails.
 
 - 
endHTMLpublic void endHTML() throws IOExceptionEnd HTML output, emits everything from and including the closing body tag.- Throws:
- IOException- if writing fails.
 
 - 
runHTMLpublic void runHTML(String reportName) Run a report with HTML output.- Parameters:
- reportName- the name of the report to run.
 
 - 
runCSVpublic void runCSV(String reportName) Run a report with CSV output.- Parameters:
- reportName- the name of the report to run.
 
 - 
runXMLpublic void runXML(String reportName) Run a report with XML output.- Parameters:
- reportName- the name of the report to run.
 
 
- 
 
-