public interface TaskService
| Modifier and Type | Field and Description |
|---|---|
static String |
TASK_CREATION |
static String |
TASK_UPDATE |
| Modifier and Type | Method and Description |
|---|---|
Comment |
addComment(long taskId,
String username,
String commentText) |
ChangeLog |
addTaskLog(long taskId,
String username,
String actionName,
String target)
Create a log associated with a task with given
taskId. |
void |
addTaskToLabel(Long taskId,
Long labelId) |
Task |
cloneTask(long taskId)
Clone the task from a task with given
taskId. |
Label |
createLabel(Label label) |
Task |
createTask(Task task)
Create a new task.
|
org.exoplatform.commons.utils.ListAccess<Label> |
findLabelsByTask(long taskId,
String username) |
org.exoplatform.commons.utils.ListAccess<Label> |
findLabelsByUser(String username) |
org.exoplatform.commons.utils.ListAccess<String> |
findTags(String keyword) |
Task |
findTaskByActivityId(String activityId) |
org.exoplatform.commons.utils.ListAccess<Task> |
findTasks(TaskQuery query) |
org.exoplatform.commons.utils.ListAccess<Task> |
findTasksByLabel(long labelId,
List<Long> projectIds,
String username,
OrderBy orderBy) |
Comment |
getComment(long commentId) |
org.exoplatform.commons.utils.ListAccess<Comment> |
getComments(long taskId) |
Set<String> |
getCoworker(long taskId) |
Label |
getLabel(long labelId) |
Set<String> |
getTag(long taskId) |
Task |
getTask(long taskId)
Return the task with given
taskId. |
org.exoplatform.commons.utils.ListAccess<ChangeLog> |
getTaskLogs(long taskId) |
void |
removeComment(long commentId) |
void |
removeLabel(long labelId) |
void |
removeTask(long taskId)
Remove the task with given
taskId |
void |
removeTaskFromLabel(Long taskId,
Long labelId) |
<T> List<T> |
selectTaskField(TaskQuery query,
String fieldName) |
Label |
updateLabel(Label label,
List<Label.FIELDS> fields) |
Task |
updateTask(Task task)
Update the task.
|
void |
updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders) |
static final String TASK_CREATION
static final String TASK_UPDATE
Task createTask(Task task)
task - void updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders)
void removeTask(long taskId)
throws EntityNotFoundException
taskIdtaskId - EntityNotFoundExceptionTask cloneTask(long taskId) throws EntityNotFoundException
taskId.EntityNotFoundExceptionTask getTask(long taskId) throws EntityNotFoundException
taskId.taskId - EntityNotFoundExceptionComment getComment(long commentId)
org.exoplatform.commons.utils.ListAccess<Comment> getComments(long taskId)
Comment addComment(long taskId, String username, String commentText) throws EntityNotFoundException
EntityNotFoundExceptionvoid removeComment(long commentId)
throws EntityNotFoundException
EntityNotFoundExceptionorg.exoplatform.commons.utils.ListAccess<Task> findTasksByLabel(long labelId, List<Long> projectIds, String username, OrderBy orderBy) throws EntityNotFoundException
EntityNotFoundExceptionChangeLog addTaskLog(long taskId, String username, String actionName, String target) throws EntityNotFoundException
taskId.taskId - username - actionName - target - EntityNotFoundExceptionvoid addTaskToLabel(Long taskId, Long labelId) throws EntityNotFoundException
EntityNotFoundExceptionvoid removeTaskFromLabel(Long taskId, Long labelId) throws EntityNotFoundException
EntityNotFoundExceptionorg.exoplatform.commons.utils.ListAccess<Label> findLabelsByTask(long taskId, String username) throws EntityNotFoundException
EntityNotFoundExceptionLabel getLabel(long labelId)
Label updateLabel(Label label, List<Label.FIELDS> fields) throws EntityNotFoundException
EntityNotFoundExceptionvoid removeLabel(long labelId)
org.exoplatform.commons.utils.ListAccess<ChangeLog> getTaskLogs(long taskId)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.