public interface DOIConnector
DOIIdenfierException and set its error code in case of any errors.
For the given example you should use
DOIIdentifierException.RESERVER_FIRST as error code.| Modifier and Type | Method and Description |
|---|---|
void |
deleteDOI(Context context,
String doi)
Sends the DELETE-Request to the DOI registry.
|
boolean |
isDOIRegistered(Context context,
String doi) |
boolean |
isDOIReserved(Context context,
String doi) |
void |
registerDOI(Context context,
DSpaceObject dso,
String doi)
Sends a request to the DOI registry to register a DOI.
|
void |
reserveDOI(Context context,
DSpaceObject dso,
String doi)
Sends a request to the DOI registry to reserve a DOI.
|
void |
updateMetadata(Context context,
DSpaceObject dso,
String doi)
Sends a request to the DOI registry to update metadata for a DOI.
|
boolean isDOIReserved(Context context, String doi) throws DOIIdentifierException
DOIIdentifierExceptionboolean isDOIRegistered(Context context, String doi) throws DOIIdentifierException
DOIIdentifierExceptionvoid deleteDOI(Context context, String doi) throws DOIIdentifierException
This method sends a request to "delete" a DOI. As DOIs are persistent identifiers they should never be deleted. For example, if you send a HTTP DELETE request to the DataCite Metadata API directly, it will set the DOI to inactive.
context - doi - DOIIdentifierException - if DOI errorvoid reserveDOI(Context context, DSpaceObject dso, String doi) throws DOIIdentifierException
DOIIdentifierException and set the error code to DOIIdentifierException.DOI_ALREADY_EXISTS.context - dso - doi - DOIIdentifierException - if DOI errorvoid registerDOI(Context context, DSpaceObject dso, String doi) throws DOIIdentifierException
DOIIdentifierException.RESERVE_FIRST.context - dso - doi - DOIIdentifierException - if DOI errorvoid updateMetadata(Context context, DSpaceObject dso, String doi) throws DOIIdentifierException
context - dso - doi - DOIIdentifierException - if DOI errorCopyright © 2016 DuraSpace. All rights reserved.