|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskService
Provides services related to tasks.
| Method Summary | |
|---|---|
java.util.concurrent.Future<java.util.List<Task>> |
createOrUpdate(java.lang.String username,
java.util.List<Task> tasks)
Create or update tasks for the user. |
java.util.concurrent.Future<Task> |
createOrUpdate(java.lang.String username,
Task task)
Create or update a task for the user. |
void |
delete(java.lang.String username,
java.lang.String globalId)
Delete a task by username and globalId. |
Task |
find(java.lang.String username,
java.lang.String globalId)
Find a task by username and globalId. |
java.util.concurrent.Future<Task> |
markComplete(java.lang.String username,
java.lang.String globalId)
Changes the status of the given task to Status.DONE. |
java.util.concurrent.Future<Task> |
markIncomplete(java.lang.String username,
java.lang.String globalId)
Changes the status of the given task to Status.TODO. |
java.util.concurrent.Future<Task> |
setTitle(java.lang.String username,
java.lang.String globalId,
java.lang.String title)
Changes the title of the given task. |
| Method Detail |
|---|
java.util.concurrent.Future<Task> createOrUpdate(java.lang.String username,
Task task)
If another task already exists with the same globalId the existing task will be updated. Otherwise a new task will be created.
username - username of the user to create the task fortask - task to create
java.util.concurrent.Future<java.util.List<Task>> createOrUpdate(java.lang.String username,
java.util.List<Task> tasks)
If another task already exists with the same globalId the existing task will be updated. Otherwise a new task will be created.
username - username of the user to create the tasks fortasks - tasks to create
void delete(java.lang.String username,
java.lang.String globalId)
username - username of the user that owns the taskglobalId - globalId of the task to delete
Task find(java.lang.String username,
java.lang.String globalId)
username - username of the user that owns the taskglobalId - globalId of the task to find
java.util.concurrent.Future<Task> markComplete(java.lang.String username,
java.lang.String globalId)
Status.DONE.
username - username of the user that owns the taskglobalId - globalId of the task to mark completed
java.util.concurrent.Future<Task> markIncomplete(java.lang.String username,
java.lang.String globalId)
Status.TODO.
username - username of the user that owns the taskglobalId - globalId of the task to mark as incomplete
java.util.concurrent.Future<Task> setTitle(java.lang.String username,
java.lang.String globalId,
java.lang.String title)
username - username of the user that owns the taskglobalId - globalId of the tasktitle - title to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||