public class ReportGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReportGenerator.Type
Report type
|
Modifier and Type | Field and Description |
---|---|
protected freemarker.template.Configuration |
freemarkerConfiguration
Freemarker
|
Constructor and Description |
---|
ReportGenerator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getReportContent(freemarker.template.Template template,
List<TimerProject> projects,
Date begin,
Date end,
boolean includeAnnotate,
boolean includeAnnotateTime)
Get report content with freemarker template execution.
|
String |
getReportText(ReportGenerator.Type reportType,
List<TimerProject> projects,
Date begin,
Date end,
boolean includeAnnotate,
boolean includeAnnotateTime)
Make report.
|
protected freemarker.template.Configuration freemarkerConfiguration
public String getReportText(ReportGenerator.Type reportType, List<TimerProject> projects, Date begin, Date end, boolean includeAnnotate, boolean includeAnnotateTime)
reportType
- type, (daily, weekly...)projects
- projects sub setbegin
- begin dateend
- end dateincludeAnnotate
- include annotationsincludeAnnotateTime
- include annotations timeprotected String getReportContent(freemarker.template.Template template, List<TimerProject> projects, Date begin, Date end, boolean includeAnnotate, boolean includeAnnotateTime) throws freemarker.template.TemplateException, IOException
projects
- projects sub setbegin
- begin dateend
- end datetemplate
- freemarker template to useincludeAnnotate
- include annotationsincludeAnnotateTime
- include annotations timeIOException
- if i/o exception occursfreemarker.template.TemplateException
- if freemarker template exception occursTemplate
Copyright © 2007–2013 CodeLutin. All rights reserved.