public class MNodeService extends D1NodeService implements org.dataone.service.mn.tier2.v2.MNAuthorization, org.dataone.service.mn.tier1.v2.MNCore, org.dataone.service.mn.tier1.v2.MNRead, org.dataone.service.mn.tier4.v2.MNReplication, org.dataone.service.mn.tier3.v2.MNStorage, org.dataone.service.mn.v2.MNQuery, org.dataone.service.mn.v2.MNView, org.dataone.service.mn.v2.MNPackage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOI_SCHEME |
static java.lang.String |
UUID_SCHEME |
DELETEDMESSAGE, handler, MAXIMUM_DB_RECORD_COUNT, request, session2
Modifier and Type | Method and Description |
---|---|
org.dataone.service.types.v1.Identifier |
archive(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Archives an object, where the object is either a
data object or a science metadata object.
|
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 either a data
object or a science metadata object.
|
org.dataone.service.types.v1.Identifier |
delete(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier id)
Deletes an object from the Member Node, where the object is either a
data object or a science metadata object.
|
java.io.InputStream |
editScienceMetadata(org.dataone.service.types.v1.Session session,
java.io.InputStream object,
org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.Identifier newPid,
boolean isEML,
org.dataone.service.types.v2.SystemMetadata newSysmeta)
Update a science metadata document with its new Identifier
|
org.dataone.service.types.v1.Identifier |
generateIdentifier(org.dataone.service.types.v1.Session session,
java.lang.String scheme,
java.lang.String fragment) |
java.io.InputStream |
get(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Return the object identified by the given object identifier
|
org.dataone.service.types.v2.Node |
getCapabilities()
Return a description of the node's capabilities and services.
|
org.dataone.service.types.v1.Checksum |
getChecksum(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
java.lang.String algorithm)
Returns a Checksum for the specified object using an accepted hashing algorithm
|
protected org.dataone.service.types.v1.NodeReference |
getCurrentNodeId() |
static MNodeService |
getInstance(javax.servlet.http.HttpServletRequest request)
Singleton accessor to get an instance of MNodeService.
|
java.io.InputStream |
getPackage(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.ObjectFormatIdentifier formatId,
org.dataone.service.types.v1.Identifier pid) |
org.dataone.service.types.v1_1.QueryEngineDescription |
getQueryEngineDescription(org.dataone.service.types.v1.Session session,
java.lang.String engine) |
java.io.InputStream |
getReplica(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Essentially a get() but with different logging behavior
|
java.io.InputStream |
getStatus(org.dataone.service.types.v1.Session session)
Get the status of the system.
|
org.dataone.service.types.v2.SystemMetadata |
getSystemMetadata(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid)
Return the system metadata for a given object
|
protected boolean |
isAuthoritativeNode(org.dataone.service.types.v1.Identifier pid)
Determine if the current node is the authoritative node for the given pid.
|
protected boolean |
isReadOnlyMode()
Check if the metacat is in the read-only mode.
|
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 objectFormatId,
org.dataone.service.types.v1.Identifier identifier,
java.lang.Boolean replicaStatus,
java.lang.Integer start,
java.lang.Integer count)
Retrieve the list of objects present on the MN that match the calling parameters
|
org.dataone.service.types.v1_1.QueryEngineList |
listQueryEngines(org.dataone.service.types.v1.Session session) |
java.util.List<org.dataone.service.types.v1.Identifier> |
lookupOreFor(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier guid,
boolean includeObsolete)
Determines if we already have registered an ORE map for this package
NOTE: uses a solr query to locate OREs for the object
|
java.io.InputStream |
postQuery(org.dataone.service.types.v1.Session session,
java.lang.String engine,
java.util.HashMap<java.lang.String,java.lang.String[]> params)
Handle the query sent by the http post method
|
org.dataone.service.types.v1.Identifier |
publish(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier originalIdentifier)
Given an existing Science Metadata PID, this method mints a DOI
and updates the original object "publishing" the update with the DOI.
|
java.io.InputStream |
query(org.dataone.service.types.v1.Session session,
java.lang.String engine,
java.lang.String query) |
protected void |
removeIdFromIdentifierTable(org.dataone.service.types.v1.Identifier id) |
boolean |
replicate(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v2.SystemMetadata sysmeta,
org.dataone.service.types.v1.NodeReference sourceNode)
Called by a Coordinating Node to request that the Member Node create a
copy of the specified object by retrieving it from another Member
Node and storing it locally so that it can be made accessible to
the DataONE system.
|
boolean |
synchronizationFailed(org.dataone.service.types.v1.Session session,
org.dataone.service.exceptions.SynchronizationFailed syncFailed)
A callback method used by a CN to indicate to a MN that it cannot
complete synchronization of the science metadata identified by pid.
|
boolean |
systemMetadataChanged(boolean needCheckAuthoriativeNode,
org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
long serialVersion,
java.util.Date dateSysMetaLastModified)
A method to notify the Member Node that the authoritative copy of
system metadata on the Coordinating Nodes has changed.
|
boolean |
systemMetadataChanged(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
long serialVersion,
java.util.Date dateSysMetaLastModified)
A method to notify the Member Node that the authoritative copy of
system metadata on the Coordinating Nodes has changed.
|
org.dataone.service.types.v1.Identifier |
update(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Identifier pid,
java.io.InputStream object,
org.dataone.service.types.v1.Identifier newPid,
org.dataone.service.types.v2.SystemMetadata sysmeta)
Updates an existing object by creating a new object identified by
newPid on the Member Node which explicitly obsoletes the object
identified by pid through appropriate changes to the SystemMetadata
of pid and newPid
|
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, getCNNodeList, getLogRecords, getPIDForSID, getSession, 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 UUID_SCHEME
public static final java.lang.String DOI_SCHEME
public static MNodeService getInstance(javax.servlet.http.HttpServletRequest request)
public org.dataone.service.types.v1.Identifier delete(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier id) 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.mn.tier3.v2.MNStorage
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 update(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, java.io.InputStream object, org.dataone.service.types.v1.Identifier newPid, 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.NotFound, org.dataone.service.exceptions.InvalidSystemMetadata, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
update
in interface org.dataone.service.mn.tier3.v2.MNStorage
session
- - the Session object containing the credentials for the Subjectpid
- - The identifier of the object to be updatedobject
- - the new object bytessysmeta
- - the new system metadata describing the 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
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.InsufficientResources
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.InvalidRequest
protected void removeIdFromIdentifierTable(org.dataone.service.types.v1.Identifier id)
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
D1NodeService
create
in interface org.dataone.service.mn.tier3.v2.MNStorage
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 replicate(org.dataone.service.types.v1.Session session, org.dataone.service.types.v2.SystemMetadata sysmeta, org.dataone.service.types.v1.NodeReference sourceNode) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InsufficientResources, org.dataone.service.exceptions.UnsupportedType
replicate
in interface org.dataone.service.mn.tier4.v2.MNReplication
session
- - the Session object containing the credentials for the Subjectsysmeta
- - Copy of the CN held system metadata for the objectsourceNode
- - A reference to node from which the content should be
retrieved. The reference should be resolved by
checking the CN node registry.org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.InsufficientResources
org.dataone.service.exceptions.InvalidRequest
public java.io.InputStream get(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
get
in interface org.dataone.service.mn.tier1.v2.MNRead
get
in class D1NodeService
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.InvalidRequest
org.dataone.service.exceptions.NotImplemented
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, java.lang.String algorithm) 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.InvalidRequest, org.dataone.service.exceptions.NotImplemented
getChecksum
in interface org.dataone.service.mn.tier1.v2.MNRead
session
- - the Session object containing the credentials for the Subjectpid
- - the object identifier for the given objectalgorithm
- - the name of an algorithm that will be used to compute
a checksum of the bytes of the objectorg.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v2.SystemMetadata getSystemMetadata(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
getSystemMetadata
in interface org.dataone.service.mn.tier1.v2.MNRead
getSystemMetadata
in class D1NodeService
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.InvalidRequest
org.dataone.service.exceptions.NotImplemented
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 objectFormatId, org.dataone.service.types.v1.Identifier identifier, java.lang.Boolean replicaStatus, java.lang.Integer start, java.lang.Integer count) throws org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken
listObjects
in interface org.dataone.service.mn.tier1.v2.MNRead
session
- - the Session object containing the credentials for the SubjectstartTime
- - Specifies the beginning of the time range from which
to return object (>=)endTime
- - Specifies the beginning of the time range from which
to return object (>=)objectFormat
- - Restrict results to the specified object formatreplicaStatus
- - Indicates if replicated objects should be returned in the liststart
- - The zero-based index of the first value, relative to the
first record of the resultset that matches the parameters.count
- - The maximum number of entries that should be returned in
the response. The Member Node may return less entries
than specified in this value.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.Node getCapabilities() throws org.dataone.service.exceptions.ServiceFailure
getCapabilities
in interface org.dataone.service.mn.tier1.v2.MNCore
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
- - not thrown by this implementationpublic boolean synchronizationFailed(org.dataone.service.types.v1.Session session, org.dataone.service.exceptions.SynchronizationFailed syncFailed) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized
synchronizationFailed
in interface org.dataone.service.mn.tier1.v2.MNRead
session
- syncFailed
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
public java.io.InputStream getReplica(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotFound
getReplica
in interface org.dataone.service.mn.tier1.v2.MNRead
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotFound
public boolean systemMetadataChanged(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, long serialVersion, java.util.Date dateSysMetaLastModified) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidToken
systemMetadataChanged
in interface org.dataone.service.mn.tier1.v2.MNRead
session
- Session information that contains the identity of the
calling user as retrieved from the X.509 certificate
which must be traceable to the CILogon service.serialVersion
- The serialVersion of the system metadatadateSysMetaLastModified
- The time stamp for when the system metadata was changedorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidToken
public boolean systemMetadataChanged(boolean needCheckAuthoriativeNode, org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier pid, long serialVersion, java.util.Date dateSysMetaLastModified) throws org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.InvalidToken
needCheckAuthoriativeNode
- this is for the dataone version 2. In the
version 2, there are two scenarios:
1. If the node is the authoritative node, it only accepts serial version and replica list.
2. If the node is a replica, it accepts everything.
For the v1, api, the parameter should be false.session
- Session information that contains the identity of the
calling user as retrieved from the X.509 certificate
which must be traceable to the CILogon service.serialVersion
- The serialVersion of the system metadatadateSysMetaLastModified
- The time stamp for when the system metadata was changedorg.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidToken
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.mn.tier3.v2.MNStorage
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 org.dataone.service.types.v1_1.QueryEngineDescription getQueryEngineDescription(org.dataone.service.types.v1.Session session, java.lang.String engine) 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.mn.v2.MNQuery
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.mn.v2.MNQuery
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 engine, 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.mn.v2.MNQuery
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 java.io.InputStream postQuery(org.dataone.service.types.v1.Session session, java.lang.String engine, java.util.HashMap<java.lang.String,java.lang.String[]> params) 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
session
- identity information of the requesterengine
- the query engine will be used. Now we only support solrparams
- the query parameters with key/value pairsorg.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.v1.Identifier publish(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier originalIdentifier) 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, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.UnsupportedType, org.dataone.service.exceptions.InsufficientResources, org.dataone.service.exceptions.InvalidSystemMetadata, java.io.IOException
originalIdentifier
- request
- org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.InvalidSystemMetadata
org.dataone.service.exceptions.InsufficientResources
org.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.IdentifierNotUnique
java.io.IOException
https://projects.ecoinformatics.org/ecoinfo/issues/6014
public java.io.InputStream editScienceMetadata(org.dataone.service.types.v1.Session session, java.io.InputStream object, org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.Identifier newPid, boolean isEML, org.dataone.service.types.v2.SystemMetadata newSysmeta) throws org.dataone.service.exceptions.ServiceFailure, java.io.IOException, java.io.UnsupportedEncodingException, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
session
- - the Session object containing the credentials for the Subjectobject
- - the InputStream for the XML object to be editedpid
- - the Identifier of the XML object to be updatednewPid
- = the new Identifier to give to the modified XML docorg.dataone.service.exceptions.ServiceFailure
java.io.IOException
java.io.UnsupportedEncodingException
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public java.util.List<org.dataone.service.types.v1.Identifier> lookupOreFor(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Identifier guid, boolean includeObsolete)
guid
- of the EML/packaging objectpublic java.io.InputStream getPackage(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.ObjectFormatIdentifier formatId, 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.InvalidRequest, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound
getPackage
in interface org.dataone.service.mn.v2.MNPackage
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.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.mn.tier3.v2.MNStorage
session
- - the Session object containing the credentials for the Subjectpid
- - The object identifier to be archivedorg.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 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.mn.tier3.v2.MNStorage
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 java.io.InputStream getStatus(org.dataone.service.types.v1.Session session) throws org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.ServiceFailure
session
- org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.ServiceFailure
protected org.dataone.service.types.v1.NodeReference getCurrentNodeId()
protected boolean isAuthoritativeNode(org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidRequest
protected boolean isReadOnlyMode()
Copyright © 2020 Regents of the University of California. All Rights Reserved.