public class CNodeService extends D1NodeService implements org.dataone.service.cn.v2.CNAuthorization, org.dataone.service.cn.v2.CNCore, org.dataone.service.cn.v2.CNRead, org.dataone.service.cn.v2.CNReplication, org.dataone.service.cn.v2.CNView
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
V2V1MISSMATCH |
DELETEDMESSAGE, handler, MAXIMUM_DB_RECORD_COUNT, request, session2
Modifier and Type | Method and Description |
---|---|
org.dataone.service.types.v1.ObjectFormatIdentifier |
addFormat(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.ObjectFormatIdentifier formatId,
org.dataone.service.types.v2.ObjectFormat format) |
org.dataone.service.types.v1.Identifier |
archive(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Archives an object from the Coordinating Node
|
org.dataone.service.types.v1.Identifier |
create(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
java.io.InputStream object,
org.dataone.service.types.v2.SystemMetadata sysmeta)
Adds a new object to the Node, where the object is a science metadata object.
|
org.dataone.service.types.v1.Identifier |
delete(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Deletes an object from the Coordinating Node
|
boolean |
deleteReplicationMetadata(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.NodeReference nodeId,
long serialVersion)
Deletes the replica from the given Member Node
NOTE: MN.delete() may be an "archive" operation.
|
org.dataone.service.types.v1.Identifier |
generateIdentifier(org.dataone.service.types.v1.Session session,
java.lang.String scheme,
java.lang.String fragment) |
org.dataone.service.types.v2.Node |
getCapabilities() |
org.dataone.service.types.v1.Checksum |
getChecksum(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Return the checksum of the object given the identifier
|
org.dataone.service.types.v2.ObjectFormat |
getFormat(org.dataone.service.types.v1.ObjectFormatIdentifier fmtid)
Returns the object format registered in the DataONE Object Format
Vocabulary for the given format identifier
|
static CNodeService |
getInstance(javax.servlet.http.HttpServletRequest request)
singleton accessor
|
org.dataone.service.types.v1_1.QueryEngineDescription |
getQueryEngineDescription(org.dataone.service.types.v1.Session session,
java.lang.String queryEngine) |
boolean |
hasReservation(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject subject,
org.dataone.service.types.v1.Identifier pid)
Checks whether the pid is reserved by the subject in the session param
If the reservation is held on the pid by the subject, we return true.
|
boolean |
isNodeAuthorized(org.dataone.service.types.v1.Session originatingNodeSession,
org.dataone.service.types.v1.Subject targetNodeSubject,
org.dataone.service.types.v1.Identifier pid)
Verify that a replication task is authorized by comparing the target node's
Subject (from the X.509 certificate-derived Session) with the list of
subjects in the known, pending replication tasks map.
|
org.dataone.service.types.v1.ChecksumAlgorithmList |
listChecksumAlgorithms()
Returns a list of checksum algorithms that are supported by DataONE.
|
org.dataone.service.types.v2.ObjectFormatList |
listFormats()
Returns a list of all object formats registered in the DataONE Object
Format Vocabulary
|
org.dataone.service.types.v2.NodeList |
listNodes()
Returns a list of nodes that have been registered with the DataONE infrastructure
|
org.dataone.service.types.v1.ObjectList |
listObjects(org.dataone.service.types.v1.Session session,
java.util.Date startTime,
java.util.Date endTime,
org.dataone.service.types.v1.ObjectFormatIdentifier formatid,
org.dataone.service.types.v1.NodeReference nodeId,
org.dataone.service.types.v1.Identifier identifier,
java.lang.Integer start,
java.lang.Integer count) |
org.dataone.service.types.v1_1.QueryEngineList |
listQueryEngines(org.dataone.service.types.v1.Session session) |
void |
notifyReplicaNodes(org.dataone.service.types.v2.SystemMetadata currentSystemMetadata)
Notify replica Member Nodes of system metadata changes for a given pid
|
java.io.InputStream |
query(org.dataone.service.types.v1.Session session,
java.lang.String queryEngine,
java.lang.String query) |
org.dataone.service.types.v1.Identifier |
registerSystemMetadata(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v2.SystemMetadata sysmeta)
Provides a mechanism for adding system metadata independently of its
associated object, such as when adding system metadata for data objects.
|
org.dataone.service.types.v1.Identifier |
reserveIdentifier(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Given an optional scope and format, reserves and returns an identifier
within that scope and format that is unique and will not be
used by any other sessions.
|
org.dataone.service.types.v1.ObjectLocationList |
resolve(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Resolve the location of a given object
|
org.dataone.service.types.v1.ObjectList |
search(org.dataone.service.types.v1.Session session,
java.lang.String queryType,
java.lang.String query)
Metacat does not implement this method at the CN level
|
boolean |
setAccessPolicy(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.AccessPolicy accessPolicy,
long serialVersion)
Set access for a given object using the object identifier and a Subject
under a given Session.
|
boolean |
setObsoletedBy(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.Identifier obsoletedByPid,
long serialVersion)
Set the obsoletedBy attribute in System Metadata
|
boolean |
setReplicationPolicy(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.ReplicationPolicy policy,
long serialVersion)
Set the replication policy for an object given the object identifier
It only is applied to objects whose authoritative mn is a v1 node.
|
boolean |
setReplicationStatus(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.NodeReference targetNode,
org.dataone.service.types.v1.ReplicationStatus status,
org.dataone.service.exceptions.BaseException failure)
Set the replication status for an object given the object identifier
|
org.dataone.service.types.v1.Identifier |
setRightsHolder(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.Subject userId,
long serialVersion)
Changes ownership (RightsHolder) of the specified object to the
subject specified by userId
|
boolean |
synchronize(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid) |
boolean |
updateReplicationMetadata(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.Replica replica,
long serialVersion)
Full replacement of replication metadata in the system metadata for the
specified object, changes date system metadata modified
|
boolean |
updateSystemMetadata(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v2.SystemMetadata sysmeta)
Update the system metadata of the specified pid.
|
archiveCNObject, archiveObject, checkSidInModifyingSystemMetadata, checkV1SystemMetaPidExist, delete, describe, existsInObsoletedBy, existsInObsoletes, expandPermissions, get, getCNNodeList, getLogRecords, getPIDForSID, getSession, getSystemMetadata, getSystemMetadataForPID, insertDataObject, insertOrUpdateDocument, insertSystemMetadata, isAuthorized, isScienceMetadata, isValidIdentifier, listNodesBySubject, listObjects, listViews, listViews, objectExists, ping, removeSolrIndex, removeSystemMetaAndIdentifier, setSession, updateSystemMetadata, updateSystemMetadata, view
public static final java.lang.String V2V1MISSMATCH
public static CNodeService getInstance(javax.servlet.http.HttpServletRequest request)
public boolean setReplicationPolicy(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.ReplicationPolicy policy, long serialVersion) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.VersionMismatch
setReplicationPolicy
in interface org.dataone.service.cn.v2.CNReplication
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given objectpolicy
- - the replication policy to be appliedorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.VersionMismatch
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.InvalidToken
public boolean deleteReplicationMetadata(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.NodeReference nodeId, long serialVersion) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.VersionMismatch
deleteReplicationMetadata
in interface org.dataone.service.cn.v2.CNReplication
session
- pid
- nodeId
- serialVersion
- org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.VersionMismatch
public org.dataone.service.types.v1.Identifier delete(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
delete
in interface org.dataone.service.cn.v2.CNCore
session
- - the Session object containing the credentials for the Subjectpid
- - The object identifier to be deletedorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public org.dataone.service.types.v1.Identifier archive(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
archive
in interface org.dataone.service.cn.v2.CNCore
session
- - the Session object containing the credentials for the Subjectpid
- - The object identifier to be deletedorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean setObsoletedBy(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.Identifier obsoletedByPid, long serialVersion) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.VersionMismatch
setObsoletedBy
in interface org.dataone.service.cn.v2.CNCore
session
- pid
- obsoletedByPid
- serialVersion
- org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.VersionMismatch
public boolean setReplicationStatus(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.NodeReference targetNode, org.dataone.service.types.v1.ReplicationStatus status, org.dataone.service.exceptions.BaseException failure) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
setReplicationStatus
in interface org.dataone.service.cn.v2.CNReplication
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given objectstatus
- - the replication status to be appliedorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotFound
public org.dataone.service.types.v1.Checksum getChecksum(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
getChecksum
in interface org.dataone.service.cn.v2.CNRead
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given objectorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1.ObjectLocationList resolve(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
resolve
in interface org.dataone.service.cn.v2.CNRead
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given objectorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1.ObjectList search(org.dataone.service.types.v1.Session session, java.lang.String queryType, java.lang.String query) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotImplemented
search
in interface org.dataone.service.cn.v2.CNRead
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v2.ObjectFormat getFormat(org.dataone.service.types.v1.ObjectFormatIdentifier fmtid) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
getFormat
in interface org.dataone.service.cn.v2.CNCore
fmtid
- - the identifier of the format requestedorg.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.InsufficientResources
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1.ObjectFormatIdentifier addFormat(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.ObjectFormatIdentifier formatId, org.dataone.service.types.v2.ObjectFormat format) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidToken
addFormat
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidToken
public org.dataone.service.types.v2.ObjectFormatList listFormats() throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotImplemented
listFormats
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InsufficientResources
public org.dataone.service.types.v2.NodeList listNodes() throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure
listNodes
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1.Identifier registerSystemMetadata(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v2.SystemMetadata sysmeta) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidSystemMetadata
registerSystemMetadata
in interface org.dataone.service.cn.v2.CNCore
session
- - the Session object containing the credentials for the Subjectpid
- - The identifier of the object to register the system metadata againstsysmeta
- - The system metadata to be registeredorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidSystemMetadata
public org.dataone.service.types.v1.Identifier reserveIdentifier(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
reserveIdentifier
in interface org.dataone.service.cn.v2.CNCore
session
- - the Session object containing the credentials for the Subjectpid
- - The identifier of the object to register the system metadata againstscope
- - An optional string to be used to qualify the scope of
the identifier namespace, which is applied differently
depending on the format requested. If scope is not
supplied, a default scope will be used.format
- - The optional name of the identifier format to be used,
drawn from a DataONE-specific vocabulary of identifier
format names, including several common syntaxes such
as DOI, LSID, UUID, and LSRN, among others. If the
format is not supplied by the caller, the CN service
will use a default identifier format, which may change
over time.org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public org.dataone.service.types.v1.Identifier generateIdentifier(org.dataone.service.types.v1.Session session, java.lang.String scheme, java.lang.String fragment) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
generateIdentifier
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean hasReservation(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject subject, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
hasReservation
in interface org.dataone.service.cn.v2.CNCore
session
- - the Session object containing the Subjectpid
- - The identifier to checkorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotFound
- - when the pid is not found (in use or in reservation)org.dataone.service.exceptions.NotAuthorized
- - when the subject does not hold a reservation on the pidorg.dataone.service.exceptions.IdentifierNotUnique
- - when the pid is in useorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public org.dataone.service.types.v1.Identifier setRightsHolder(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.Subject userId, long serialVersion) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.VersionMismatch
setRightsHolder
in interface org.dataone.service.cn.v2.CNAuthorization
session
- - the Session object containing the credentials for the Subjectpid
- - Identifier of the object to be modifieduserId
- - The subject that will be taking ownership of the specified object.org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.VersionMismatch
public boolean isNodeAuthorized(org.dataone.service.types.v1.Session originatingNodeSession, org.dataone.service.types.v1.Subject targetNodeSubject, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.InvalidRequest
isNodeAuthorized
in interface org.dataone.service.cn.v2.CNReplication
originatingNodeSession
- - Session information that contains the
identity of the calling usertargetNodeSubject
- - Subject identifying the target nodepid
- - the identifier of the object to be replicatedreplicatePermission
- - the execute permission to be grantedorg.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
public org.dataone.service.types.v1.Identifier create(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, java.io.InputStream object, org.dataone.service.types.v2.SystemMetadata sysmeta) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.UnsupportedType, org.dataone.service.exceptions.InsufficientResources, org.dataone.service.exceptions.InvalidSystemMetadata, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
create
in interface org.dataone.service.cn.v2.CNCore
create
in class D1NodeService
session
- - the Session object containing the credentials for the Subjectpid
- - The object identifier to be createdobject
- - the object bytessysmeta
- - the system metadata that describes the objectorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.InsufficientResources
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean setAccessPolicy(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.AccessPolicy accessPolicy, long serialVersion) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.VersionMismatch
setAccessPolicy
in interface org.dataone.service.cn.v2.CNAuthorization
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given object to apply the policypolicy
- - the access policy to be appliedorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.VersionMismatch
public boolean updateReplicationMetadata(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.Replica replica, long serialVersion) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.VersionMismatch
updateReplicationMetadata
in interface org.dataone.service.cn.v2.CNReplication
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given object to apply the policyreplica
- - the replica to be updatedorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.VersionMismatch
public org.dataone.service.types.v1.ObjectList listObjects(org.dataone.service.types.v1.Session session, java.util.Date startTime, java.util.Date endTime, org.dataone.service.types.v1.ObjectFormatIdentifier formatid, org.dataone.service.types.v1.NodeReference nodeId, org.dataone.service.types.v1.Identifier identifier, java.lang.Integer start, java.lang.Integer count) throws org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure
listObjects
in interface org.dataone.service.cn.v2.CNRead
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.ServiceFailure
public org.dataone.service.types.v1.ChecksumAlgorithmList listChecksumAlgorithms() throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotImplemented
listChecksumAlgorithms
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotImplemented
public void notifyReplicaNodes(org.dataone.service.types.v2.SystemMetadata currentSystemMetadata)
currentSystemMetadata
- - the up to date system metadatapublic boolean updateSystemMetadata(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v2.SystemMetadata sysmeta) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidSystemMetadata, org.dataone.service.exceptions.InvalidToken
updateSystemMetadata
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.InvalidToken
public boolean synchronize(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotImplemented
synchronize
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1_1.QueryEngineDescription getQueryEngineDescription(org.dataone.service.types.v1.Session session, java.lang.String queryEngine) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound
getQueryEngineDescription
in interface org.dataone.service.cn.v2.CNRead
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotFound
public org.dataone.service.types.v1_1.QueryEngineList listQueryEngines(org.dataone.service.types.v1.Session session) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented
listQueryEngines
in interface org.dataone.service.cn.v2.CNRead
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
public java.io.InputStream query(org.dataone.service.types.v1.Session session, java.lang.String queryEngine, java.lang.String query) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound
query
in interface org.dataone.service.cn.v2.CNRead
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotFound
public org.dataone.service.types.v2.Node getCapabilities() throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure
getCapabilities
in interface org.dataone.service.cn.v2.CNCore
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.ServiceFailure
Copyright © 2020 Regents of the University of California. All Rights Reserved.