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
Fields inherited from class edu.ucsb.nceas.metacat.doi.DOIService
autoPublishDOI, doiEnabled, password, PRIMARY_SHOULDER_INDEX, serviceBaseUrl, shoulderMap, uriTemplate, username
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v1.Identifier
Generate a DOI using the EZID service as configuredvoid
publishIdentifier
(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier identifier) Make the status of the identifier to be publicprotected void
submitDOIMetadata
(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:
submitDOIMetadata
in 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.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
DOIException
InterruptedException
IOException
-
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:
generateDOI
in classDOIService
- Returns:
- Throws:
edu.ucsb.nceas.ezid.EZIDException
org.dataone.service.exceptions.InvalidRequest
DOIException
-
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:
publishIdentifier
in classDOIService
- Parameters:
session
- the subjects call the methodidentifer
- the identifier of the object which will be published.- Throws:
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.InsufficientResources
org.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.IdentifierNotUnique
InterruptedException
DOIException
-