Uses of Class
nl.knaw.dans.lib.dataverse.DataverseException
Packages that use DataverseException
-
Uses of DataverseException in nl.knaw.dans.lib.dataverse
Methods in nl.knaw.dans.lib.dataverse that throw DataverseExceptionModifier and TypeMethodDescriptionAdminApi.addBannerMessage(String json) Adds a banner message.AdminApi.addBannerMessage(Messages messages) Adds a banner message.DatasetApi.addFile(PrestagedFile prestagedFile) LicenseApi.addLicense(License license) Adds a lock of the specified type to the dataset.WorkflowsApi.addWorkflow(Workflow workflow) DataverseApi.assignDefaultRoleOnDataset(String roleName) DatasetApi.assignRole(String roleAssignment) DatasetApi.assignRole(RoleAssignment roleAssignment) DataverseApi.assignRole(RoleAssignment roleAssignment) voidThe same asDatasetApi.awaitLock(String, int, int)but with defaults for number of tries and time between tries.voidUtility function that lets you wait until a specified lock type is set.voidDatasetApi.awaitState(String expectedState, long timeout, long pollingInterval) Waits for the dataset to reach the expected state.voidDatasetApi.awaitUnlock()The samevoidDatasetApi.awaitUnlock(int maxNumberOfRetries, int waitTimeInMilliseconds) Utility function that lets you wait until all locks are cleared before proceeding.voidDatasetApi.awaitUnlock(List<String> lockTypes, int maxNumberOfRetries, int waitTimeInMilliseconds) The same for a specific set of locks.voidDataverseClient.checkConnection()SolrIndexApi.clear()Clears (deletes) the Solr index.MetadataExportApi.clearExportTimestamps()Clears metadata export timestamps on published local datasets.SolrIndexApi.clearTimestamps()Clears the index timestamps for all objects, causing them to be re-indexed on the next indexing run.Creates a built-in user from a JSON string with account data.BuiltinUserApi.create(BuiltinUser accountData, String password) Creates a built-in user from a model object.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.deleteArchivalStatus(String version) Deletes the archival status of a dataset version.AdminApi.deleteBannerMessage(int id) Deletes a banner message.WorkflowsApi.deleteDefault(String triggerType) DatasetApi.deleteDraft()SwordApi.deleteFile(int databaseId) Deletes a file from the current draft of the dataset.DatasetApi.deleteFiles(List<Long> fileIds) WorkflowsApi.deleteIpWhitelist()LicenseApi.deleteLicense(long id) DatasetApi.deleteLock(String lockType) Deletes a lock of the specified type from the dataset.DatasetApi.deleteMetadata(String s, Map<String, String> metadataKeys) DatasetApi.deleteMetadata(FieldList fields, Map<String, String> metadataKeys) DatasetApi.deleteRoleAssignment(int roleAssignmentId) DataverseApi.deleteRoleAssignment(int roleAssignmentId) DatasetApi.deleteStorageDriver(String label) Deletes the storage driver with the specified label.WorkflowsApi.deleteWorkflow(long workflowId) 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()MetadataExportApi.exportAll()Attempts to export all published local datasets that have not been exported yet.A basic search action with default options.SearchApi.find(String query, SearchOptions options) A search action with specificSearchOptions.DatasetApi.getAllVersions()DatasetApi.getArchivalStatus(String version) Returns the archival status of the dataset.AdminApi.getAvailableStorageDrivers()Retrieves a list of available storage drivers from the Dataverse instance.DataverseApi.getContents()AdminApi.getDatabaseSetting(String key) WorkflowsApi.getDefault(String triggerType) LicenseApi.getDefaultLicense()<T> TBasicFileAccessApi.getFile(GetFileOptions options, GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> TBasicFileAccessApi.getFile(GetFileOptions options, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> TBasicFileAccessApi.getFile(GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> TBasicFileAccessApi.getFile(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) DataverseApi.getGuestBookResponses()WorkflowsApi.getIpWhitelist()DatasetApi.getLatestVersion()Deprecated, for removal: This API element is subject to removal in a future version.LicenseApi.getLicenseById(long id) LicenseApi.getLicenses()DatasetApi.getLocks()FileApi.getMetadata()FileApi.getMetadata(boolean includeDesaccessioned) MetadataBlocksApi.getMetadataBlock(int id) Retrieves metadata block information by its integer ID.MetadataBlocksApi.getMetadataBlock(long id) Retrieves metadata block information by its long ID.MetadataBlocksApi.getMetadataBlock(String identifier) Retrieves metadata block information by its identifier (name or ID).DatasetApi.getState()Returns the state of the latest version of the dataset that is visible to the user.DatasetApi.getStorageDriver()Retrieves the storage driver associated with a specific dataset.DataverseApi.getStorageSize()DatasetApi.getUploadUrls(long fileSize) DatasetApi.getVersion()Retrieves that latest version of a dataset that you can see with your permissions.DatasetApi.getVersion(@NonNull String version, boolean excludeFiles) DatasetApi.getVersion(String version) Retrieves a specific version of a dataset if you can see it with your permissions, otherwise returns a 401.WorkflowsApi.getWorkflow(long workflowId) 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()SolrIndexApi.indexAll()Triggers a full reindex of all content in the Dataverse installation.SolrIndexApi.indexDataset(int id) Indexes a specific dataset identified by its database id.SolrIndexApi.indexDataset(String persistentId) Indexes a specific dataset identified by its persistent identifier.SolrIndexApi.indexDataverse(int id) Indexes a specific dataverse identified by its database id.DataverseApi.isMetadataBlocksRoot()AdminApi.listAllDatabaseSettings()AdminApi.listBannerMessages()Lists all banner messages.WorkflowsApi.listDefaults()DataverseApi.listFacets()DataverseApi.listMetadataBlocks()MetadataBlocksApi.listMetadataBlocks()Retrieves a list of all metadata blocks.MetadataBlocksApi.listMetadataBlocks(boolean onlyDisplayedOnCreate) Retrieves a list of all metadata blocks with an option to filter only those displayed on create.MetadataBlocksApi.listMetadataBlocks(boolean onlyDisplayedOnCreate, boolean returnDatasetFieldTypes) Retrieves a list of all metadata blocks with options to filter only those displayed on create and to return dataset field types.DatasetApi.listRoleAssignments()DataverseApi.listRoleAssignments()DataverseApi.listRoles()AdminApi.listSingleUser(String id) WorkflowsApi.listWorkflows()DatasetApi.publish()DatasetApi.publish(UpdateType updateType, boolean assureIsIndexed) DataverseApi.publish()AdminApi.putDatabaseSetting(String key, String value) MetadataExportApi.reExportAll()Forces re-export of all published local datasets.MetadataExportApi.reExportAll(String olderThan, String... formats) Forces re-export of all published local datasets with optional filters.MetadataExportApi.reExportAllFormats(String... formats) Forces re-export of all published local datasets for the selected metadata formats.MetadataExportApi.reExportAllOlderThan(String olderThan) Forces re-export of all published local datasets exported before the supplied date.MetadataExportApi.reExportDataset(int id) Forces re-export of a specific dataset identified by its database id.MetadataExportApi.reExportDataset(int id, String... formats) Forces re-export of a specific dataset identified by its database id for selected formats.MetadataExportApi.reExportDataset(String pid) Forces re-export of a specific dataset identified by its persistent identifier.MetadataExportApi.reExportDataset(String pid, String... formats) Forces re-export of a specific dataset identified by its persistent identifier for selected formats.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) WorkflowsApi.setDefault(String triggerType, long workflowId) LicenseApi.setDefaultLicense(long id) DatasetApi.setEmbargo(String json) DatasetApi.setEmbargo(Embargo embargo) WorkflowsApi.setIpWhitelist(String ipWhitelist) DataverseApi.setMetadataBlocksRoot(boolean isRoot) DatasetApi.setRetentionPeriod(String json) DatasetApi.setRetentionPeriod(RetentionPeriod retentionPeriod) DatasetApi.setStorageDriver(String label) Sets the storage driver for the Dataverse instance with the specified label.SolrIndexApi.status()Returns the current status of the Solr index.AdminApi.submitDatasetVersionToArchive(String id, String version, boolean isPersistentId) Submits a dataset version to the archive.DatasetApi.submitForReview()MetricsApi.tree()Returns the metrics tree of dataverses.DatasetApi.updateFileMetadatas(List<FileMetaUpdate> fileMetas) 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) DatasetApi.updateRegistrationMetadata()Checks whether the metadata registered at the PID provider for a published dataset is up to date and updates it if necessary.AdminApi.validateDatasetFiles(int dbId) The following validates all the physical files in the dataset specified by recalculating the checksums and comparing them against the values saved in the database.AdminApi.validateDatasetFiles(String pid) Validates all the physical files in the dataset specified by recalculating the checksums and comparing them against the values saved in the database.AdminApi.validateDatasetFiles(String id, boolean isPersistentId) Validates all the physical files in the dataset specified by recalculating the checksums and comparing them against the values saved in the database.DataverseApi.view()
DatasetApi.getVersion()instead