public class D1Client extends Object
| Constructor and Description |
|---|
D1Client() |
| Modifier and Type | Method and Description |
|---|---|
static Identifier |
archive(Session session,
D1Object d1object)
Perform an archive on an object in DataONE with the given D1Object on the
authoritativeMemberNode contained in its systemMetadata.
|
static Identifier |
create(Session session,
D1Object d1object)
Attempts to create the given D1Object on the originMemberNode contained
in its SystemMetadata.
|
static CNode |
getCN()
Get the client instance of the Coordinating Node object for calling Coordinating Node services.
|
static CNode |
getCN(Session session)
Get the client instance of the Coordinating Node object for calling Coordinating Node services.
|
static MNode |
getMN(NodeReference nodeRef)
Construct and return a Member Node using the nodeReference
for the member node.
|
static MNode |
getMN(String mnBaseUrl)
Construct and return a Member Node using the base service URL for the node.
|
static ObsoletesChain |
listUpdateHistory(Identifier pid)
Return the full ObsoletesChain for the given Identifier.
|
static Identifier |
update(Session session,
D1Object d1object)
Perform an update an object in DataONE with the given D1Object on the
originMemberNode contained in its systemMetadata.
|
public static CNode getCN(Session session) throws ServiceFailure
session - - the client session to be used in connections, null uses default behavior.ServiceFailurepublic static CNode getCN() throws ServiceFailure
ServiceFailurepublic static MNode getMN(String mnBaseUrl)
mnBaseUrl - the service URL for the Member Nodepublic static MNode getMN(NodeReference nodeRef) throws ServiceFailure
nodeRef - ServiceFailurepublic static Identifier create(Session session, D1Object d1object) throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, NotImplemented, InvalidRequest
session - d1object - - the d1object representing both the data bytes and systemMetadataInvalidTokenServiceFailureNotAuthorizedIdentifierNotUniqueUnsupportedTypeInsufficientResourcesInvalidSystemMetadataNotImplementedInvalidRequestpublic static Identifier update(Session session, D1Object d1object) throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, NotImplemented, InvalidRequest, NotFound
session - d1object - - the d1object representing both the data bytes and systemMetadataInvalidTokenServiceFailureNotAuthorizedIdentifierNotUniqueUnsupportedTypeInsufficientResourcesInvalidSystemMetadataNotImplementedInvalidRequestNotFoundpublic static Identifier archive(Session session, D1Object d1object) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented, InvalidRequest
session - d1object - - the d1object representing both the data bytes and systemMetadataInvalidTokenServiceFailureNotAuthorizedNotImplementedInvalidRequestNotFoundpublic static ObsoletesChain listUpdateHistory(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
pid - InvalidTokenServiceFailureNotAuthorizedNotFoundNotImplementedCopyright © 2014. All Rights Reserved.