Class CachedUniprotProteinFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
-
- psidev.psi.mi.jami.bridges.uniprot.CachedUniprotProteinFetcher
-
- All Implemented Interfaces:
CachedFetcher,InteractorFetcher<Protein>,ProteinFetcher
public class CachedUniprotProteinFetcher extends AbstractCachedFetcher implements ProteinFetcher
Created with IntelliJ IDEA.- Since:
- 14/05/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAMEConstantCACHE_NAME="uniprot-service-cache"-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
EHCACHE_CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description CachedUniprotProteinFetcher()Constructor for CachedUniprotProteinFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Protein>fetchByIdentifier(String identifier)Takes a string identifier and returns the interactors which match.Collection<Protein>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
-
CACHE_NAME
public static final String CACHE_NAME
ConstantCACHE_NAME="uniprot-service-cache"- See Also:
- Constant Field Values
-
-
Method Detail
-
fetchByIdentifier
public Collection<Protein> 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:
fetchByIdentifierin interfaceInteractorFetcher<Protein>- 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<Protein> 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:
fetchByIdentifiersin interfaceInteractorFetcher<Protein>- Parameters:
identifiers- The identifiers to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException- if any.
-
-