Class DataCiteMDSConnector
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.reference.datacite.DataCiteMDSConnector
-
public class DataCiteMDSConnector extends java.lang.Object
DataCiteMDSConnector
provides the interface between the DataCite Rest-API and eDAL.
-
-
Constructor Summary
Constructors Constructor Description DataCiteMDSConnector(EdalConfiguration configuration)
-
Method Summary
Modifier and Type Method Description javax.ws.rs.core.Response
getDOI(java.lang.String doi)
Request the URL for the given DOI.javax.ws.rs.core.Response
getMetadata(java.lang.String doi)
Request the meta data for the given DOI.int
getNextFreeDOI(int year, int startDoi, java.lang.String datacentre)
javax.ws.rs.core.Response
postDOI(java.lang.String doi, java.lang.String url)
Post a new DOI to DataCite.javax.ws.rs.core.Response
postMetadata(org.w3c.dom.Document xml)
Post a new meta data set for a DOI.
-
-
-
Constructor Detail
-
DataCiteMDSConnector
public DataCiteMDSConnector(EdalConfiguration configuration) throws EdalException
- Throws:
EdalException
-
-
Method Detail
-
getDOI
public javax.ws.rs.core.Response getDOI(java.lang.String doi)
Request the URL for the given DOI.- Parameters:
doi
- the requested DOI- Returns:
- a
Response
object.
-
getMetadata
public javax.ws.rs.core.Response getMetadata(java.lang.String doi)
Request the meta data for the given DOI.- Parameters:
doi
- the requested DOI- Returns:
- a
Response
object.
-
postDOI
public javax.ws.rs.core.Response postDOI(java.lang.String doi, java.lang.String url) throws DataCiteException
Post a new DOI to DataCite.- Parameters:
doi
- the new DOI.url
- the corresponding URL for the new DOi- Returns:
- a
Response
object. - Throws:
DataCiteException
- ifResponse
is not a good response.
-
postMetadata
public javax.ws.rs.core.Response postMetadata(org.w3c.dom.Document xml) throws DataCiteException
Post a new meta data set for a DOI.- Parameters:
xml
- a XML-Document
object.- Returns:
- a
Response
object. - Throws:
DataCiteException
- ifResponse
is not a good response.
-
getNextFreeDOI
public int getNextFreeDOI(int year, int startDoi, java.lang.String datacentre)
-
-