Package org.dspace.submit.lookup
Class CrossRefOnlineDataLoader
- java.lang.Object
-
- org.dspace.submit.lookup.NetworkSubmissionLookupDataLoader
-
- org.dspace.submit.lookup.CrossRefOnlineDataLoader
-
- All Implemented Interfaces:
gr.ekt.bte.core.DataLoader,SubmissionLookupDataLoader
public class CrossRefOnlineDataLoader extends NetworkSubmissionLookupDataLoader
- Author:
- Andrea Bollini, Kostas Stamatis, Luigi Andrea Pascarelli, Panagiotis Koutsourakis
-
-
Field Summary
Fields Modifier and Type Field Description protected StringapiKeyprotected CrossRefServicecrossrefServiceprotected intmaxResultsprotected booleansearchProvider
-
Constructor Summary
Constructors Constructor Description CrossRefOnlineDataLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApiKey()List<gr.ekt.bte.core.Record>getByIdentifier(Context context, Map<String,Set<String>> keys)intgetMaxResults()List<String>getSupportedIdentifiers()booleanisSearchProvider()List<gr.ekt.bte.core.Record>search(Context context, String title, String author, int year)voidsetApiKey(String apiKey)voidsetCrossrefService(CrossRefService crossrefService)voidsetMaxResults(int maxResults)voidsetSearchProvider(boolean searchProvider)-
Methods inherited from class org.dspace.submit.lookup.NetworkSubmissionLookupDataLoader
convertFields, getByDOIs, getFieldMap, getIdentifiers, getRecords, getRecords, getSearchTerms, setFieldMap, setIdentifiers, setProviderName, setSearchTerms
-
-
-
-
Field Detail
-
crossrefService
protected CrossRefService crossrefService
-
searchProvider
protected boolean searchProvider
-
apiKey
protected String apiKey
-
maxResults
protected int maxResults
-
-
Method Detail
-
setSearchProvider
public void setSearchProvider(boolean searchProvider)
-
setCrossrefService
public void setCrossrefService(CrossRefService crossrefService)
-
getByIdentifier
public List<gr.ekt.bte.core.Record> getByIdentifier(Context context, Map<String,Set<String>> keys) throws org.apache.http.HttpException, IOException
- Throws:
org.apache.http.HttpExceptionIOException
-
search
public List<gr.ekt.bte.core.Record> search(Context context, String title, String author, int year) throws org.apache.http.HttpException, IOException
- Throws:
org.apache.http.HttpExceptionIOException
-
isSearchProvider
public boolean isSearchProvider()
-
getApiKey
public String getApiKey()
-
setApiKey
public void setApiKey(String apiKey)
-
getMaxResults
public int getMaxResults()
-
setMaxResults
public void setMaxResults(int maxResults)
-
-