public class LegacyResultRepositoryProvider extends Object implements ResultRepositoryProvider<LegacyResultRepository>
| Modifier and Type | Field and Description |
|---|---|
protected File |
basedir
Directory where are stored all legacy results.
|
protected CoserBusinessConfig |
config
//FIXME Should remove this
Application config (used to instanciate some service).
|
protected ResultType |
resultType
Hack to sanity repository
LegacyResultRepository.isMapsResult() or
LegacyResultRepository.isIndicatorsResult() flags. |
| Constructor and Description |
|---|
LegacyResultRepositoryProvider(CoserBusinessConfig config,
File basedir,
ResultType resultType) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<LegacyResultRepository> |
findAllProjectWithResult()
Retourne tous les projets qui ont des résultats.
|
LegacyResultRepositoryType |
getRepositoryType() |
Set<LegacyResultRepository> |
loadRepositories() |
protected void |
sanityRepository(LegacyResultRepository repository)
Sanity the given repository.
|
protected final File basedir
protected final CoserBusinessConfig config
protected final ResultType resultType
LegacyResultRepository.isMapsResult() or
LegacyResultRepository.isIndicatorsResult() flags.public LegacyResultRepositoryProvider(CoserBusinessConfig config, File basedir, ResultType resultType)
public LegacyResultRepositoryType getRepositoryType()
getRepositoryType in interface ResultRepositoryProvider<LegacyResultRepository>public Set<LegacyResultRepository> loadRepositories()
loadRepositories in interface ResultRepositoryProvider<LegacyResultRepository>protected Set<LegacyResultRepository> findAllProjectWithResult() throws CoserBusinessException
CoserBusinessExceptionprotected void sanityRepository(LegacyResultRepository repository)
repository - repository to sanityCopyright © 2010–2015 Ifremer. All rights reserved.