public class MultipartCNode extends MultipartD1Node implements CNode
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
defaultRestClient, defaultSession, latestRestClient, latestSession, nodeType
SERVICE_VERSION
Constructor and Description |
---|
MultipartCNode(MultipartRestClient mrc,
String nodeBaseServiceUrl)
Construct a new client-side MultipartCNode (Coordinating Node) object,
passing in the base url of the member node for calling its services.
|
MultipartCNode(MultipartRestClient mrc,
String nodeBaseServiceUrl,
Session session)
Construct a new client-side MultipartCNode (Coordinating Node) object,
passing in the base url of the member node for calling its services,
and the Session to use for connections to that node.
|
MultipartCNode(String nodeBaseServiceUrl)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ObjectFormatIdentifier |
addFormat(Session session,
ObjectFormatIdentifier formatid,
ObjectFormat format) |
boolean |
confirmMapIdentity(Session session,
Subject subject) |
Identifier |
create(Session session,
Identifier pid,
InputStream object,
SystemMetadata sysmeta) |
Subject |
createGroup(Session session,
Group group) |
boolean |
deleteReplicationMetadata(Session session,
Identifier pid,
NodeReference nodeId,
long serialVersion) |
boolean |
denyMapIdentity(Session session,
Subject subject) |
SubjectInfo |
echoCredentials(Session session) |
InputStream |
echoIndexedObject(Session session,
String queryEngine,
SystemMetadata sysmeta,
InputStream object) |
SystemMetadata |
echoSystemMetadata(Session session,
SystemMetadata sysmeta) |
InputStream |
get(Identifier pid)
Get the resource with the specified pid.
|
InputStream |
get(Session session,
Identifier pid)
Get the resource with the specified pid.
|
Node |
getCapabilities() |
Checksum |
getChecksum(Session session,
Identifier pid) |
ObjectFormat |
getFormat(ObjectFormatIdentifier formatid)
Return the ObjectFormat for the given ObjectFormatIdentifier, obtained
either from a client-cached ObjectFormatList from the ObjectFormatCache,
or from a call to the CN.
|
Log |
getLogRecords(Session session,
Date fromDate,
Date toDate,
String event,
String idFilter,
Integer start,
Integer count) |
String |
getNodeBaseServiceUrl()
Retrieve the service URL for this node.
|
Node |
getNodeCapabilities(NodeReference nodeRef) |
SubjectInfo |
getPendingMapIdentity(Session session,
Subject subject) |
SubjectInfo |
getSubjectInfo(Session session,
Subject subject) |
SystemMetadata |
getSystemMetadata(Session session,
Identifier id)
Get the system metadata from a resource with the specified guid, potentially using the local
system metadata cache if specified to do so.
|
boolean |
hasReservation(Session session,
Subject subject,
Identifier pid) |
boolean |
isNodeAuthorized(Session session,
Subject targetNodeSubject,
Identifier pid) |
ChecksumAlgorithmList |
listChecksumAlgorithms() |
ObjectFormatList |
listFormats() |
NodeList |
listNodes() |
ObjectList |
listObjects(Session session,
Date fromDate,
Date toDate,
ObjectFormatIdentifier formatid,
NodeReference nodeId,
Identifier identifier,
Integer start,
Integer count) |
SubjectInfo |
listSubjects(Session session,
String query,
String status,
Integer start,
Integer count) |
OptionList |
listViews() |
boolean |
mapIdentity(Session session,
Subject primarySubject,
Subject secondarySubject) |
NodeReference |
register(Session session,
Node node) |
Subject |
registerAccount(Session session,
Person person) |
Identifier |
registerSystemMetadata(Session session,
Identifier pid,
SystemMetadata sysmeta) |
boolean |
removeMapIdentity(Session session,
Subject subject) |
boolean |
requestMapIdentity(Session session,
Subject subject) |
Identifier |
reserveIdentifier(Session session,
Identifier pid) |
ObjectLocationList |
resolve(Session session,
Identifier pid) |
ObjectList |
search(Session session,
String queryType,
D1Url queryD1url)
A convenience method for creating a search command utilizing the D1Url
class for building the value for the query parameter.
|
ObjectList |
search(Session session,
String queryType,
String query)
see DataONE API Reference
This implementation handles URL-escaping for only the "queryType" parameter,
and always places a slash ('/') character after it.
|
ObjectList |
search(String queryType,
D1Url queryD1url)
A convenience method for creating a search command utilizing the D1Url
class for building the value for the query parameter.
|
boolean |
setAccessPolicy(Session session,
Identifier pid,
AccessPolicy accessPolicy,
long serialVersion) |
boolean |
setObsoletedBy(Session session,
Identifier pid,
Identifier obsoletedByPid,
long serialVersion) |
boolean |
setReplicationPolicy(Session session,
Identifier pid,
ReplicationPolicy policy,
long serialVersion) |
boolean |
setReplicationStatus(Session session,
Identifier pid,
NodeReference nodeRef,
ReplicationStatus status,
BaseException failure) |
Identifier |
setRightsHolder(Session session,
Identifier pid,
Subject userId,
long serialVersion) |
boolean |
synchronize(Session session,
Identifier pid) |
Subject |
updateAccount(Session session,
Person person) |
boolean |
updateGroup(Session session,
Group group) |
boolean |
updateNodeCapabilities(Session session,
NodeReference nodeid,
Node node) |
boolean |
updateReplicationMetadata(Session session,
Identifier pid,
Replica replicaMetadata,
long serialVersion) |
boolean |
updateSystemMetadata(Session session,
Identifier pid,
SystemMetadata sysmeta) |
boolean |
verifyAccount(Session session,
Subject subject) |
InputStream |
view(Session session,
String theme,
Identifier id) |
archive, archive, closeLoudly, delete, delete, describe, describe, deserializeServiceType, generateIdentifier, generateIdentifier, getChecksum, getChecksum, getLatestRequestUrl, getNodeId, getNodeType, getQueryEngineDescription, getRestClient, isAuthorized, isAuthorized, listQueryEngines, listViews, ping, query, setNodeBaseServiceUrl, setNodeId, setNodeType, systemMetadataChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLatestRequestUrl, getNodeId, getNodeType, setNodeId, setNodeType
archive, delete, generateIdentifier, ping
describe, getQueryEngineDescription, listQueryEngines, query
isAuthorized
@Deprecated public MultipartCNode(String nodeBaseServiceUrl) throws IOException, ClientSideException
nodeBaseServiceUrl
- base url for constructing service endpoints.ClientSideException
IOException
public MultipartCNode(MultipartRestClient mrc, String nodeBaseServiceUrl)
nodeBaseServiceUrl
- base url for constructing service endpoints.public MultipartCNode(MultipartRestClient mrc, String nodeBaseServiceUrl, Session session)
nodeBaseServiceUrl
- base url for constructing service endpoints.defaultSession
- - the Session object passed to the CertificateManager
to be used for establishing connectionspublic String getNodeBaseServiceUrl()
MultipartD1Node
getNodeBaseServiceUrl
in interface D1Node
getNodeBaseServiceUrl
in class MultipartD1Node
public ObjectFormatList listFormats() throws ServiceFailure, NotImplemented
listFormats
in interface CNCore
ServiceFailure
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.listFormats
public ObjectFormatIdentifier addFormat(Session session, ObjectFormatIdentifier formatid, ObjectFormat format) throws ServiceFailure, NotFound, NotImplemented, InvalidRequest, NotAuthorized, InvalidToken
addFormat
in interface CNCore
ServiceFailure
NotFound
NotImplemented
InvalidRequest
NotAuthorized
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getFormat
public ObjectFormat getFormat(ObjectFormatIdentifier formatid) throws ServiceFailure, NotFound, NotImplemented
getFormat
in interface CNCore
ServiceFailure
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getFormat
public ObjectList listObjects(Session session, Date fromDate, Date toDate, ObjectFormatIdentifier formatid, NodeReference nodeId, Identifier identifier, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in interface CNRead
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.listObjects
public ChecksumAlgorithmList listChecksumAlgorithms() throws ServiceFailure, NotImplemented
listChecksumAlgorithms
in interface CNCore
ServiceFailure
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getChecksumAlgorithms
public Log getLogRecords(Session session, Date fromDate, Date toDate, String event, String idFilter, Integer start, Integer count) throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented, InsufficientResources
getLogRecords
in interface CNCore
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotImplemented
InsufficientResources
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getLogRecords
public Node getCapabilities() throws NotImplemented, ServiceFailure
getCapabilities
in interface CNCore
getCapabilities
in class MultipartD1Node
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.getCapabilities
public NodeList listNodes() throws NotImplemented, ServiceFailure
listNodes
in interface CNCore
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.listNodes
public Node getNodeCapabilities(NodeReference nodeRef) throws NotImplemented, ServiceFailure
getNodeCapabilities
in interface CNRegister
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRegister.getNodeCapabilities
public Identifier reserveIdentifier(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, NotImplemented, InvalidRequest
reserveIdentifier
in interface CNCore
InvalidToken
ServiceFailure
NotAuthorized
IdentifierNotUnique
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.reserveIdentifier
public boolean hasReservation(Session session, Subject subject, Identifier pid) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, InvalidRequest, NotImplemented
hasReservation
in interface CNCore
InvalidToken
ServiceFailure
NotFound
NotAuthorized
InvalidRequest
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.hasReservation
public Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, NotImplemented, InvalidRequest
create
in interface CNCore
InvalidToken
ServiceFailure
NotAuthorized
IdentifierNotUnique
UnsupportedType
InsufficientResources
InvalidSystemMetadata
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.create
public boolean updateSystemMetadata(Session session, Identifier pid, SystemMetadata sysmeta) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
updateSystemMetadata
in interface CNCore
updateSystemMetadata
in class MultipartD1Node
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.updateSystemMetadata
public Identifier registerSystemMetadata(Session session, Identifier pid, SystemMetadata sysmeta) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
registerSystemMetadata
in interface CNCore
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.registerSystemMetadata
public boolean synchronize(Session session, Identifier pid) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, InvalidSystemMetadata, InvalidToken
synchronize
in interface CNCore
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
InvalidSystemMetadata
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.synchronize
public boolean setObsoletedBy(Session session, Identifier pid, Identifier obsoletedByPid, long serialVersion) throws NotImplemented, NotFound, NotAuthorized, ServiceFailure, InvalidRequest, InvalidToken, VersionMismatch
setObsoletedBy
in interface CNCore
NotImplemented
NotFound
NotAuthorized
ServiceFailure
InvalidRequest
InvalidToken
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.setObsoletedBy
public SystemMetadata getSystemMetadata(Session session, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
getSystemMetadata
in interface CNRead
getSystemMetadata
in class MultipartD1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
DataONE API Reference (MemberNode API)
,
DataONE API Reference (CoordinatingNode API)
public ObjectLocationList resolve(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
resolve
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.resolve
public InputStream get(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
MultipartD1Node
get
in class MultipartD1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
public InputStream get(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
MultipartD1Node
get
in interface CNRead
get
in class MultipartD1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
public Checksum getChecksum(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
getChecksum
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.getChecksum
public ObjectList search(String queryType, D1Url queryD1url) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented
queryD1url
- - a D1Url object containing the path and/or query elements
that will be passed to the indicated queryType. BaseUrl
and Resource segments contained in this object will be
removed/ignored.InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
public ObjectList search(Session session, String queryType, D1Url queryD1url) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented
queryD1url
- - a D1Url object containing the path and/or query elements
that will be passed to the indicated queryType.InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
public ObjectList search(Session session, String queryType, String query) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented
For example, to invoke the following solr query:
"?q=id:MyStuff:*&start=0&rows=10&fl=id score"one has to (1) escape appropriate characters according to the rules of the queryType employed (in this case solr):
"?q=id\:MyStuff\:\*&start=0&rows=10&fl=id\ score"then (2) escape according to general url rules:
"?q=id%5C:MyStuff%5C:%5C*&start=0&rows=10&fl=id%5C%20score"resulting in:
cn.search(defaultSession,"solr","?q=id%5C:MyStuff%5C:%5C*&start=0&rows=10&fl=id%5C%20score")For solr queries, a list of query terms employed can be found at the DataONE documentation on Content Discovery solr escaping: find ClientUtils
search
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.search
public Identifier setRightsHolder(Session session, Identifier pid, Subject userId, long serialVersion) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, NotImplemented, InvalidRequest, VersionMismatch
setRightsHolder
in interface CNAuthorization
InvalidToken
ServiceFailure
NotFound
NotAuthorized
NotImplemented
InvalidRequest
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNAuthorization.setRightsHolder
public boolean setAccessPolicy(Session session, Identifier pid, AccessPolicy accessPolicy, long serialVersion) throws InvalidToken, NotFound, NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, VersionMismatch
setAccessPolicy
in interface CNAuthorization
InvalidToken
NotFound
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNAuthorization.setAccessPolicy
public Subject registerAccount(Session session, Person person) throws ServiceFailure, NotAuthorized, IdentifierNotUnique, InvalidCredentials, NotImplemented, InvalidRequest, InvalidToken
registerAccount
in interface CNIdentity
ServiceFailure
NotAuthorized
IdentifierNotUnique
InvalidCredentials
NotImplemented
InvalidRequest
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.registerAccount
public Subject updateAccount(Session session, Person person) throws ServiceFailure, NotAuthorized, InvalidCredentials, NotImplemented, InvalidRequest, InvalidToken, NotFound
updateAccount
in interface CNIdentity
ServiceFailure
NotAuthorized
InvalidCredentials
NotImplemented
InvalidRequest
InvalidToken
NotFound
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.updateAccount
public boolean verifyAccount(Session session, Subject subject) throws ServiceFailure, NotAuthorized, NotImplemented, InvalidToken, InvalidRequest
verifyAccount
in interface CNIdentity
ServiceFailure
NotAuthorized
NotImplemented
InvalidToken
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.verifyAccount
public SubjectInfo getSubjectInfo(Session session, Subject subject) throws ServiceFailure, NotAuthorized, NotImplemented, NotFound, InvalidToken
getSubjectInfo
in interface CNIdentity
ServiceFailure
NotAuthorized
NotImplemented
NotFound
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.getSubjectInfo
public SubjectInfo listSubjects(Session session, String query, String status, Integer start, Integer count) throws InvalidRequest, ServiceFailure, InvalidToken, NotAuthorized, NotImplemented
listSubjects
in interface CNIdentity
InvalidRequest
ServiceFailure
InvalidToken
NotAuthorized
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.listSubjects
public boolean mapIdentity(Session session, Subject primarySubject, Subject secondarySubject) throws ServiceFailure, InvalidToken, NotAuthorized, NotFound, NotImplemented, InvalidRequest, IdentifierNotUnique
mapIdentity
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotFound
NotImplemented
InvalidRequest
IdentifierNotUnique
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.mapIdentity
public boolean requestMapIdentity(Session session, Subject subject) throws ServiceFailure, InvalidToken, NotAuthorized, NotFound, NotImplemented, InvalidRequest, IdentifierNotUnique
requestMapIdentity
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotFound
NotImplemented
InvalidRequest
IdentifierNotUnique
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.requestMapIdentity
public SubjectInfo getPendingMapIdentity(Session session, Subject subject) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
getPendingMapIdentity
in interface CNIdentity
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.getPendingMapIdentity
public boolean confirmMapIdentity(Session session, Subject subject) throws ServiceFailure, InvalidToken, NotAuthorized, NotFound, NotImplemented
confirmMapIdentity
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.confirmMapIdentity
public boolean denyMapIdentity(Session session, Subject subject) throws ServiceFailure, InvalidToken, NotAuthorized, NotFound, NotImplemented
denyMapIdentity
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.denyMapIdentity
public boolean removeMapIdentity(Session session, Subject subject) throws ServiceFailure, InvalidToken, NotAuthorized, NotFound, NotImplemented
removeMapIdentity
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.removeMapIdentity
public Subject createGroup(Session session, Group group) throws ServiceFailure, InvalidToken, NotAuthorized, NotImplemented, IdentifierNotUnique
createGroup
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotImplemented
IdentifierNotUnique
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.createGroup
public boolean updateGroup(Session session, Group group) throws ServiceFailure, InvalidToken, NotAuthorized, NotFound, NotImplemented, InvalidRequest
updateGroup
in interface CNIdentity
ServiceFailure
InvalidToken
NotAuthorized
NotFound
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNIdentity.updateGroup
public boolean updateNodeCapabilities(Session session, NodeReference nodeid, Node node) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, NotFound, InvalidToken
updateNodeCapabilities
in interface CNRegister
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
NotFound
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRegister.updateNodeCapabilities
public NodeReference register(Session session, Node node) throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, IdentifierNotUnique, InvalidToken
register
in interface CNRegister
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
IdentifierNotUnique
InvalidToken
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRegister.register
public boolean setReplicationStatus(Session session, Identifier pid, NodeReference nodeRef, ReplicationStatus status, BaseException failure) throws ServiceFailure, NotImplemented, InvalidToken, NotAuthorized, InvalidRequest, NotFound
setReplicationStatus
in interface CNReplication
ServiceFailure
NotImplemented
InvalidToken
NotAuthorized
InvalidRequest
NotFound
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.setReplicationStatus
public boolean setReplicationPolicy(Session session, Identifier pid, ReplicationPolicy policy, long serialVersion) throws NotImplemented, NotFound, NotAuthorized, ServiceFailure, InvalidRequest, InvalidToken, VersionMismatch
setReplicationPolicy
in interface CNReplication
NotImplemented
NotFound
NotAuthorized
ServiceFailure
InvalidRequest
InvalidToken
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.setReplicationPolicy
public boolean isNodeAuthorized(Session session, Subject targetNodeSubject, Identifier pid) throws NotImplemented, NotAuthorized, InvalidToken, ServiceFailure, NotFound, InvalidRequest
isNodeAuthorized
in interface CNReplication
NotImplemented
NotAuthorized
InvalidToken
ServiceFailure
NotFound
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.isNodeAuthorized
public boolean updateReplicationMetadata(Session session, Identifier pid, Replica replicaMetadata, long serialVersion) throws NotImplemented, NotAuthorized, ServiceFailure, NotFound, InvalidRequest, InvalidToken, VersionMismatch
updateReplicationMetadata
in interface CNReplication
NotImplemented
NotAuthorized
ServiceFailure
NotFound
InvalidRequest
InvalidToken
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.updateReplicationMetadata
public boolean deleteReplicationMetadata(Session session, Identifier pid, NodeReference nodeId, long serialVersion) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented, VersionMismatch, InvalidRequest
deleteReplicationMetadata
in interface CNReplication
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
VersionMismatch
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.deleteReplicationMetadata
public InputStream view(Session session, String theme, Identifier id) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented, NotFound
view
in interface CNView
view
in class MultipartD1Node
InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
NotFound
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNView.view
public OptionList listViews() throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented
listViews
in interface CNView
InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNView.listViews
public SubjectInfo echoCredentials(Session session) throws NotImplemented, ServiceFailure, InvalidToken
echoCredentials
in interface CNDiagnostic
NotImplemented
ServiceFailure
InvalidToken
public SystemMetadata echoSystemMetadata(Session session, SystemMetadata sysmeta) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidToken, InvalidRequest, IdentifierNotUnique, InvalidSystemMetadata
echoSystemMetadata
in interface CNDiagnostic
NotImplemented
ServiceFailure
NotAuthorized
InvalidToken
InvalidRequest
IdentifierNotUnique
InvalidSystemMetadata
public InputStream echoIndexedObject(Session session, String queryEngine, SystemMetadata sysmeta, InputStream object) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidToken, InvalidRequest, InvalidSystemMetadata, UnsupportedType, UnsupportedMetadataType, InsufficientResources
echoIndexedObject
in interface CNDiagnostic
NotImplemented
ServiceFailure
NotAuthorized
InvalidToken
InvalidRequest
InvalidSystemMetadata
UnsupportedType
UnsupportedMetadataType
InsufficientResources
Copyright © 2020. All Rights Reserved.