Package org.dspace.identifier
Class DOI
- java.lang.Object
-
- org.dspace.identifier.DOI
-
- All Implemented Interfaces:
ReloadableEntity<Integer>,Identifier
@Entity public class DOI extends Object implements Identifier, ReloadableEntity<Integer>
DOI identifiers.- Author:
- Pascal-Nicolas Becker
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDOI()Protected constructor, create object using:DOIService.create(Context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDoi()DSpaceObjectgetDSpaceObject()IntegergetID()The unique identifier of this entity instance.IntegergetResourceTypeId()returns the resource type of the DSpaceObject the DOI is or was assigned to.IntegergetStatus()voidsetDoi(String doi)voidsetDSpaceObject(DSpaceObject dSpaceObject)voidsetStatus(Integer status)
-
-
-
Field Detail
-
SCHEME
public static final String SCHEME
- See Also:
- Constant Field Values
-
RESOLVER
public static final String RESOLVER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DOI
protected DOI()
Protected constructor, create object using:DOIService.create(Context)
-
-
Method Detail
-
getID
public Integer getID()
Description copied from interface:ReloadableEntityThe unique identifier of this entity instance.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- the value of the primary key for this instance.
-
getDoi
public String getDoi()
-
setDoi
public void setDoi(String doi)
-
getDSpaceObject
public DSpaceObject getDSpaceObject()
-
setDSpaceObject
public void setDSpaceObject(DSpaceObject dSpaceObject)
-
getResourceTypeId
public Integer getResourceTypeId()
returns the resource type of the DSpaceObject the DOI is or was assigned to. The resource type is set automatically when a DOI is assigned to a DSpaceObject, usingsetDSpaceObject(org.dspace.content.DSpaceObject).- Returns:
- the integer constant of the DSO, see
Constants
-
getStatus
public Integer getStatus()
-
setStatus
public void setStatus(Integer status)
-
-