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
name - identifier nameIdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.public EZIDResponse create(String name, Map<String,String> metadata) throws IOException, IdentifierException, URISyntaxException
metadata.name - identifier namemetadata - ANVL-encoded key/value pairs.IdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.public EZIDResponse mint(Map<String,String> metadata) throws IOException, IdentifierException, URISyntaxException
metadata.metadata - ANVL-encoded key/value pairs.IdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.public EZIDResponse modify(String name, Map<String,String> metadata) throws IOException, IdentifierException, URISyntaxException
name - identifier namemetadata - metadata fields to be altered. Leave the value of a field's empty
to delete the field.IdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.public EZIDResponse delete(String name) throws IOException, IdentifierException, URISyntaxException
name - identifier nameIdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.public EZIDResponse withdraw(String name) throws IOException, IdentifierException, URISyntaxException
name - identifier nameIdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.public EZIDResponse withdraw(String name, String reason) throws IOException, IdentifierException, URISyntaxException
name - identifier namereason - annotation for the item's unavailability.IdentifierException - if the response is error or body malformed.IOException - if the HTTP request fails.URISyntaxException - if host or authority is bad.Copyright © 2019 DuraSpace. All rights reserved.