public class DOIOrganiser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DOIService |
doiService |
protected HandleService |
handleService |
protected ItemService |
itemService |
| Constructor and Description |
|---|
DOIOrganiser(Context context,
DOIIdentifierProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String identifier) |
void |
list(String processName,
PrintStream out,
PrintStream err,
Integer... status) |
static void |
main(String[] args) |
void |
register(DOI doiRow) |
void |
reserve(DOI doiRow) |
DOI |
resolveToDOI(String identifier)
Finds the TableRow in the Doi table that belongs to the specified
DspaceObject.
|
static void |
runCLI(Context context,
DOIOrganiser organiser,
String[] args) |
void |
update(DOI doiRow) |
protected HandleService handleService
protected ItemService itemService
protected DOIService doiService
public DOIOrganiser(Context context, DOIIdentifierProvider provider)
public static void main(String[] args)
public static void runCLI(Context context, DOIOrganiser organiser, String[] args)
public void list(String processName, PrintStream out, PrintStream err, Integer... status)
public void register(DOI doiRow) throws SQLException
SQLExceptionpublic void reserve(DOI doiRow) throws SQLException
SQLExceptionpublic void update(DOI doiRow)
public void delete(String identifier) throws SQLException
SQLExceptionpublic DOI resolveToDOI(String identifier) throws SQLException, IllegalArgumentException, IllegalStateException, IdentifierException
identifier - Either an ItemID, a DOI or a handle. If the identifier
contains digits only we treat it as ItemID, if not we try to find a
matching doi or a handle (in this order).SQLExceptionIllegalArgumentException - If the identifier is null, an empty
String or specifies an DSpaceObject that is not an item. We currently
support DOIs for items only, but this may change once...IllegalStateException - If the identifier was a valid DOI that is
not stored in our database or if it is a handle that is not bound to an
DSpaceObject.IdentifierExceptionCopyright © 2016 DuraSpace. All Rights Reserved.