Package psidev.psi.mi.jami.bridges.chebi
Class CachedChebiFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
-
- psidev.psi.mi.jami.bridges.chebi.CachedChebiFetcher
-
- All Implemented Interfaces:
BioactiveEntityFetcher
,CachedFetcher
,InteractorFetcher<BioactiveEntity>
public class CachedChebiFetcher extends AbstractCachedFetcher implements BioactiveEntityFetcher
A Cached version of the chebi fetcher- Since:
09/09/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHEBI_CACHE_NAME
ConstantCHEBI_CACHE_NAME="chebi-cache"
-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
EHCACHE_CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description CachedChebiFetcher()
Constructor for CachedChebiFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<BioactiveEntity>
fetchByIdentifier(String identifier)
Takes a string identifier and returns the interactors which match.Collection<BioactiveEntity>
fetchByIdentifiers(Collection<String> identifiers)
Takes a collection of string identifiers and returns the interactors which match.-
Methods inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
clearCache, getFromCache, initialiseCache, initialiseCache, shutDownCache, storeInCache
-
-
-
-
Field Detail
-
CHEBI_CACHE_NAME
public static final String CHEBI_CACHE_NAME
ConstantCHEBI_CACHE_NAME="chebi-cache"
- See Also:
- Constant Field Values
-
-
Method Detail
-
fetchByIdentifier
public Collection<BioactiveEntity> fetchByIdentifier(String identifier) throws BridgeFailedException
Takes a string identifier and returns the interactors which match. Returns an empty collection of no entries are returned- Specified by:
fetchByIdentifier
in interfaceInteractorFetcher<BioactiveEntity>
- Parameters:
identifier
- The identifier to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- A problem has been encountered when contacting the service
-
fetchByIdentifiers
public Collection<BioactiveEntity> fetchByIdentifiers(Collection<String> identifiers) throws BridgeFailedException
Takes a collection of string identifiers and returns the interactors which match. Returns an empty collection of no entries are returned.- Specified by:
fetchByIdentifiers
in interfaceInteractorFetcher<BioactiveEntity>
- Parameters:
identifiers
- The identifiers to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- if any.
-
-