public class CNode extends D1Node implements CNCore, CNRead, CNAuthorization, CNIdentity, CNRegister, CNReplication
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
SERVICE_VERSION
Constructor and Description |
---|
CNode(String nodeBaseServiceUrl)
Construct a Coordinating Node, passing in the base url for node services.
|
CNode(String nodeBaseServiceUrl,
Session session)
Construct a Coordinating Node, passing in the base url for node services,
and the Session to use for connections to that node.
|
Modifier and Type | Method and Description |
---|---|
Identifier |
archive(Identifier pid)
|
Identifier |
archive(Session session,
Identifier pid)
|
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)
|
Identifier |
delete(Identifier pid) |
Identifier |
delete(Session session,
Identifier pid) |
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)
|
DescribeResponse |
describe(Identifier pid)
|
DescribeResponse |
describe(Session session,
Identifier pid)
|
Identifier |
generateIdentifier(Session session,
String scheme,
String fragment)
|
Identifier |
generateIdentifier(String scheme,
String fragment)
|
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()
A convenience method for getLogRecords using no filtering parameters
see DataONE API Reference
|
Log |
getLogRecords(Date fromDate,
Date toDate,
Event event,
String pidFilter,
Integer start,
Integer count)
|
Log |
getLogRecords(Session session)
A convenience method for getLogRecords using no filtering parameters
see DataONE API Reference
|
Log |
getLogRecords(Session session,
Date fromDate,
Date toDate,
Event event,
String pidFilter,
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)
Get the system metadata from a resource with the specified guid.
|
SystemMetadata |
getSystemMetadata(Session session,
Identifier pid)
Get the system metadata from a resource with the specified guid.
|
boolean |
hasReservation(Session session,
Subject subject,
Identifier pid)
|
boolean |
hasReservation(Subject subject,
Identifier pid)
|
boolean |
isAuthorized(Identifier pid,
Permission permission)
|
boolean |
isAuthorized(Session session,
Identifier pid,
Permission permission)
|
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()
|
ObjectList |
listObjects(Date fromDate,
Date toDate,
ObjectFormatIdentifier formatid,
Boolean replicaStatus,
Integer start,
Integer count)
|
ObjectList |
listObjects(Session session)
|
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)
|
Date |
ping()
|
InputStream |
query(String queryEngine,
D1Url queryD1Url)
|
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)
|
deserializeServiceType, getChecksum, getChecksum, getDefaultSoTimeout, getLatestRequestUrl, getNodeId, getSystemMetadata, getSystemMetadata, recastClientSideExceptionToServiceFailure, recastDataONEExceptionToServiceFailure, setDefaultSoTimeout, setLatestRequestUrl, setNodeBaseServiceUrl, setNodeId
public CNode(String nodeBaseServiceUrl)
nodeBaseServiceUrl
- base url for constructing service endpoints.public CNode(String nodeBaseServiceUrl, Session session)
nodeBaseServiceUrl
- base url for constructing service endpoints.session
- - the Session object passed to the CertificateManager
to be used for establishing connectionspublic String getNodeBaseServiceUrl()
D1Node
getNodeBaseServiceUrl
in class D1Node
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 Date ping() throws NotImplemented, ServiceFailure, InsufficientResources
ping
in interface CNCore
ping
in class D1Node
NotImplemented
ServiceFailure
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CN_core.ping
public ObjectFormatList listFormats() throws ServiceFailure, NotImplemented
listFormats
in interface CNCore
ServiceFailure
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.listFormats
public ObjectFormat getFormat(ObjectFormatIdentifier formatid) throws ServiceFailure, NotFound, NotImplemented
getFormat
in interface CNCore
ServiceFailure
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.getFormat
public ChecksumAlgorithmList listChecksumAlgorithms() throws ServiceFailure, NotImplemented
listChecksumAlgorithms
in interface CNCore
ServiceFailure
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.getChecksumAlgorithms
public Log getLogRecords() throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented, InsufficientResources
getLogRecords
in class D1Node
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotImplemented
InsufficientResources
public Log getLogRecords(Session session) throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented, InsufficientResources
getLogRecords
in class D1Node
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotImplemented
InsufficientResources
public Log getLogRecords(Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented, InsufficientResources
getLogRecords
in interface CNCore
getLogRecords
in class D1Node
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotImplemented
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.getLogRecords
public Log getLogRecords(Session session, Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented, InsufficientResources
getLogRecords
in interface CNCore
getLogRecords
in class D1Node
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotImplemented
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.getLogRecords
public NodeList listNodes() throws NotImplemented, ServiceFailure
listNodes
in interface CNCore
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.reserveIdentifier
public Identifier generateIdentifier(String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
generateIdentifier
in interface CNCore
generateIdentifier
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.generateIdentifier
public Identifier generateIdentifier(Session session, String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
generateIdentifier
in interface CNCore
generateIdentifier
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.generateIdentifier
public boolean hasReservation(Subject subject, Identifier pid) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, NotImplemented, IdentifierNotUnique
hasReservation
in interface CNCore
InvalidToken
ServiceFailure
NotFound
NotAuthorized
NotImplemented
IdentifierNotUnique
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.hasReservation
public boolean hasReservation(Session session, Subject subject, Identifier pid) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, NotImplemented, IdentifierNotUnique
hasReservation
in interface CNCore
InvalidToken
ServiceFailure
NotFound
NotAuthorized
NotImplemented
IdentifierNotUnique
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.setObsoletedBy
public ObjectList listObjects() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public ObjectList listObjects(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
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
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.listObjects
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
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.listObjects
public InputStream get(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
D1Node
get
in interface CNRead
get
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
public InputStream get(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
D1Node
get
in interface CNRead
get
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
public SystemMetadata getSystemMetadata(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
D1Node
getSystemMetadata
in interface CNRead
getSystemMetadata
in class D1Node
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
D1Node
getSystemMetadata
in interface CNRead
getSystemMetadata
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
DataONE API Reference (MemberNode API)
,
DataONE API Reference (CoordinatingNode API)
public DescribeResponse describe(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
describe
in interface CNRead
describe
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.describe
public DescribeResponse describe(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
describe
in interface CNRead
describe
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.describe
public ObjectLocationList resolve(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
resolve
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.resolve
public Checksum getChecksum(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
getChecksum
in interface CNRead
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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(session,"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
http://mule1.dataone.org/ArchitectureDocs-current/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(session,"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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNAuthorization.setRightsHolder
public boolean isAuthorized(Identifier pid, Permission permission) throws ServiceFailure, InvalidToken, NotFound, NotAuthorized, NotImplemented, InvalidRequest
isAuthorized
in interface CNAuthorization
isAuthorized
in class D1Node
ServiceFailure
InvalidToken
NotFound
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNAuthorization.isAuthorized
public boolean isAuthorized(Session session, Identifier pid, Permission permission) throws ServiceFailure, InvalidToken, NotFound, NotAuthorized, NotImplemented, InvalidRequest
isAuthorized
in interface CNAuthorization
isAuthorized
in class D1Node
ServiceFailure
InvalidToken
NotFound
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNAuthorization.isAuthorized
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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
http://mule1.dataone.org/ArchitectureDocs-current/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
InvalidRequest
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
VersionMismatch
http://mule1.dataone.org/ArchitectureDocs-current/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
InvalidRequest
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
VersionMismatch
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNReplication.deleteReplicationMetadata
public Identifier archive(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
archive
in interface CNCore
archive
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.archive
public Identifier archive(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
archive
in interface CNCore
archive
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.archive
public Identifier delete(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
delete
in interface CNCore
delete
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.delete
public Identifier delete(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
delete
in interface CNCore
delete
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNCore.delete
public InputStream query(String queryEngine, String query) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented, NotFound
query
in interface CNRead
query
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.query
public InputStream query(String queryEngine, D1Url queryD1Url) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented, NotFound
query
in class D1Node
queryD1Url
- a D1Url object that contains the necessary query bitsInvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
NotFound
public QueryEngineDescription getQueryEngineDescription(String queryEngine) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, NotFound
getQueryEngineDescription
in interface CNRead
getQueryEngineDescription
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.getQueryEngineDescription
public QueryEngineList listQueryEngines() throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented
listQueryEngines
in interface CNRead
listQueryEngines
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.listQueryEngines
Copyright © 2014. All Rights Reserved.