public interface CNCore
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_VERSION |
static final String SERVICE_VERSION
Date ping() throws NotImplemented, ServiceFailure, InsufficientResources
NotImplemented
ServiceFailure
InsufficientResources
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CN_core.ping
ObjectFormatList listFormats() throws ServiceFailure, NotImplemented
ServiceFailure
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.listFormats
ObjectFormat getFormat(ObjectFormatIdentifier formatid) throws ServiceFailure, NotFound, NotImplemented, InvalidRequest
ServiceFailure
NotFound
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getFormat
ObjectFormatIdentifier addFormat(Session session, ObjectFormatIdentifier formatid, ObjectFormat format) throws ServiceFailure, NotFound, NotImplemented, InvalidRequest, NotAuthorized, InvalidToken
ServiceFailure
NotFound
NotImplemented
InvalidRequest
NotAuthorized
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getFormat
ChecksumAlgorithmList listChecksumAlgorithms() throws ServiceFailure, NotImplemented
ServiceFailure
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getChecksumAlgorithms
Log getLogRecords(Session session, Date fromDate, Date toDate, String event, String pidFilter, Integer start, Integer count) throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented, InsufficientResources
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotImplemented
InsufficientResources
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getLogRecords
NodeList listNodes() throws NotImplemented, ServiceFailure
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.listNodes
Identifier reserveIdentifier(Session session, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, NotImplemented, InvalidRequest
InvalidToken
ServiceFailure
NotAuthorized
IdentifierNotUnique
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.reserveIdentifier
Node getCapabilities() throws NotImplemented, ServiceFailure
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getCapabilities
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/CN_APIs.html#CNCore.generateIdentifier
boolean hasReservation(Session session, Subject subject, Identifier id) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, NotImplemented, InvalidRequest
InvalidToken
ServiceFailure
NotFound
NotAuthorized
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.hasReservation
Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, NotImplemented, InvalidRequest
InvalidToken
ServiceFailure
NotAuthorized
IdentifierNotUnique
UnsupportedType
InsufficientResources
InvalidSystemMetadata
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.create
Identifier registerSystemMetadata(Session session, Identifier pid, SystemMetadata sysmeta) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.registerSystemMetadata
boolean synchronize(Session session, Identifier pid) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.synchronize
boolean updateSystemMetadata(Session session, Identifier pid, SystemMetadata sysmeta) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.updateSystemMetadata
boolean setObsoletedBy(Session session, Identifier pid, Identifier obsoletedByPid, long serialVersion) throws NotImplemented, NotFound, NotAuthorized, ServiceFailure, InvalidRequest, InvalidToken, VersionMismatch
NotImplemented
NotFound
NotAuthorized
ServiceFailure
InvalidRequest
InvalidToken
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.setObsoletedBy
Identifier delete(Session session, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.delete
Identifier archive(Session session, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.archive
Copyright © 2020. All Rights Reserved.