Class FreemarkerReportFactory
java.lang.Object
ch.tocco.nice2.reporting.impl.freemarker.FreemarkerReportFactory
- All Implemented Interfaces:
ReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
@Component
public class FreemarkerReportFactory
extends Object
implements ReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
ReportFactory using Freemarker as a TemplateEngine
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AfterReportFunctionService
protected final BusinessUnitManager
protected final ContextManager
protected final DocumentFormatService
protected final TemplateEngineFactory
-
Constructor Summary
ConstructorDescriptionFreemarkerReportFactory
(ContextManager contextManager, TemplateEngineFactory templateEngineFactory, DocumentFormatService documentFormatService, BusinessUnitManager businessUnitManager, AfterReportFunctionService afterReportFunctionService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreate
(ReportDescription reportDescription) createReport
(ReportDescription reportDescription) getType()
void
setFileFormatHandler
(List<FileFormatHandler> fileFormatHandler)
-
Field Details
-
contextManager
-
templateEngineFactory
-
documentFormatService
-
businessUnitManager
-
afterReportFunctionService
-
-
Constructor Details
-
FreemarkerReportFactory
public FreemarkerReportFactory(ContextManager contextManager, TemplateEngineFactory templateEngineFactory, DocumentFormatService documentFormatService, BusinessUnitManager businessUnitManager, AfterReportFunctionService afterReportFunctionService)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
-
createReport
public FreemarkerReportFactory.FreemarkerReportImpl createReport(ReportDescription reportDescription) - Specified by:
createReport
in interfaceReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
-
canCreate
- Specified by:
canCreate
in interfaceReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
-
setFileFormatHandler
-