public class TasksManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TasksManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
TasksManager() |
protected |
TasksManager(TasksManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Task |
createTask(CreateTaskRequestBody requestBody)
Creates a single task on a file.
|
Task |
createTask(CreateTaskRequestBody requestBody,
CreateTaskHeaders headers)
Creates a single task on a file.
|
void |
deleteTaskById(String taskId)
Removes a task from a file.
|
void |
deleteTaskById(String taskId,
DeleteTaskByIdHeaders headers)
Removes a task from a file.
|
Authentication |
getAuth() |
Tasks |
getFileTasks(String fileId)
Retrieves a list of all the tasks for a file.
|
Tasks |
getFileTasks(String fileId,
GetFileTasksHeaders headers)
Retrieves a list of all the tasks for a file.
|
NetworkSession |
getNetworkSession() |
Task |
getTaskById(String taskId)
Retrieves information about a specific task.
|
Task |
getTaskById(String taskId,
GetTaskByIdHeaders headers)
Retrieves information about a specific task.
|
Task |
updateTaskById(String taskId)
Updates a task.
|
Task |
updateTaskById(String taskId,
UpdateTaskByIdHeaders headers)
Updates a task.
|
Task |
updateTaskById(String taskId,
UpdateTaskByIdRequestBody requestBody)
Updates a task.
|
Task |
updateTaskById(String taskId,
UpdateTaskByIdRequestBody requestBody,
UpdateTaskByIdHeaders headers)
Updates a task.
|
public Authentication auth
public NetworkSession networkSession
public TasksManager()
protected TasksManager(TasksManager.Builder builder)
public Tasks getFileTasks(String fileId)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public Tasks getFileTasks(String fileId, GetFileTasksHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of getFileTasks methodpublic Task createTask(CreateTaskRequestBody requestBody)
requestBody - Request body of createTask methodpublic Task createTask(CreateTaskRequestBody requestBody, CreateTaskHeaders headers)
requestBody - Request body of createTask methodheaders - Headers of createTask methodpublic Task getTaskById(String taskId)
taskId - The ID of the task. Example: "12345"public Task getTaskById(String taskId, GetTaskByIdHeaders headers)
taskId - The ID of the task. Example: "12345"headers - Headers of getTaskById methodpublic Task updateTaskById(String taskId)
taskId - The ID of the task. Example: "12345"public Task updateTaskById(String taskId, UpdateTaskByIdRequestBody requestBody)
taskId - The ID of the task. Example: "12345"requestBody - Request body of updateTaskById methodpublic Task updateTaskById(String taskId, UpdateTaskByIdHeaders headers)
taskId - The ID of the task. Example: "12345"headers - Headers of updateTaskById methodpublic Task updateTaskById(String taskId, UpdateTaskByIdRequestBody requestBody, UpdateTaskByIdHeaders headers)
taskId - The ID of the task. Example: "12345"requestBody - Request body of updateTaskById methodheaders - Headers of updateTaskById methodpublic void deleteTaskById(String taskId)
taskId - The ID of the task. Example: "12345"public void deleteTaskById(String taskId, DeleteTaskByIdHeaders headers)
taskId - The ID of the task. Example: "12345"headers - Headers of deleteTaskById methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()