Class CachedEuroPubmedCentralFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
-
- psidev.psi.mi.jami.bridges.europubmedcentral.CachedEuroPubmedCentralFetcher
-
- All Implemented Interfaces:
CachedFetcher
,PublicationFetcher
public class CachedEuroPubmedCentralFetcher extends AbstractCachedFetcher implements PublicationFetcher
A cached version of the EuroPubmedCentralFetcher.- Since:
- 31/07/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_NAME
ConstantCACHE_NAME="europubmedcentral-service-cache"
-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
EHCACHE_CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description CachedEuroPubmedCentralFetcher()
Constructor for CachedEuroPubmedCentralFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Publication
fetchByIdentifier(String identifier, String source)
Uses the identifier to search for a publication and return a completed record.Collection<Publication>
fetchByIdentifiers(Map<String,Collection<String>> identifiers)
Uses the identifiers to search for publications and return completed records.-
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="europubmedcentral-service-cache"
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CachedEuroPubmedCentralFetcher
public CachedEuroPubmedCentralFetcher() throws BridgeFailedException
Constructor for CachedEuroPubmedCentralFetcher.
- Throws:
BridgeFailedException
- if any.
-
-
Method Detail
-
fetchByIdentifier
public Publication fetchByIdentifier(String identifier, String source) throws BridgeFailedException
Uses the identifier to search for a publication and return a completed record.- Specified by:
fetchByIdentifier
in interfacePublicationFetcher
- Parameters:
identifier
- The identifier of the publication to search for.source
- The database that the identifier is from (pubmed, doi, ...).- Returns:
- A completed record for the publication or null if no publication could be found.
- Throws:
BridgeFailedException
- if any.
-
fetchByIdentifiers
public Collection<Publication> fetchByIdentifiers(Map<String,Collection<String>> identifiers) throws BridgeFailedException
Uses the identifiers to search for publications and return completed records.- Specified by:
fetchByIdentifiers
in interfacePublicationFetcher
- Parameters:
identifiers
- The identifiers of the publications to search for per publication identifier source (pubmed, doi, ...).- Returns:
- Completed records for the publications.
- Throws:
BridgeFailedException
- if any.
-
-