public class EZIDRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
EZIDResponse |
create(String name,
Map<String,String> metadata)
Create an identifier with a given name.
|
EZIDResponse |
delete(String name)
Destroy a reserved identifier.
|
EZIDResponse |
lookup(String name)
Fetch the metadata bound to an identifier.
|
EZIDResponse |
mint(Map<String,String> metadata)
Ask EZID to create a unique identifier and return its name.
|
EZIDResponse |
modify(String name,
Map<String,String> metadata)
Alter the metadata bound to an identifier.
|
EZIDResponse |
withdraw(String name)
Remove a public identifier from view.
|
EZIDResponse |
withdraw(String name,
String reason)
Remove a public identifier from view, with a reason.
|
public EZIDResponse lookup(String name) throws IdentifierException, IOException, URISyntaxException
IdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxExceptionpublic EZIDResponse create(String name, Map<String,String> metadata) throws IOException, IdentifierException, URISyntaxException
metadata.metadata - ANVL-encoded key/value pairs.IOExceptionIdentifierExceptionURISyntaxExceptionpublic EZIDResponse mint(Map<String,String> metadata) throws IOException, IdentifierException, URISyntaxException
metadata.metadata - ANVL-encoded key/value pairs.IOExceptionIdentifierExceptionURISyntaxExceptionpublic EZIDResponse modify(String name, Map<String,String> metadata) throws IOException, IdentifierException, URISyntaxException
metadata - fields to be altered. Leave the value of a field's empty
to delete the field.IOExceptionIdentifierExceptionURISyntaxExceptionpublic EZIDResponse delete(String name) throws IOException, IdentifierException, URISyntaxException
public EZIDResponse withdraw(String name) throws IOException, IdentifierException, URISyntaxException
public EZIDResponse withdraw(String name, String reason) throws IOException, IdentifierException, URISyntaxException
reason - annotation for the item's unavailability.IOExceptionIdentifierExceptionURISyntaxExceptionCopyright © 2016 DuraSpace. All Rights Reserved.