Package nl.knaw.dans.lib.dataverse
Class AdminApi
java.lang.Object
nl.knaw.dans.lib.dataverse.AdminApi
Administration API end-points.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final nl.knaw.dans.lib.dataverse.HttpClientWrapperprotected static final String -
Method Summary
Modifier and TypeMethodDescriptionprotected PathgetDatabaseSetting(String key) getQueryParamsFromMetadataKeys(Map<String, String> metadataKeys) listSingleUser(String id) putDatabaseSetting(String key, String value) toString()validateDatasetFiles(int dbId) validateDatasetFiles(String id, boolean isPersistentId)
-
Field Details
-
MDKEY_PARAM_NAME_PREFIX
- See Also:
-
httpClientWrapper
protected final nl.knaw.dans.lib.dataverse.HttpClientWrapper httpClientWrapper
-
-
Method Details
-
listSingleUser
public DataverseHttpResponse<AuthenticatedUser> listSingleUser(String id) throws IOException, DataverseException - Parameters:
id- username- Returns:
- the user
- Throws:
IOException- when I/O problems occur during the interaction with DataverseDataverseException- when Dataverse fails to perform the request- See Also:
-
putDatabaseSetting
public DataverseHttpResponse<Map<String,String>> putDatabaseSetting(String key, String value) throws IOException, DataverseException - Parameters:
key- the settings keyvalue- the new value- Returns:
- the result
- Throws:
IOException- when I/O problems occur during the interaction with DataverseDataverseException- when Dataverse fails to perform the request- See Also:
-
getDatabaseSetting
public DataverseHttpResponse<DataMessage> getDatabaseSetting(String key) throws IOException, DataverseException - Parameters:
key- the settings key- Returns:
- the result
- Throws:
IOException- when I/O problems occur during the interaction with DataverseDataverseException- when Dataverse fails to perform the request- See Also:
-
validateDatasetFiles
public DataverseHttpResponseWithoutEnvelope<DatasetFileValidationResultList> validateDatasetFiles(int dbId) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
validateDatasetFiles
public DataverseHttpResponseWithoutEnvelope<DatasetFileValidationResultList> validateDatasetFiles(String pid) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
validateDatasetFiles
public DataverseHttpResponseWithoutEnvelope<DatasetFileValidationResultList> validateDatasetFiles(String id, boolean isPersistentId) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
toString
-
buildPath
-
getQueryParamsFromMetadataKeys
-