Package nl.knaw.dans.lib.dataverse
Class WorkflowsApi
java.lang.Object
nl.knaw.dans.lib.dataverse.WorkflowsApi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final nl.knaw.dans.lib.dataverse.HttpClientWrapperprotected static final String -
Method Summary
Modifier and TypeMethodDescriptionaddWorkflow(Workflow workflow) protected PathdeleteDefault(String triggerType) deleteWorkflow(long workflowId) getDefault(String triggerType) getQueryParamsFromMetadataKeys(Map<String, String> metadataKeys) getWorkflow(long workflowId) resume(String invocationId, ResumeMessage resumeMessage) setDefault(String triggerType, long workflowId) setIpWhitelist(String ipWhitelist)
-
Field Details
-
MDKEY_PARAM_NAME_PREFIX
- See Also:
-
httpClientWrapper
protected final nl.knaw.dans.lib.dataverse.HttpClientWrapper httpClientWrapper
-
-
Method Details
-
resume
public DataverseHttpResponse<Object> resume(String invocationId, ResumeMessage resumeMessage) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
addWorkflow
public DataverseHttpResponse<Workflow> addWorkflow(Workflow workflow) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
listWorkflows
- Throws:
IOExceptionDataverseException
-
setDefault
public DataverseHttpResponse<DataMessage> setDefault(String triggerType, long workflowId) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
listDefaults
- Throws:
IOExceptionDataverseException
-
getDefault
public DataverseHttpResponse<Workflow> getDefault(String triggerType) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
deleteDefault
public DataverseHttpResponse<DataMessage> deleteDefault(String triggerType) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
getWorkflow
public DataverseHttpResponse<Workflow> getWorkflow(long workflowId) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
deleteWorkflow
public DataverseHttpResponse<DataMessage> deleteWorkflow(long workflowId) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
getIpWhitelist
- Throws:
IOExceptionDataverseException
-
setIpWhitelist
public DataverseHttpResponse<String> setIpWhitelist(String ipWhitelist) throws IOException, DataverseException - Throws:
IOExceptionDataverseException
-
deleteIpWhitelist
public DataverseHttpResponse<DataMessage> deleteIpWhitelist() throws IOException, DataverseException- Throws:
IOExceptionDataverseException
-
buildPath
-
getQueryParamsFromMetadataKeys
-