|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskManager
This manager provides methods to load tasks by ID and to retrieve lists of tasks. Once a handle on a task is obtained one can use the methods in this interface to update or delete a task or otherwise modify the task.
Task| Method Summary | |
|---|---|
void |
cleanupUserTasks(User user)
Deletes or disassociates tasks for the given user. |
com.jivesoftware.community.project.Task |
create(Project project,
User creator,
User owner,
String subject,
String body,
Date dueDate)
Creates a new task within the provided project. |
void |
create(User user,
Project project,
List<com.jivesoftware.community.project.Task> tasks)
Creates new tasks in a batch. |
com.jivesoftware.community.project.Task |
create(User user,
String subject,
String body,
Date dueDate)
Creates a new personal task. |
void |
delete(com.jivesoftware.community.project.Task task)
Delete a task. |
com.jivesoftware.community.project.Task |
getTask(long taskID)
Retrieves the task with the given id |
int |
getTaskCount()
Returns a count of all the incomplete tasks in the system. |
int |
getTaskCount(com.jivesoftware.community.project.TaskResultFilter taskResultFilter)
Returns a count of all the incomplete tasks in the system that match the provided result filter. |
JiveIterator<com.jivesoftware.community.project.Task> |
getTasks()
Returns a system wide iterator of incomplete tasks. |
JiveIterator<com.jivesoftware.community.project.Task> |
getTasks(com.jivesoftware.community.project.TaskResultFilter taskResultFilter)
Returns an iterator of tasks that match the provided result filter. |
void |
update(com.jivesoftware.community.project.Task task)
Persist updates to a task to storage |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
com.jivesoftware.community.project.Task create(Project project,
User creator,
User owner,
String subject,
String body,
Date dueDate)
throws UnauthorizedException
project - the project that the task is to be created withincreator - the user who is creating the taskowner - the user assigned to complete the tasksubject - the subject describing the taskbody - the body describing the taskdueDate - the date that the task is due to be completed
UnauthorizedException - if not allowed to create tasks within the project
com.jivesoftware.community.project.Task create(User user,
String subject,
String body,
Date dueDate)
throws UnauthorizedException
user - the user the task is being created forsubject - the subject describing the taskbody - the body describing the taskdueDate - the date that the task is due to be completed
UnauthorizedException - if not allowed to create a personal task for the user
void create(User user,
Project project,
List<com.jivesoftware.community.project.Task> tasks)
throws UnauthorizedException
user - the user creating the taskstasks - the tasks to persist
UnauthorizedException - if not allowed to create tasks within the project.
com.jivesoftware.community.project.Task getTask(long taskID)
throws NotFoundException,
UnauthorizedException
taskID - the id of the task to retrieve
NotFoundException - if no task can be found with the given id
UnauthorizedException - if not allowed to retrieve the taskint getTaskCount()
getTaskCount(TaskResultFilter) method with a filter that has
TaskResultFilter#setOnlyIncomplete(boolean) set to false.
int getTaskCount(com.jivesoftware.community.project.TaskResultFilter taskResultFilter)
taskResultFilter - the result filter to filter task results with
JiveIterator<com.jivesoftware.community.project.Task> getTasks()
getTasks(TaskResultFilter) method with a filter that has
TaskResultFilter#setOnlyIncomplete(boolean) set to false.
JiveIterator<com.jivesoftware.community.project.Task> getTasks(com.jivesoftware.community.project.TaskResultFilter taskResultFilter)
taskResultFilter - the result filter to filter task results with
void update(com.jivesoftware.community.project.Task task)
throws UnauthorizedException
task - the task to persist updates for
UnauthorizedException - if not allowed to update the task
void delete(com.jivesoftware.community.project.Task task)
throws UnauthorizedException
task - the task to delete
UnauthorizedException - if not allowed to delete the taskvoid cleanupUserTasks(User user)
user - the user associated with the tasks being modifed or deleted
UnauthorizedException - if not a system admin
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||