public class MultipartMNode extends MultipartD1Node implements MNode
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
nodeType, restClient, sessionSERVICE_VERSION| Constructor and Description |
|---|
MultipartMNode(MultipartRestClient mrc,
String nodeBaseServiceUrl)
Construct a new client-side MultipartMNode (Member Node) object,
passing in the base url of the member node for calling its services.
|
MultipartMNode(MultipartRestClient mrc,
String nodeBaseServiceUrl,
Session session)
Construct a new client-side MultipartMNode (Member 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.
|
MultipartMNode(String nodeBaseServiceUrl)
Deprecated.
|
MultipartMNode(String nodeBaseServiceUrl,
Session session)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Identifier |
archive(Identifier pid) |
Identifier |
archive(Session session,
Identifier pid)
sets the archived flag to true on an MN or CN
|
Identifier |
create(Identifier pid,
InputStream object,
SystemMetadata sysmeta) |
Identifier |
create(Session session,
Identifier pid,
InputStream object,
SystemMetadata sysmeta) |
Identifier |
delete(Identifier pid) |
Identifier |
delete(Session session,
Identifier pid) |
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.
|
Node |
getCapabilities() |
Checksum |
getChecksum(Identifier pid,
String checksumAlgorithm) |
Checksum |
getChecksum(Session session,
Identifier pid,
String checksumAlgorithm)
This method can handle both the MN and CN method, although the CN overriding method
will need to recast the InvalidRequest exception and use 'null' for the checksumAlgorithm param
|
Log |
getLogRecords() |
Log |
getLogRecords(Date fromDate,
Date toDate,
Event event,
String pidFilter,
Integer start,
Integer count) |
Log |
getLogRecords(Session session) |
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.
|
QueryEngineDescription |
getQueryEngineDescription(String queryEngine) |
InputStream |
getReplica(Identifier pid) |
InputStream |
getReplica(Session session,
Identifier pid) |
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 |
isAuthorized(Identifier pid,
Permission action) |
boolean |
isAuthorized(Session session,
Identifier pid,
Permission action) |
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() |
Date |
ping() |
InputStream |
query(String queryEngine,
String query)
As with the sister query() method that takes a D1Url, the contents of
encodedQuery will be joined to the url with as follows:
/{queryEngine}/{encodedQuery}
Note: Users will need to provide the '?' where appropriate to mark
the beginning of the url-query portion.
|
boolean |
replicate(Session session,
SystemMetadata sysmeta,
NodeReference sourceNode) |
boolean |
replicate(SystemMetadata sysmeta,
NodeReference sourceNode) |
boolean |
synchronizationFailed(Session session,
SynchronizationFailed message) |
boolean |
synchronizationFailed(SynchronizationFailed message) |
boolean |
systemMetadataChanged(Identifier pid,
long serialVersion,
Date dateSystemMetadataLastModified) |
boolean |
systemMetadataChanged(Session session,
Identifier pid,
long serialVersion,
Date dateSystemMetadataLastModified) |
Identifier |
update(Identifier pid,
InputStream object,
Identifier newPid,
SystemMetadata sysmeta) |
Identifier |
update(Session session,
Identifier pid,
InputStream object,
Identifier newPid,
SystemMetadata sysmeta) |
deserializeServiceType, getLatestRequestUrl, getNodeId, getNodeType, getSystemMetadata, getSystemMetadata, localizeInputStream, query, setNodeBaseServiceUrl, setNodeId, setNodeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLatestRequestUrl, getNodeId, getNodeType, setNodeId, setNodeType@Deprecated public MultipartMNode(String nodeBaseServiceUrl)
nodeBaseServiceUrl - base url for constructing service endpoints.@Deprecated public MultipartMNode(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 MultipartMNode(MultipartRestClient mrc, String nodeBaseServiceUrl)
nodeBaseServiceUrl - base url for constructing service endpoints.public MultipartMNode(MultipartRestClient mrc, 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()
MultipartD1NodegetNodeBaseServiceUrl in interface D1NodegetNodeBaseServiceUrl in class MultipartD1Nodepublic Date ping() throws NotImplemented, ServiceFailure, InsufficientResources
ping in interface MNCoreping in class MultipartD1NodeNotImplementedServiceFailureInsufficientResourceshttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.pingpublic Log getLogRecords() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic Log getLogRecords(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic Log getLogRecords(Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in interface MNCoregetLogRecords in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getLogRecordspublic Log getLogRecords(Session session, Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in interface MNCoregetLogRecords in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getLogRecordspublic ObjectList listObjects() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
MultipartD1NodelistObjects in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic ObjectList listObjects(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic ObjectList listObjects(Date fromDate, Date toDate, ObjectFormatIdentifier formatid, Boolean replicaStatus, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects in interface MNReadlistObjects in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjectspublic 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 MNReadlistObjects in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjectspublic Node getCapabilities() throws NotImplemented, ServiceFailure
getCapabilities in interface MNCoreNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getCapabilitiespublic InputStream get(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
MultipartD1Nodeget in interface MNReadget in class MultipartD1NodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourcespublic InputStream get(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
MultipartD1Nodeget in interface MNReadget in class MultipartD1NodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourcespublic SystemMetadata getSystemMetadata(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
MultipartD1NodegetSystemMetadata in interface MNReadgetSystemMetadata in class MultipartD1NodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundDataONE API Reference (MemberNode API),
DataONE API Reference (CoordinatingNode API)public SystemMetadata getSystemMetadata(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
MultipartD1NodegetSystemMetadata in interface MNReadgetSystemMetadata in class MultipartD1NodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundDataONE API Reference (MemberNode API),
DataONE API Reference (CoordinatingNode API)public DescribeResponse describe(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
describe in interface MNReaddescribe in class MultipartD1NodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.describepublic DescribeResponse describe(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
describe in interface MNReaddescribe in class MultipartD1NodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.describepublic Checksum getChecksum(Identifier pid, String checksumAlgorithm) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
getChecksum in interface MNReadgetChecksum in class MultipartD1NodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.getChecksumpublic Checksum getChecksum(Session session, Identifier pid, String checksumAlgorithm) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
MultipartD1NodegetChecksum in interface MNReadgetChecksum in class MultipartD1NodechecksumAlgorithm - - for MN implementations onlyInvalidRequest - - for MN implementations onlyInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.getChecksumpublic boolean synchronizationFailed(SynchronizationFailed message) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
synchronizationFailed in interface MNReadInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.synchronizationFailedpublic boolean synchronizationFailed(Session session, SynchronizationFailed message) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
synchronizationFailed in interface MNReadInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.synchronizationFailedpublic boolean isAuthorized(Identifier pid, Permission action) throws ServiceFailure, InvalidRequest, InvalidToken, NotFound, NotAuthorized, NotImplemented
isAuthorized in interface MNAuthorizationisAuthorized in class MultipartD1NodeServiceFailureInvalidRequestInvalidTokenNotFoundNotAuthorizedNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.isAuthorizedpublic boolean isAuthorized(Session session, Identifier pid, Permission action) throws ServiceFailure, InvalidRequest, InvalidToken, NotFound, NotAuthorized, NotImplemented
isAuthorized in interface MNAuthorizationisAuthorized in class MultipartD1NodeServiceFailureInvalidRequestInvalidTokenNotFoundNotAuthorizedNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.isAuthorizedpublic Identifier generateIdentifier(String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
generateIdentifier in interface MNStoragegenerateIdentifier in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotImplementedInvalidRequesthttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNStorage.generateIdentifierpublic Identifier generateIdentifier(Session session, String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
generateIdentifier in interface MNStoragegenerateIdentifier in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotImplementedInvalidRequesthttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNStorage.generateIdentifierpublic Identifier create(Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
create in interface MNStorageIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.createpublic Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
create in interface MNStorageIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.createpublic Identifier update(Identifier pid, InputStream object, Identifier newPid, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType, NotFound
update in interface MNStorageIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypeNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.updatepublic Identifier update(Session session, Identifier pid, InputStream object, Identifier newPid, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType, NotFound
update in interface MNStorageIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypeNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.updatepublic Identifier archive(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
archive in interface MNStoragearchive in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotFoundNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.archivepublic Identifier archive(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
MultipartD1Nodearchive in interface MNStoragearchive in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotFoundNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.archivepublic Identifier delete(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
delete in interface MNStoragedelete in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotFoundNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.deletepublic Identifier delete(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
delete in interface MNStoragedelete in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotFoundNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.deletepublic boolean systemMetadataChanged(Identifier pid, long serialVersion, Date dateSystemMetadataLastModified) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
systemMetadataChanged in interface MNAuthorizationInvalidTokenServiceFailureNotAuthorizedNotImplementedInvalidRequesthttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.systemMetadataChangedpublic boolean systemMetadataChanged(Session session, Identifier pid, long serialVersion, Date dateSystemMetadataLastModified) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
systemMetadataChanged in interface MNAuthorizationInvalidTokenServiceFailureNotAuthorizedNotImplementedInvalidRequesthttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.systemMetadataChangedpublic boolean replicate(SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate in interface MNReplicationNotImplementedServiceFailureNotAuthorizedInvalidRequestInvalidTokenInsufficientResourcesUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_replication.replicatepublic boolean replicate(Session session, SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate in interface MNReplicationNotImplementedServiceFailureNotAuthorizedInvalidRequestInvalidTokenInsufficientResourcesUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_replication.replicatepublic InputStream getReplica(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
getReplica in interface MNReadInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourceshttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplicapublic InputStream getReplica(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
getReplica in interface MNReadInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourceshttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplicapublic InputStream query(String queryEngine, String query) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented, NotFound
MultipartD1Nodequery in interface MNQueryquery in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedInvalidRequestNotImplementedNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.querypublic QueryEngineDescription getQueryEngineDescription(String queryEngine) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, NotFound
getQueryEngineDescription in interface MNQuerygetQueryEngineDescription in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotImplementedNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.getQueryEngineDescriptionpublic QueryEngineList listQueryEngines() throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented
listQueryEngines in interface MNQuerylistQueryEngines in class MultipartD1NodeInvalidTokenServiceFailureNotAuthorizedNotImplementedhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.listQueryEnginesCopyright © 2014. All Rights Reserved.