@Component(role=ReportRenderer.class, hint="ReportRenderer") public class ReportRenderer extends Object
| Constructor and Description |
|---|
ReportRenderer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getReportDirectory()
Gets the directory path the is used for the report output directory.
|
boolean |
prepareOutputDirectory(String outputDirectory)
Makes sure the report output directory exists.
|
void |
render(ReportModel model,
String outputDirectory)
Renders the given report model.
|
public void render(ReportModel model, String outputDirectory)
model - the report to render.outputDirectory - the output directorypublic boolean prepareOutputDirectory(String outputDirectory)
outputDirectory - the output directorytrue if the output report directory exists and is usable, false otherwise.
Problem could be, that the directory couldn't be created or the reportDirectory is not a directory.getReportDirectory()public String getReportDirectory()
Copyright © 2013-2015. All Rights Reserved.