public class DataCiteRestConnector
extends java.lang.Object
| Constructor and Description |
|---|
DataCiteRestConnector(EdalConfiguration configuration)
Constructor to initialize a REST-Connection to DateCite.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfPrefixIsRegisteredForDataCenterId() |
java.lang.String |
generateNewDOI(int year)
Generate a new DOI by counting current DOI
|
public DataCiteRestConnector(EdalConfiguration configuration) throws DataCiteException
configuration - the EdalConfiguration to useDataCiteException - if unable to create DataCiteRestConnector.public java.lang.String generateNewDOI(int year)
throws DataCiteException
year - the current year.DataCiteException - if unable to generate new DOI.public boolean checkIfPrefixIsRegisteredForDataCenterId()