Package org.gbif.api.model.common
Enum Class DoiStatus
- All Implemented Interfaces:
Serializable
,Comparable<DoiStatus>
,Constable
This enumeration represents the status of a DOI identifier.
It represents both EZID and DataCite DOIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe identifier once was registered, but the object referenced by the identifier is not available.A failed DOI status indicates we could not communicate with DataCite cause we had invalid metadata.A NEW DOI status indicates the DOI has been minted in GBIF only and has not yet been passed on to DataCite.A public, registered DOI.The identifier is known only to the DOI registration agency. -
Method Summary
Modifier and TypeMethodDescriptionstatic DoiStatus
fromString
(String status) getEzid()
boolean
static DoiStatus
Returns the enum constant of this class with the specified name.static DoiStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NEW
A NEW DOI status indicates the DOI has been minted in GBIF only and has not yet been passed on to DataCite. -
RESERVED
The identifier is known only to the DOI registration agency. This status may be used to reserve an identifier name without advertising the identifier's existence to resolvers and other external services. A reserved identifier may be fully deleted. -
REGISTERED
A public, registered DOI. It's target URL is known to public resolvers and other external services. It may be marked as DELETED in the future, but never again as RESERVED. -
DELETED
The identifier once was registered, but the object referenced by the identifier is not available. This is known as an "inactive" DOI in DataCite and "unavailable" in EZID.
In EZID the identifier redirects to an EZID-provided "tombstone" page regardless of its target URL. In DataCite the original target URL is still available. -
FAILED
A failed DOI status indicates we could not communicate with DataCite cause we had invalid metadata. This DOI then requires a manual cleanup. The status is GBIF internal only!
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getEzid
- Returns:
- the identifier status value used in EZID.
-
isRegistered
- Returns:
- true if the identifier is registered
-
fromString
-