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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AfterReportFunctionServiceprotected final BusinessUnitManagerprotected final ContextManagerprotected final DocumentFormatServiceprotected final TemplateEngineFactory -
Constructor Summary
ConstructorsConstructorDescriptionFreemarkerReportFactory(ContextManager contextManager, TemplateEngineFactory templateEngineFactory, DocumentFormatService documentFormatService, BusinessUnitManager businessUnitManager, AfterReportFunctionService afterReportFunctionService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreate(ReportDescription reportDescription) createReport(ReportDescription reportDescription) getType()voidsetFileFormatHandler(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:
getTypein interfaceReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
-
createReport
public FreemarkerReportFactory.FreemarkerReportImpl createReport(ReportDescription reportDescription) - Specified by:
createReportin interfaceReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
-
canCreate
- Specified by:
canCreatein interfaceReportFactory<FreemarkerReportFactory.FreemarkerReportImpl>
-
setFileFormatHandler
-