public class EchoBaseResultRepository extends Object implements ResultRepository
Modifier and Type | Field and Description |
---|---|
protected String |
id
Unique id of the result repository.
|
protected com.google.common.base.Function<File,String> |
mapFileToSpeciesCode
Transform a map result species file to the species code.
|
protected FilenameFilter |
mapSpeciesFilenameFilter
Filter map result species file.
|
protected EchoBaseProject |
project
Project definition.
|
protected com.google.common.base.Function<String,String> |
speciesCodeToMapFile
Transform a species code to his map result species filename.
|
protected SpeciesMap |
speciesMap
Cache of species definition.
|
Constructor and Description |
---|
EchoBaseResultRepository(EchoBaseProject project) |
protected final EchoBaseProject project
protected final com.google.common.base.Function<File,String> mapFileToSpeciesCode
protected final com.google.common.base.Function<String,String> speciesCodeToMapFile
protected final FilenameFilter mapSpeciesFilenameFilter
protected SpeciesMap speciesMap
protected final String id
public EchoBaseResultRepository(EchoBaseProject project)
public String getId()
getId
in interface ResultRepository
public EchoBaseResultRepositoryType getResultRepositoryType()
getResultRepositoryType
in interface ResultRepository
public File getBasedir()
getBasedir
in interface ResultRepository
public String getProjectName()
getProjectName
in interface ResultRepository
public String getSurveyName()
getSurveyName
in interface ResultRepository
public String getZone()
getZone
in interface ResultRepository
public boolean isMapsResult()
isMapsResult
in interface ResultRepository
public boolean isIndicatorsResult()
isIndicatorsResult
in interface ResultRepository
public boolean isDataResult()
isDataResult
in interface ResultRepository
public boolean isPubliableResult()
isPubliableResult
in interface ResultRepository
public EchoBaseProject getProject()
public boolean matchFacade(CoserRequestFacadeAware request)
public boolean matchZone(CoserRequestZoneAware request)
public boolean matchZone(CoserRequestZoneListAware request)
public boolean matchRepositoryType(CoserRequestRepositoryTypeAware request)
public boolean matchResultType(CoserRequestRepositoryResultTypeAware request)
public boolean matchExtractTypeList(CoserRequestExtractTypeListAware request)
public boolean matchCommunity(com.google.common.base.Predicate<String[]> predicate)
public boolean matchPopulation(com.google.common.base.Predicate<String[]> predicate)
public SpeciesMap getSpeciesMap()
public DataStorage getPopulationIndicatorStorage()
public DataStorage getCommunityIndicatorStorage()
Copyright © 2010–2015 Ifremer. All rights reserved.