public class TasksClientImpl extends ApiClient implements TasksClient
baseUrl, httpClient, httpRequestHandler, objectMapper| Constructor and Description |
|---|
TasksClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient,
com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler) |
| Modifier and Type | Method and Description |
|---|---|
CancelTasksResponse |
cancelTasks(ParametersForCancelTasks parameters)
- Starts the cancellation for a set of one or more tasks.
- Provide comma-separated list of task IDs to cancel. |
TaskCollectionResponse |
listTasks(ParametersForListTasks parameters)
- Returns the status of a set of one or more tasks.
- Provide a comma-separated list of task IDs to get the task status, progress, and any errors that may have occurred. - Leave the taskIds query parameter empty, to get the list of all the task IDs associated with the current access token. - TaskStatus can be one of the following values: NotStarted, InProgress, Completed, Cancelled, or Failed. - This API employs long polling technique and could return the result immediately (e.g. |
public TasksClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient, com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler)
public TaskCollectionResponse listTasks(ParametersForListTasks parameters)
TasksClientlistTasks in interface TasksClientparameters - An object of type ParametersForListTasks which encapsulates the parameters of listTasks method.TaskCollectionResponse The return valuepublic CancelTasksResponse cancelTasks(ParametersForCancelTasks parameters)
TasksClientcancelTasks in interface TasksClientparameters - An object of type ParametersForCancelTasks which encapsulates the parameters of cancelTasks method.CancelTasksResponse The return valueCopyright © 2025. All rights reserved.