Package org.dspace.submit.lookup
Class CiNiiOnlineDataLoader
- java.lang.Object
-
- org.dspace.submit.lookup.NetworkSubmissionLookupDataLoader
-
- org.dspace.submit.lookup.CiNiiOnlineDataLoader
-
- All Implemented Interfaces:
gr.ekt.bte.core.DataLoader,SubmissionLookupDataLoader
public class CiNiiOnlineDataLoader extends NetworkSubmissionLookupDataLoader
Load metadata from CiNii RDF API- Author:
- Keiji Suzuki
-
-
Field Summary
Fields Modifier and Type Field Description protected StringappIdApplication id to use CiNiiprotected CiNiiServiceciniiServiceprotected intmaxResultsmax result number to returnprotected booleansearchProvider
-
Constructor Summary
Constructors Constructor Description CiNiiOnlineDataLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppId()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)voidsetAppId(String appId)voidsetCiNiiService(CiNiiService ciniiService)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
-
ciniiService
protected CiNiiService ciniiService
-
searchProvider
protected boolean searchProvider
-
appId
protected String appId
Application id to use CiNii
-
maxResults
protected int maxResults
max result number to return
-
-
Method Detail
-
setCiNiiService
public void setCiNiiService(CiNiiService ciniiService)
-
setSearchProvider
public void setSearchProvider(boolean searchProvider)
-
isSearchProvider
public boolean isSearchProvider()
-
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
-
getAppId
public String getAppId()
-
setAppId
public void setAppId(String appId)
-
getMaxResults
public int getMaxResults()
-
setMaxResults
public void setMaxResults(int maxResults)
-
-