Class DataCiteMDSConnector


  • public class DataCiteMDSConnector
    extends java.lang.Object
    DataCiteMDSConnector provides the interface between the DataCite Rest-API and eDAL.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - if Response 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 - if Response is not a good response.
      • getNextFreeDOI

        public int getNextFreeDOI​(int year,
                                  int startDoi,
                                  java.lang.String datacentre)