Package nl.knaw.dans.lib.dataverse
Class SwordApi
java.lang.Object
nl.knaw.dans.lib.dataverse.SwordApi
-
Field Summary
Modifier and TypeFieldDescriptionprotected final nl.knaw.dans.lib.dataverse.HttpClientWrapper
protected static final String
-
Method Summary
Modifier and TypeMethodDescriptionprotected Path
deleteFile
(int databaseId) Deletes a file from the current draft of the dataset.getQueryParamsFromMetadataKeys
(Map<String, String> metadataKeys) toString()
-
Field Details
-
MDKEY_PARAM_NAME_PREFIX
- See Also:
-
httpClientWrapper
protected final nl.knaw.dans.lib.dataverse.HttpClientWrapper httpClientWrapper
-
-
Method Details
-
deleteFile
public DataverseHttpResponse<Object> deleteFile(int databaseId) throws IOException, DataverseException Deletes a file from the current draft of the dataset.- Parameters:
databaseId
- the database ID of the file to delete. To look up use @{link DatasetApi#listFiles}.- Returns:
- a generic http response
- Throws:
IOException
- when I/O problems occur during the interaction with DataverseDataverseException
- when Dataverse fails to perform the request- See Also:
-
toString
-
buildPath
-
getQueryParamsFromMetadataKeys
-