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.ServiceFailure
public static CNode getCN() throws ServiceFailure
ServiceFailure
public static MNode getMN(String mnBaseUrl)
mnBaseUrl
- the service URL for the Member Nodepublic static MNode getMN(NodeReference nodeRef) throws ServiceFailure
nodeRef
- ServiceFailure
public 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 systemMetadataInvalidToken
ServiceFailure
NotAuthorized
IdentifierNotUnique
UnsupportedType
InsufficientResources
InvalidSystemMetadata
NotImplemented
InvalidRequest
public 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 systemMetadataInvalidToken
ServiceFailure
NotAuthorized
IdentifierNotUnique
UnsupportedType
InsufficientResources
InvalidSystemMetadata
NotImplemented
InvalidRequest
NotFound
public static Identifier archive(Session session, D1Object d1object) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented, InvalidRequest
session
- d1object
- - the d1object representing both the data bytes and systemMetadataInvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
NotFound
public static ObsoletesChain listUpdateHistory(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
pid
- InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
Copyright © 2014. All Rights Reserved.