public class VelocityTemplateProviderHooker extends java.lang.Object implements TableTemplateProviderHook
Constructor and Description |
---|
VelocityTemplateProviderHooker(ReportExecutorService reportExecutor,
ReportServerService reportServerService,
ParameterSetFactory parameterSetFactory,
HookHandlerService hookHandler) |
Modifier and Type | Method and Description |
---|---|
TableReportTemplate |
createTemplateFor(TableTemplateConfig config) |
CompiledReport |
executeReport(java.io.OutputStream os,
ReportEngine engine,
Report report,
ParameterSet additionalParameters,
User user,
java.lang.String outputFormat,
ReportExecutionConfig[] configs,
TableReportTemplate template) |
CompiledReport |
executeReportDry(ReportEngine engine,
Report report,
ParameterSet additionalParameters,
User user,
java.lang.String outputFormat,
ReportExecutionConfig[] configs,
TableReportTemplate template) |
java.lang.String |
getCharset(TableReportTemplate template) |
java.lang.String |
getMimeType(TableReportTemplate template) |
java.lang.String |
getTemplateFilename(TableReportTemplate template) |
java.lang.String |
getTemplateType() |
void |
updateTemplate(TableReportTemplate template,
TableTemplateConfig config) |
void |
writeToStream(TableReportTemplate template,
java.io.OutputStream outputStream) |
public VelocityTemplateProviderHooker(ReportExecutorService reportExecutor, ReportServerService reportServerService, ParameterSetFactory parameterSetFactory, HookHandlerService hookHandler)
public java.lang.String getTemplateType()
getTemplateType
in interface TableTemplateProviderHook
public TableReportTemplate createTemplateFor(TableTemplateConfig config)
createTemplateFor
in interface TableTemplateProviderHook
public CompiledReport executeReportDry(ReportEngine engine, Report report, ParameterSet additionalParameters, User user, java.lang.String outputFormat, ReportExecutionConfig[] configs, TableReportTemplate template) throws ReportExecutorException
executeReportDry
in interface TableTemplateProviderHook
ReportExecutorException
public CompiledReport executeReport(java.io.OutputStream os, ReportEngine engine, Report report, ParameterSet additionalParameters, User user, java.lang.String outputFormat, ReportExecutionConfig[] configs, TableReportTemplate template) throws ReportExecutorException
executeReport
in interface TableTemplateProviderHook
ReportExecutorException
public java.lang.String getTemplateFilename(TableReportTemplate template)
getTemplateFilename
in interface TableTemplateProviderHook
public void writeToStream(TableReportTemplate template, java.io.OutputStream outputStream) throws java.io.IOException
writeToStream
in interface TableTemplateProviderHook
java.io.IOException
public java.lang.String getCharset(TableReportTemplate template)
getCharset
in interface TableTemplateProviderHook
public java.lang.String getMimeType(TableReportTemplate template)
getMimeType
in interface TableTemplateProviderHook
public void updateTemplate(TableReportTemplate template, TableTemplateConfig config)
updateTemplate
in interface TableTemplateProviderHook