Uses of Class
nl.knaw.dans.lib.dataverse.DataverseException
-
Uses of DataverseException in nl.knaw.dans.lib.dataverse
Modifier and TypeMethodDescriptionLicenseApi.addLicense
(License license) DataverseApi.assignDefaultRoleOnDataset
(String roleName) DatasetApi.assignRole
(String roleAssignment) DatasetApi.assignRole
(RoleAssignment roleAssignment) DataverseApi.assignRole
(RoleAssignment roleAssignment) void
The same asDatasetApi.awaitLock(String, int, int)
but with defaults for number of tries and time between tries.void
Utility function that lets you wait until a specified lock type is set.void
DatasetApi.awaitUnlock()
The samevoid
DatasetApi.awaitUnlock
(int maxNumberOfRetries, int waitTimeInMilliseconds) Utility function that lets you wait until all locks are cleared before proceeding.void
DataverseClient.checkConnection()
DataverseApi.createDataset
(String dataset) DataverseApi.createDataset
(String dataset, Map<String, String> metadataKeys) DataverseApi.createDataset
(Dataset dataset) DataverseApi.createDataset
(Dataset dataset, Map<String, String> metadataKeys) DataverseApi.createRole
(String role) DataverseApi.createRole
(Role role) DataverseApi.defineMetadataBlocks
(List<String> metadataBlocks) DataverseApi.delete()
DatasetApi.deleteDraft()
SwordApi.deleteFile
(int databaseId) Deletes a file from the current draft of the dataset.LicenseApi.deleteLicense
(long id) DatasetApi.deleteMetadata
(String s, Map<String, String> metadataKeys) DatasetApi.deleteMetadata
(FieldList fields, Map<String, String> metadataKeys) DatasetApi.deleteRoleAssignment
(int roleAssignmentId) DataverseApi.deleteRoleAssignment
(int roleAssignmentId) DataAccessRequestsApi.disable()
DatasetApi.editMetadata
(String s) Edits the current draft's metadata, adding the fields that do not exist yet.DatasetApi.editMetadata
(String s, Boolean replace) Edits the current draft's metadata, adding the fields that do not exist yet.Edits the current draft's metadata, adding the fields that do not exist yet.DatasetApi.editMetadata
(String s, Map<String, String> metadataKeys) Edits the current draft's metadata, adding the fields that do not exist yet.DatasetApi.editMetadata
(FieldList fields) Edits the current draft's metadata, adding the fields that do not exist yet.DatasetApi.editMetadata
(FieldList fields, Boolean replace) Edits the current draft's metadata, adding the fields that do not exist yet.Edits the current draft's metadata, adding the fields that do not exist yet.DatasetApi.editMetadata
(FieldList fields, Map<String, String> metadataKeys) Edits the current draft's metadata, adding the fields that do not exist yet.DataAccessRequestsApi.enable()
A basic search action with default options.SearchApi.find
(String query, SearchOptions options) A search action with specificSearchOptions
.DatasetApi.getAllVersions()
DataverseApi.getContents()
AdminApi.getDatabaseSetting
(String key) LicenseApi.getDefaultLicense()
<T> T
BasicFileAccessApi.getFile
(GetFileOptions options, GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> T
BasicFileAccessApi.getFile
(GetFileOptions options, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> T
BasicFileAccessApi.getFile
(GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> T
BasicFileAccessApi.getFile
(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) DataverseApi.getGuestBookResponses()
DatasetApi.getLatestVersion()
LicenseApi.getLicenseById
(long id) LicenseApi.getLicenses()
DatasetApi.getLocks()
DataverseApi.getStorageSize()
DatasetApi.getVersion()
Retrieves that latest version of a dataset.DatasetApi.getVersion
(String version) DataverseApi.importDataset
(String dataset, String persistentId, boolean autoPublish) DataverseApi.importDataset
(String dataset, String persistentId, boolean autoPublish, Map<String, String> metadataKeys) DataverseApi.importDataset
(Dataset dataset, String persistentId, boolean autoPublish) DataverseApi.importDataset
(Dataset dataset, String persistentId, boolean autoPublish, Map<String, String> metadataKeys) DataverseApi.importDatasetFromDdi()
DataverseApi.isMetadataBlocksRoot()
DataverseApi.listFacets()
DataverseApi.listMetadataBlocks()
DatasetApi.listRoleAssignments()
DataverseApi.listRoleAssignments()
DataverseApi.listRoles()
AdminApi.listSingleUser
(String id) DatasetApi.publish()
DatasetApi.publish
(UpdateType updateType, boolean assureIsIndexed) DataverseApi.publish()
AdminApi.putDatabaseSetting
(String key, String value) DatasetApi.releaseMigrated
(String publicationDateJsonLd, boolean assureIsIndexed) FileApi.replaceFile
(Path dataFile, String fileMeta) FileApi.replaceFile
(Path dataFile, FileMeta fileMeta) WorkflowsApi.resume
(String invocationId, ResumeMessage resumeMessage) LicenseApi.setActiveState
(long id, boolean active) LicenseApi.setDefaultLicense
(long id) DatasetApi.setEmbargo
(String json) DatasetApi.setEmbargo
(Embargo embargo) DataverseApi.setMetadataBlocksRoot
(boolean isRoot) DatasetApi.setRetentionPeriod
(String json) DatasetApi.setRetentionPeriod
(RetentionPeriod retentionPeriod) DatasetApi.submitForReview()
DatasetApi.updateMetadata
(String s) DatasetApi.updateMetadata
(String s, Map<String, String> metadataKeys) DatasetApi.updateMetadata
(DatasetVersion version) Note that not all the attributes of the DatasetVersion object are writable.DatasetApi.updateMetadata
(DatasetVersion version, Map<String, String> metadataKeys) FileApi.updateMetadata
(String fileMeta) FileApi.updateMetadata
(FileMeta fileMeta) DatasetApi.updateMetadataFromJsonLd
(String metadata, boolean replace) DatasetApi.updateMetadataFromJsonLd
(String metadata, boolean replace, Map<String, String> metadataKeys) AdminApi.validateDatasetFiles
(int dbId) AdminApi.validateDatasetFiles
(String pid) AdminApi.validateDatasetFiles
(String id, boolean isPersistentId) DataverseApi.view()