public abstract class AbstractLegacyCommand<R extends CoserRequest> extends Object implements CoserCommand<LegacyResultRepository,R>
Modifier and Type | Field and Description |
---|---|
protected CoserRequestContext |
context |
protected LegacyResultRepository |
repository |
Constructor and Description |
---|
AbstractLegacyCommand() |
Modifier and Type | Method and Description |
---|---|
protected DataStorage |
extractCommunity(com.google.common.base.Predicate<String[]> predicate) |
protected DataStorage |
extractPopulation(com.google.common.base.Predicate<String[]> predicate) |
File |
extractRSUfiData(File zoneDirectory) |
protected org.jfree.chart.JFreeChart |
generateCommunityChart(String zone,
String indicator,
String speciesList) |
protected org.jfree.chart.JFreeChart |
generatePopulationChart(String zone,
String species,
String indicator) |
Charts |
getCharts() |
protected Set<String> |
getCommunityIndicators() |
protected Map<String,String> |
getCommunitySpeciesMap() |
CoserBusinessConfig |
getConfig() |
IndicatorMap |
getIndicatorsMap() |
Locale |
getLocale() |
protected Map<String,String> |
getMapSpeciesMap() |
protected Set<String> |
getPopulationIndicators() |
protected Set<String> |
getPopulationIndicators(String species) |
protected Set<String> |
getPopulationSpecies() |
protected Map<String,String> |
getPopulationSpeciesMap() |
Reports |
getReports() |
ZoneMap |
getZonesMap() |
void |
loadSelectionData() |
protected ExtractRawDataAndResultsResult |
newExtractRawDataAndResultsResult(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) |
protected FileResult |
newFileResult(File file) |
protected MapResult |
newMapResult(Map<String,String> map) |
protected VoidResult |
newVoidResult() |
void |
setRepository(LegacyResultRepository repository) |
void |
setRequestContext(CoserRequestContext context) |
protected void |
walkOnCommunity(DataStorageWalker walker) |
protected void |
walkOnCommunity(com.google.common.base.Predicate<String[]> predicate,
DataStorageWalker walker) |
protected void |
walkOnPopulation(DataStorageWalker walker) |
protected void |
walkOnPopulation(com.google.common.base.Predicate<String[]> predicate,
DataStorageWalker walker) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, execute
protected CoserRequestContext context
protected LegacyResultRepository repository
public void setRequestContext(CoserRequestContext context)
setRequestContext
in interface CoserCommand<LegacyResultRepository,R extends CoserRequest>
public void setRepository(LegacyResultRepository repository)
setRepository
in interface CoserCommand<LegacyResultRepository,R extends CoserRequest>
public IndicatorMap getIndicatorsMap()
public ZoneMap getZonesMap()
public Reports getReports()
public Charts getCharts()
public CoserBusinessConfig getConfig()
public Locale getLocale()
public void loadSelectionData()
protected FileResult newFileResult(File file)
protected VoidResult newVoidResult()
protected ExtractRawDataAndResultsResult newExtractRawDataAndResultsResult(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)
protected void walkOnCommunity(DataStorageWalker walker)
protected void walkOnCommunity(com.google.common.base.Predicate<String[]> predicate, DataStorageWalker walker)
protected void walkOnPopulation(DataStorageWalker walker)
protected void walkOnPopulation(com.google.common.base.Predicate<String[]> predicate, DataStorageWalker walker)
protected DataStorage extractCommunity(com.google.common.base.Predicate<String[]> predicate)
protected DataStorage extractPopulation(com.google.common.base.Predicate<String[]> predicate)
protected org.jfree.chart.JFreeChart generateCommunityChart(String zone, String indicator, String speciesList)
Copyright © 2010–2015 Ifremer. All rights reserved.