Package edu.ucsb.nceas.metacat.doi.ezid
Class EzidDOIService
java.lang.Object
edu.ucsb.nceas.metacat.doi.DOIService
edu.ucsb.nceas.metacat.doi.ezid.EzidDOIService
Singleton for interacting with the EZID DOI library.
Allows DOI minting/initial registration, creating and updating
existing DOI registrations.
- Author:
- leinfelder
-
Field Summary
FieldsFields inherited from class edu.ucsb.nceas.metacat.doi.DOIService
autoPublishDOI, doiEnabled, password, PRIMARY_SHOULDER_INDEX, serviceBaseUrl, shoulderMap, uriTemplate, username -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v1.IdentifierGenerate a DOI using the EZID service as configuredvoidpublishIdentifier(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier identifier) Make the status of the identifier to be publicprotected voidsubmitDOIMetadata(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v2.SystemMetadata sysMeta) Submit the metadata to the EZID service for a specific identifier(DOI).Methods inherited from class edu.ucsb.nceas.metacat.doi.DOIService
getLandingPage, refreshStatus, registerDOI
-
Field Details
-
DATACITE
- See Also:
-
-
Constructor Details
-
EzidDOIService
public EzidDOIService()Constructor
-
-
Method Details
-
submitDOIMetadata
protected void submitDOIMetadata(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v2.SystemMetadata sysMeta) throws org.dataone.service.exceptions.InvalidRequest, DOIException, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, InterruptedException, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, IOException Submit the metadata to the EZID service for a specific identifier(DOI). This implementation will be call by the registerMetadata on the super class.- Specified by:
submitDOIMetadatain classDOIService- Parameters:
identifier- the identifier to identify the metadata which will be updatedsysMeta- the system metadata associated with the identifier- Throws:
org.dataone.service.exceptions.InvalidTokenorg.dataone.service.exceptions.ServiceFailureorg.dataone.service.exceptions.NotAuthorizedorg.dataone.service.exceptions.NotFoundorg.dataone.service.exceptions.NotImplementedorg.dataone.service.exceptions.InvalidRequestDOIExceptionInterruptedExceptionIOException
-
generateDOI
public org.dataone.service.types.v1.Identifier generateDOI() throws DOIException, org.dataone.service.exceptions.InvalidRequestGenerate a DOI using the EZID service as configured- Specified by:
generateDOIin classDOIService- Returns:
- Throws:
edu.ucsb.nceas.ezid.EZIDExceptionorg.dataone.service.exceptions.InvalidRequestDOIException
-
publishIdentifier
public void publishIdentifier(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier identifier) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.UnsupportedType, org.dataone.service.exceptions.InsufficientResources, org.dataone.service.exceptions.InvalidSystemMetadata, DOIException Make the status of the identifier to be public- Specified by:
publishIdentifierin classDOIService- Parameters:
session- the subjects call the methodidentifer- the identifier of the object which will be published.- Throws:
org.dataone.service.exceptions.InvalidRequestorg.dataone.service.exceptions.NotImplementedorg.dataone.service.exceptions.NotAuthorizedorg.dataone.service.exceptions.ServiceFailureorg.dataone.service.exceptions.InvalidTokenorg.dataone.service.exceptions.NotFoundorg.dataone.service.exceptions.InvalidSystemMetadataorg.dataone.service.exceptions.InsufficientResourcesorg.dataone.service.exceptions.UnsupportedTypeorg.dataone.service.exceptions.IdentifierNotUniqueInterruptedExceptionDOIException
-