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