public class BoxTasksManager extends Object
| Constructor and Description |
|---|
BoxTasksManager(com.box.sdk.BoxAPIConnection boxConnection)
Create tasks manager to manage the tasks of Box connection's authenticated user.
|
| Modifier and Type | Method and Description |
|---|---|
com.box.sdk.BoxTask |
addAssignmentToTask(String taskId,
com.box.sdk.BoxUser assignTo)
Add assignment for task.
|
com.box.sdk.BoxTask |
addFileTask(String fileId,
com.box.sdk.BoxTask.Action action,
Date dueAt,
String message)
Add task to file.
|
void |
deleteTask(String taskId)
Delete task.
|
void |
deleteTaskAssignment(String taskAssignmentId)
Delete task assignment.
|
List<com.box.sdk.BoxTask.Info> |
getFileTasks(String fileId)
Get a list of any tasks on file.
|
com.box.sdk.BoxTaskAssignment.Info |
getTaskAssignmentInfo(String taskAssignmentId)
Get task assignment information.
|
List<com.box.sdk.BoxTaskAssignment.Info> |
getTaskAssignments(String taskId)
Get a list of any assignments for task.
|
com.box.sdk.BoxTask.Info |
getTaskInfo(String taskId)
Get task information.
|
com.box.sdk.BoxTask |
updateTaskInfo(String taskId,
com.box.sdk.BoxTask.Info info)
Update task information.
|
public BoxTasksManager(com.box.sdk.BoxAPIConnection boxConnection)
boxConnection - - Box connection to authenticated user account.public List<com.box.sdk.BoxTask.Info> getFileTasks(String fileId)
fileId - - the id of file.public com.box.sdk.BoxTask addFileTask(String fileId, com.box.sdk.BoxTask.Action action, Date dueAt, String message)
fileId - - the id of file to add task to.action - - the action the task assignee will be prompted to do.dueAt - - - the day at which this task is due.message - - an optional message to include with the task.public void deleteTask(String taskId)
taskId - - the id of task to delete.public com.box.sdk.BoxTask.Info getTaskInfo(String taskId)
taskId - - the id of task.public com.box.sdk.BoxTask updateTaskInfo(String taskId, com.box.sdk.BoxTask.Info info)
taskId - - the id of task.info - - the updated informationpublic List<com.box.sdk.BoxTaskAssignment.Info> getTaskAssignments(String taskId)
taskId - - the id of task.public com.box.sdk.BoxTask addAssignmentToTask(String taskId, com.box.sdk.BoxUser assignTo)
taskId - - the id of task to add assignment for.assignTo - - the user to assign to task.public com.box.sdk.BoxTaskAssignment.Info getTaskAssignmentInfo(String taskAssignmentId)
taskAssignmentId - - the id of task assignment.public void deleteTaskAssignment(String taskAssignmentId)
taskAssignmentId - - the id of task assignment to delete.Apache Camel