public interface MNStorage
Modifier and Type | Method and Description |
---|---|
Identifier |
archive(Session session,
Identifier id)
Deprecated.
use updateSystemMetadata() to mark content as archived
|
Identifier |
create(Session session,
Identifier pid,
InputStream object,
SystemMetadata sysmeta) |
Identifier |
delete(Session session,
Identifier id) |
Identifier |
generateIdentifier(Session session,
String scheme,
String fragment) |
Identifier |
update(Session session,
Identifier pid,
InputStream object,
Identifier newPid,
SystemMetadata sysmeta) |
boolean |
updateSystemMetadata(Session session,
Identifier pid,
SystemMetadata sysmeta) |
Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
https://purl.dataone.org/architecturev2/apis/MN_APIs.html#MN_storage.create
Identifier update(Session session, Identifier pid, InputStream object, Identifier newPid, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType, NotFound
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
NotFound
https://purl.dataone.org/architecturev2/apis/MN_APIs.html#MN_storage.update
boolean updateSystemMetadata(Session session, Identifier pid, SystemMetadata sysmeta) throws NotImplemented, NotAuthorized, NotFound, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
NotImplemented
NotAuthorized
NotFound
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/MN_APIs.html#MN_storage.updateSystemMetadata
Identifier delete(Session session, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/MN_APIs.html#MN_storage.delete
Identifier archive(Session session, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/MN_APIs.html#MN_storage.archive
Identifier generateIdentifier(Session session, String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/MN_APIs.html#MNStorage.generateIdentifier
Copyright © 2020. All Rights Reserved.