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 |
---|---|
boolean |
confirmMapIdentity(Session session,
Subject subject) |
boolean |
confirmMapIdentity(Subject subject) |
Identifier |
create(Identifier pid,
InputStream object,
SystemMetadata sysmeta) |
Identifier |
create(Session session,
Identifier pid,
InputStream object,
SystemMetadata sysmeta) |
Subject |
createGroup(Group group) |
Subject |
createGroup(Session session,
Group group) |
boolean |
deleteReplicationMetadata(Identifier pid,
NodeReference nodeId,
long serialVersion) |
boolean |
deleteReplicationMetadata(Session session,
Identifier pid,
NodeReference nodeId,
long serialVersion) |
boolean |
denyMapIdentity(Session session,
Subject subject) |
boolean |
denyMapIdentity(Subject subject) |
InputStream |
get(Identifier pid)
Get the resource with the specified pid.
|
InputStream |
get(Session session,
Identifier pid)
Get the resource with the specified pid.
|
Checksum |
getChecksum(Identifier pid) |
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(Date fromDate,
Date toDate,
Event event,
String idFilter,
Integer start,
Integer count) |
Log |
getLogRecords(Session session,
Date fromDate,
Date toDate,
Event event,
String idFilter,
Integer start,
Integer count) |
String |
getNodeBaseServiceUrl()
Retrieve the service URL for this node.
|
SubjectInfo |
getPendingMapIdentity(Session session,
Subject subject) |
SubjectInfo |
getPendingMapIdentity(Subject subject) |
QueryEngineDescription |
getQueryEngineDescription(String queryEngine) |
SubjectInfo |
getSubjectInfo(Session session,
Subject subject) |
SubjectInfo |
getSubjectInfo(Subject subject) |
SystemMetadata |
getSystemMetadata(Identifier pid) |
SystemMetadata |
getSystemMetadata(Session session,
Identifier pid) |
protected SystemMetadata |
getSystemMetadata(Session session,
Identifier pid,
boolean useSystemMetadataCache)
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 |
hasReservation(Subject subject,
Identifier pid) |
boolean |
isNodeAuthorized(Session session,
Subject targetNodeSubject,
Identifier pid) |
boolean |
isNodeAuthorized(Subject targetNodeSubject,
Identifier pid) |
ChecksumAlgorithmList |
listChecksumAlgorithms() |
ObjectFormatList |
listFormats() |
Set<String> |
listNodeIds()
Return the set of Node IDs for all of the nodes registered to the CN
|
NodeList |
listNodes() |
ObjectList |
listObjects(Date fromDate,
Date toDate,
ObjectFormatIdentifier formatid,
Boolean replicaStatus,
Integer start,
Integer count) |
ObjectList |
listObjects(Session session,
Date fromDate,
Date toDate,
ObjectFormatIdentifier formatid,
Boolean replicaStatus,
Integer start,
Integer count) |
QueryEngineList |
listQueryEngines() |
SubjectInfo |
listSubjects(Session session,
String query,
String status,
Integer start,
Integer count) |
SubjectInfo |
listSubjects(String query,
String status,
Integer start,
Integer count) |
String |
lookupNodeBaseUrl(NodeReference nodeRef)
Find the base URL for a Node based on the Node's identifier as it was
registered with the Coordinating Node.
|
String |
lookupNodeBaseUrl(String nodeId)
Find the base URL for a Node based on the Node's identifier as it was
registered with the Coordinating Node.
|
String |
lookupNodeId(String nodeBaseUrl)
Find the node identifier for a Node based on the base URL that is used to
access its services by looking up the registration for the node at the
Coordinating Node.
|
boolean |
mapIdentity(Session session,
Subject primarySubject,
Subject secondarySubject) |
boolean |
mapIdentity(Subject primarySubject,
Subject secondarySubject) |
InputStream |
query(String queryEngine,
String query) |
NodeReference |
register(Node node) |
NodeReference |
register(Session session,
Node node) |
Subject |
registerAccount(Person person) |
Subject |
registerAccount(Session session,
Person person) |
Identifier |
registerSystemMetadata(Identifier pid,
SystemMetadata sysmeta) |
Identifier |
registerSystemMetadata(Session session,
Identifier pid,
SystemMetadata sysmeta) |
boolean |
removeMapIdentity(Session session,
Subject subject) |
boolean |
removeMapIdentity(Subject subject) |
boolean |
requestMapIdentity(Session session,
Subject subject) |
boolean |
requestMapIdentity(Subject subject) |
Identifier |
reserveIdentifier(Identifier pid) |
Identifier |
reserveIdentifier(Session session,
Identifier pid) |
ObjectLocationList |
resolve(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.
|
ObjectList |
search(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.
|
boolean |
setAccessPolicy(Identifier pid,
AccessPolicy accessPolicy,
long serialVersion) |
boolean |
setAccessPolicy(Session session,
Identifier pid,
AccessPolicy accessPolicy,
long serialVersion) |
boolean |
setObsoletedBy(Identifier pid,
Identifier obsoletedByPid,
long serialVersion) |
boolean |
setObsoletedBy(Session session,
Identifier pid,
Identifier obsoletedByPid,
long serialVersion) |
boolean |
setReplicationPolicy(Identifier pid,
ReplicationPolicy policy,
long serialVersion) |
boolean |
setReplicationPolicy(Session session,
Identifier pid,
ReplicationPolicy policy,
long serialVersion) |
boolean |
setReplicationStatus(Identifier pid,
NodeReference nodeRef,
ReplicationStatus status,
BaseException failure) |
boolean |
setReplicationStatus(Session session,
Identifier pid,
NodeReference nodeRef,
ReplicationStatus status,
BaseException failure) |
Identifier |
setRightsHolder(Identifier pid,
Subject userId,
long serialVersion) |
Identifier |
setRightsHolder(Session session,
Identifier pid,
Subject userId,
long serialVersion) |
Subject |
updateAccount(Person person) |
Subject |
updateAccount(Session session,
Person person) |
boolean |
updateGroup(Group group) |
boolean |
updateGroup(Session session,
Group group) |
boolean |
updateNodeCapabilities(NodeReference nodeid,
Node node) |
boolean |
updateNodeCapabilities(Session session,
NodeReference nodeid,
Node node) |
boolean |
updateReplicationMetadata(Identifier pid,
Replica replicaMetadata,
long serialVersion) |
boolean |
updateReplicationMetadata(Session session,
Identifier pid,
Replica replicaMetadata,
long serialVersion) |
boolean |
verifyAccount(Session session,
Subject subject) |
boolean |
verifyAccount(Subject subject) |
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, view
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLatestRequestUrl, getNodeId, getNodeType, setNodeId, setNodeType
archive, archive, delete, delete, generateIdentifier, generateIdentifier, ping
isAuthorized, 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 String lookupNodeBaseUrl(String nodeId) throws ServiceFailure, NotImplemented
nodeId
- the identifier value of the node to look upServiceFailure
NotImplemented
public String lookupNodeBaseUrl(NodeReference nodeRef) throws ServiceFailure, NotImplemented
nodeRef
- a NodeReference for the node to look upServiceFailure
NotImplemented
public String lookupNodeId(String nodeBaseUrl) throws ServiceFailure, NotImplemented
nodeBaseUrl
- the base url for Node service accessNotImplemented
ServiceFailure
public Set<String> listNodeIds() throws ServiceFailure, NotImplemented
NotImplemented
ServiceFailure
public ObjectFormatList listFormats() throws ServiceFailure, NotImplemented
listFormats
in interface CNCore
ServiceFailure
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.listFormats
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, Boolean replicaStatus, 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 ObjectList listObjects(Date fromDate, Date toDate, ObjectFormatIdentifier formatid, Boolean replicaStatus, 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, Event 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 Log getLogRecords(Date fromDate, Date toDate, Event 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 NodeList listNodes() throws NotImplemented, ServiceFailure
listNodes
in interface CNCore
NotImplemented
ServiceFailure
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNCore.listNodes
public Identifier reserveIdentifier(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 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(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 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(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 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 Identifier registerSystemMetadata(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 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 setObsoletedBy(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 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
protected SystemMetadata getSystemMetadata(Session session, Identifier pid, boolean useSystemMetadataCache) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
DataONE API Reference (MemberNode API)
,
DataONE API Reference (CoordinatingNode API)
public SystemMetadata getSystemMetadata(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
getSystemMetadata
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.getSystemMetadata
public SystemMetadata getSystemMetadata(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
getSystemMetadata
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.getSystemMetadata
public ObjectLocationList resolve(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 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 interface CNRead
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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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 query(String queryEngine, String query) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented, NotFound
query
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
NotFound
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.query
public QueryEngineDescription getQueryEngineDescription(String queryEngine) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, NotFound
getQueryEngineDescription
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
NotFound
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.getQueryEngineDescription
public QueryEngineList listQueryEngines() throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented
listQueryEngines
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNRead.listQueryEngines
Copyright © 2020. All Rights Reserved.