public class Reports extends Object
Modifier and Type | Field and Description |
---|---|
protected freemarker.template.Configuration |
freemarkerConfiguration
Freemarker.
|
Constructor and Description |
---|
Reports() |
Modifier and Type | Method and Description |
---|---|
void |
generateDechargePDF(File disclamerPdf,
Locale locale,
Date updateDate,
String surveyName)
Genere le PDF dynamique de decharge à partir du template freemarker.
|
void |
generateExtractPDF(File directory,
List<String> zones,
org.apache.commons.collections4.map.MultiKeyMap<String,File> pdfMaps,
org.apache.commons.collections4.map.MultiKeyMap<String,org.apache.commons.lang3.tuple.Pair<File,String>> pdfCharts,
ZoneMap zoneMap,
Locale locale)
Generate pdf file filled with maps and charts.
|
File |
generateMetaFilePDF(RSufiResultPath path,
File resultDirectory,
Locale locale,
IndicatorMap indicatorLocalizedMap)
Genere le fichier PDF d'information sur les espèces incluses dans les
calculs des indicateurs de communautés, à jointe à chaque téléchargement.
|
static String |
getDechargeFilename(Locale locale) |
protected freemarker.template.Configuration freemarkerConfiguration
public File generateMetaFilePDF(RSufiResultPath path, File resultDirectory, Locale locale, IndicatorMap indicatorLocalizedMap)
path
- path to resultresultDirectory
- result directorylocale
- localeindicatorLocalizedMap
- localized indicator mappublic void generateDechargePDF(File disclamerPdf, Locale locale, Date updateDate, String surveyName)
disclamerPdf
- pdf file to generatelocale
- generated pdf localeupdateDate
- last update date of resultssurveyName
- optional survey namepublic void generateExtractPDF(File directory, List<String> zones, org.apache.commons.collections4.map.MultiKeyMap<String,File> pdfMaps, org.apache.commons.collections4.map.MultiKeyMap<String,org.apache.commons.lang3.tuple.Pair<File,String>> pdfCharts, ZoneMap zoneMap, Locale locale)
directory
- directory to generate pdf tozones
- zones idspdfMaps
- pdf maps (can be null
)pdfCharts
- pdf charts (can be null
)zoneMap
- zoneMap (to get zone fullnames)locale
- locale to use for translationsCopyright © 2010–2015 Ifremer. All rights reserved.