Class DataCiteRestConnector
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.reference.datacite.DataCiteRestConnector
-
public class DataCiteRestConnector extends java.lang.Object
Connector to the REST-API to search for DOIs.
-
-
Constructor Summary
Constructors Constructor Description DataCiteRestConnector(EdalConfiguration configuration)
Constructor to initialize a REST-Connection to DateCite.
-
Method Summary
Modifier and Type Method Description boolean
checkIfPrefixIsRegisteredForDataCenterId()
java.lang.String
generateNewDOI(int year)
Generate a new DOI by counting current DOI
-
-
-
Constructor Detail
-
DataCiteRestConnector
public DataCiteRestConnector(EdalConfiguration configuration) throws DataCiteException
Constructor to initialize a REST-Connection to DateCite.- Parameters:
configuration
- theEdalConfiguration
to use- Throws:
DataCiteException
- if unable to create DataCiteRestConnector.
-
-
Method Detail
-
generateNewDOI
public java.lang.String generateNewDOI(int year) throws DataCiteException
Generate a new DOI by counting current DOI- Parameters:
year
- the current year.- Returns:
- the new DOI
- Throws:
DataCiteException
- if unable to generate new DOI.
-
checkIfPrefixIsRegisteredForDataCenterId
public boolean checkIfPrefixIsRegisteredForDataCenterId()
-
-