public class PublicationService extends Object
Modifier and Type | Field and Description |
---|---|
protected CommonService |
commonService |
protected CoserBusinessConfig |
config |
Constructor and Description |
---|
PublicationService(CoserBusinessConfig config) |
Modifier and Type | Method and Description |
---|---|
protected org.jfree.chart.JFreeChart |
displayGraph(org.jfree.data.category.CategoryDataset categoryDataSet,
String title) |
File |
exportErrorsAsHTML(Project project,
AbstractDataContainer container,
List<ControlError> validationErrors)
Export la liste d'erreurs dans un fichier html avec la liste des graphes
si necessaire.
|
protected void |
exportErrorsAsHTML(Project project,
AbstractDataContainer container,
List<ControlError> validationErrors,
Writer out,
boolean includeProjectInfo)
Export la liste d'erreurs dans un fichier html avec la liste des graphes
si necessaire.
|
File |
extractControlLogAsHTML(Project project,
Control control)
Extrait les logs des modifications faites sur un control au format html.
|
protected void |
extractControlLogAsHTML(Project project,
Control control,
Writer out)
Extrait les logs des modifications faites sur un control au format html
dans un flux donné.
|
void |
extractControlLogAsPDF(Project project,
Control control,
List<ControlError> validationErrors,
File pdfFile)
Extrait les logs des modifications faites sur un control au format pdf.
|
protected void |
extractHistoryCommandReport(Project project,
AbstractDataContainer container,
Writer out)
Partie commune aux export qui effectue en 2 passe la recuperation
des lignes d'erreur, la recuperation des données correspondant à
ces lignes dans les fichiers originaux et la sortie des erreurs.
|
protected void |
extractProjectReport(Project project,
Writer out)
Extrait la partie "detail projet" vers le flux.
|
File |
extractSelectionLogAsHTML(Project project,
Selection selection)
Extrait les logs des modifications faites sur une selection au format html.
|
protected void |
extractSelectionLogAsHTML(Project project,
Selection selection,
Writer out)
Extrait les logs des modifications faites sur une selection au format html
dans le flux donné.
|
void |
extractSelectionLogAsPDF(Project project,
Selection selection,
File pdfFile)
Extrait les logs des modifications faites sur une selection au format pdf.
|
Map<String,org.jfree.chart.JFreeChart> |
getCompareCatchLengthGraph(Project project,
AbstractDataContainer container,
Collection<String> speciesCollection)
Retourne les graphiques de comparaison entre le nombre de capture et
le nombre dans les tailles pour toutes les especes.
|
File |
getRsufiResultComChart(Project project,
File resultDirectory,
RSufiResult rsufiResult,
File codeTypeEspecesFile,
String indicator,
String list,
String zoneDisplayName,
String indicatorName,
String unit,
Locale locale)
Generate community graph for selected indicator.
|
File |
getRsufiResultComChartData(File resultDirectory,
RSufiResult rsufiResult,
String indicator,
String list)
Genere un sous fichier CSV (qui contient un sous ensemble de estPopInd)
et qui a servit a generer le graphique.
|
Map<String,Object[]> |
getRsufiResultComCharts(Project project,
File resultDirectory,
RSufiResult rsufiResult,
File codeTypeEspecesFile,
Collection<String> indicators,
String zoneDisplayName,
org.apache.commons.collections4.map.MultiKeyMap indicatorMap,
Locale locale,
int width,
int height)
Generate community graph for selected indicators.
|
File |
getRsufiResultPopChart(Project project,
File resultDirectory,
RSufiResult rsufiResult,
String species,
String indicator,
String zoneDisplayName,
String indicatorName,
String unit,
Locale locale)
Generate population graph for selected species and indicator.
|
File |
getRsufiResultPopChartData(File resultDirectory,
RSufiResult rsufiResult,
String species,
String indicator)
Genere un sous fichier CSV (qui contient un sous ensemble de estPopInd)
et qui a servit a generer le graphique.
|
Map<String,Object[]> |
getRsufiResultPopCharts(Project project,
File resultDirectory,
RSufiResult rsufiResult,
Collection<String> species,
Collection<String> indicators,
String zoneDisplayName,
org.apache.commons.collections4.map.MultiKeyMap indicatorMap,
Locale locale,
int width,
int height)
Generate population graph for selected species and indicator.
|
protected CoserBusinessConfig config
protected CommonService commonService
public PublicationService(CoserBusinessConfig config)
public Map<String,org.jfree.chart.JFreeChart> getCompareCatchLengthGraph(Project project, AbstractDataContainer container, Collection<String> speciesCollection)
project
- projectcontainer
- data containerspeciesCollection
- utilisé pour n'avoir qu'une partie des especes (can be null)protected org.jfree.chart.JFreeChart displayGraph(org.jfree.data.category.CategoryDataset categoryDataSet, String title)
public File exportErrorsAsHTML(Project project, AbstractDataContainer container, List<ControlError> validationErrors) throws CoserBusinessException
project
- projectcontainer
- data containervalidationErrors
- errors listCoserBusinessException
protected void exportErrorsAsHTML(Project project, AbstractDataContainer container, List<ControlError> validationErrors, Writer out, boolean includeProjectInfo) throws CoserBusinessException, IOException
project
- projectcontainer
- data containervalidationErrors
- errors listincludeProjectInfo
- add project info to generate persistant pdfCoserBusinessException
IOException
public File extractControlLogAsHTML(Project project, Control control) throws CoserBusinessException
project
- projectcontrol
- data containerCoserBusinessException
AbstractDataContainer.getHistoryCommands()
protected void extractControlLogAsHTML(Project project, Control control, Writer out) throws CoserBusinessException, IOException
project
- projectcontrol
- data containerout
- output streamCoserBusinessException
IOException
public void extractControlLogAsPDF(Project project, Control control, List<ControlError> validationErrors, File pdfFile) throws CoserBusinessException
project
- projectcontrol
- data containervalidationErrors
- pdfFile
- output pdf fileCoserBusinessException
AbstractDataContainer.getHistoryCommands()
public File extractSelectionLogAsHTML(Project project, Selection selection) throws CoserBusinessException
project
- projectselection
- data containerCoserBusinessException
AbstractDataContainer.getHistoryCommands()
protected void extractSelectionLogAsHTML(Project project, Selection selection, Writer out) throws IOException, CoserBusinessException
project
- projectselection
- data containerout
- output streamIOException
CoserBusinessException
AbstractDataContainer.getHistoryCommands()
protected void extractProjectReport(Project project, Writer out) throws IOException
project
- projectout
- streamIOException
public void extractSelectionLogAsPDF(Project project, Selection selection, File pdfFile) throws CoserBusinessException
project
- projectselection
- data containerCoserBusinessException
AbstractDataContainer.getHistoryCommands()
protected void extractHistoryCommandReport(Project project, AbstractDataContainer container, Writer out) throws CoserBusinessException, IOException
project
- projectcontainer
- data containerout
- output streamCoserBusinessException
IOException
public File getRsufiResultComChart(Project project, File resultDirectory, RSufiResult rsufiResult, File codeTypeEspecesFile, String indicator, String list, String zoneDisplayName, String indicatorName, String unit, Locale locale) throws CoserBusinessException
project
- projectresultDirectory
- result directoryrsufiResult
- rsufiresultcodeTypeEspecesFile
- le fichier contenant les code type espece (specifique au projet)indicator
- indicatorlist
- indicator's list (can be null
: none selected)zoneDisplayName
- zone full nameindicatorName
- indicatorName localizedunit
- data unitlocale
- localeCoserBusinessException
public File getRsufiResultPopChart(Project project, File resultDirectory, RSufiResult rsufiResult, String species, String indicator, String zoneDisplayName, String indicatorName, String unit, Locale locale) throws CoserBusinessException
project
- projectresultDirectory
- result directoryrsufiResult
- rsufi resultspecies
- speciesindicator
- indicatorzoneDisplayName
- zone full nameindicatorName
- indicatorName localizedunit
- data unitlocale
- localeCoserBusinessException
public Map<String,Object[]> getRsufiResultComCharts(Project project, File resultDirectory, RSufiResult rsufiResult, File codeTypeEspecesFile, Collection<String> indicators, String zoneDisplayName, org.apache.commons.collections4.map.MultiKeyMap indicatorMap, Locale locale, int width, int height) throws CoserBusinessException
project
- projectresultDirectory
- result directoryrsufiResult
- rsufiresultcodeTypeEspecesFile
- le fichier contenant les code type espece (specifique au projet)indicator
- indicatorzoneDisplayName
- zone full nameindicatorName
- indicatorName localizedunit
- data unitlocale
- localewidth
- graph widthheight
- graph heightCoserBusinessException
public Map<String,Object[]> getRsufiResultPopCharts(Project project, File resultDirectory, RSufiResult rsufiResult, Collection<String> species, Collection<String> indicators, String zoneDisplayName, org.apache.commons.collections4.map.MultiKeyMap indicatorMap, Locale locale, int width, int height) throws CoserBusinessException
project
- projectresultDirectory
- result directoryrsufiResult
- rsufi resultspecies
- speciesindicator
- indicatorzoneDisplayName
- zone full nameindicatorName
- indicatorName localizedunit
- data unitlocale
- localewidth
- graph widthheight
- graph heightCoserBusinessException
public File getRsufiResultComChartData(File resultDirectory, RSufiResult rsufiResult, String indicator, String list) throws CoserBusinessException
resultDirectory
- result directoryrsufiResult
- rsufi resultindicator
- indicatorlist
- indicator's list (if null
look for pop indicators or no list selectedCoserBusinessException
public File getRsufiResultPopChartData(File resultDirectory, RSufiResult rsufiResult, String species, String indicator) throws CoserBusinessException
resultDirectory
- result directoryrsufiResult
- rsufi resultspecies
- speciesindicator
- indicatorCoserBusinessException
Copyright © 2010–2015 Ifremer. All rights reserved.