public class DataCiteSearchConnector extends Object
| Constructor and Description |
|---|
DataCiteSearchConnector()
Constructor to initialize a SolrServer to DateCite.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateNewDOI(int year)
Generate a new DOI by counting current DOI
|
int |
getNumberOfDOIs(int year)
Get the number of currently registered DOIs
|
public DataCiteSearchConnector()
throws DataCiteException
DataCiteException - if unable to create SolrServer.public int getNumberOfDOIs(int year)
throws DataCiteException
year - the current year.org.apache.solr.client.solrj.SolrServerException - if unable to query DOIsDataCiteExceptionpublic String generateNewDOI(int year) throws DataCiteException
year - the current year.org.apache.solr.client.solrj.SolrServerException - if unable to generate new DOI.DataCiteExceptionCopyright © 2014 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.