Class CachedUniprotTaxonomyFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
-
- psidev.psi.mi.jami.bridges.uniprot.taxonomy.CachedUniprotTaxonomyFetcher
-
- All Implemented Interfaces:
CachedFetcher
,OrganismFetcher
public class CachedUniprotTaxonomyFetcher extends AbstractCachedFetcher implements OrganismFetcher
Created with IntelliJ IDEA.- Since:
- 13/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_NAME
ConstantCACHE_NAME="uniprot-taxonomy-service-cache"
-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
EHCACHE_CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description CachedUniprotTaxonomyFetcher()
Constructor for CachedUniprotTaxonomyFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Organism
fetchByTaxID(int taxID)
Finds the complete organism record matching the provided TaxID number.Collection<Organism>
fetchByTaxIDs(Collection<Integer> taxIDs)
Finds the complete organism records matching the provided TaxID numbers.-
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-taxonomy-service-cache"
- See Also:
- Constant Field Values
-
-
Method Detail
-
fetchByTaxID
public Organism fetchByTaxID(int taxID) throws BridgeFailedException
Finds the complete organism record matching the provided TaxID number.- Specified by:
fetchByTaxID
in interfaceOrganismFetcher
- Parameters:
taxID
- The taxID to search for- Returns:
- A matching organism, or null if one could not be found.
- Throws:
BridgeFailedException
- if any.
-
fetchByTaxIDs
public Collection<Organism> fetchByTaxIDs(Collection<Integer> taxIDs) throws BridgeFailedException
Finds the complete organism records matching the provided TaxID numbers.- Specified by:
fetchByTaxIDs
in interfaceOrganismFetcher
- Parameters:
taxIDs
- A collection of taxIDs to search for.- Returns:
- A collection of the matching organisms.
- Throws:
BridgeFailedException
- if any.
-
-