Package nl.knaw.dans.lib.dataverse
Class DataverseClient
java.lang.Object
nl.knaw.dans.lib.dataverse.DataverseClient
Object that lets your code talk to a Dataverse server.
-
Constructor Summary
ConstructorDescriptionDataverseClient
(DataverseClientConfig config) Creates a DataverseClient.DataverseClient
(DataverseClientConfig config, org.apache.hc.client5.http.classic.HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates a DataverseClient with a custom HttpClient. -
Method Summary
Modifier and TypeMethodDescriptionaccessRequests
(int id) accessRequests
(int id, String invocationId) accessRequests
(String pid) accessRequests
(String pid, String invocationId) admin()
basicFileAccess
(int id) basicFileAccess
(int id, String invocationId) basicFileAccess
(String pid) basicFileAccess
(String pid, String invocationId) void
dataset
(int pid) file
(int id) license()
search()
sword()
toString()
-
Constructor Details
-
DataverseClient
Creates a DataverseClient.- Parameters:
config
- configuration for this DataverseClient
-
DataverseClient
public DataverseClient(DataverseClientConfig config, org.apache.hc.client5.http.classic.HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates a DataverseClient with a custom HttpClient.- Parameters:
config
- configuration for this DataverseClienthttpClient
- the HttpClient to use, or null to use a default clientobjectMapper
- the Jackson object mapper to use, or null to use a default mapper
-
-
Method Details
-
checkConnection
- Throws:
IOException
DataverseException
-
workflows
-
dataset
-
dataset
-
dataset
-
dataset
-
dataverse
-
admin
-
sword
-
file
-
file
-
accessRequests
-
accessRequests
-
accessRequests
-
accessRequests
-
basicFileAccess
-
basicFileAccess
-
basicFileAccess
-
basicFileAccess
-
search
-
license
-
toString
-