@Singleton public class TaskServiceImpl extends Object implements TaskService
TASK_CREATION, TASK_UPDATE| Constructor and Description |
|---|
TaskServiceImpl(DAOHandler daoHandler,
org.exoplatform.services.listener.ListenerService listenerService) |
| Modifier and Type | Method and Description |
|---|---|
Comment |
addComment(long id,
String username,
String comment) |
ChangeLog |
addTaskLog(long id,
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 id)
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 id) |
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 id)
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 id)
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) |
public TaskServiceImpl(DAOHandler daoHandler, org.exoplatform.services.listener.ListenerService listenerService)
public Task createTask(Task task)
TaskServicecreateTask in interface TaskServicepublic Task updateTask(Task task)
TaskServiceupdateTask in interface TaskServicepublic void updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders)
updateTaskOrder in interface TaskServicepublic void removeTask(long id)
throws EntityNotFoundException
TaskServicetaskIdremoveTask in interface TaskServiceEntityNotFoundExceptionpublic Task cloneTask(long id) throws EntityNotFoundException
TaskServicetaskId.cloneTask in interface TaskServiceEntityNotFoundExceptionpublic Task getTask(long id) throws EntityNotFoundException
TaskServicetaskId.getTask in interface TaskServiceEntityNotFoundExceptionpublic Comment getComment(long commentId)
getComment in interface TaskServicepublic org.exoplatform.commons.utils.ListAccess<Comment> getComments(long taskId)
getComments in interface TaskServicepublic Comment addComment(long id, String username, String comment) throws EntityNotFoundException
addComment in interface TaskServiceEntityNotFoundExceptionpublic ChangeLog addTaskLog(long id, String username, String actionName, String target) throws EntityNotFoundException
TaskServicetaskId.addTaskLog in interface TaskServiceEntityNotFoundExceptionpublic org.exoplatform.commons.utils.ListAccess<ChangeLog> getTaskLogs(long taskId)
getTaskLogs in interface TaskServicepublic void removeComment(long commentId)
throws EntityNotFoundException
removeComment in interface TaskServiceEntityNotFoundExceptionpublic org.exoplatform.commons.utils.ListAccess<Task> findTasks(TaskQuery query)
findTasks in interface TaskServicepublic <T> List<T> selectTaskField(TaskQuery query, String fieldName)
selectTaskField in interface TaskServicepublic void addTaskToLabel(Long taskId, Long labelId) throws EntityNotFoundException
addTaskToLabel in interface TaskServiceEntityNotFoundExceptionpublic void removeTaskFromLabel(Long taskId, Long labelId) throws EntityNotFoundException
removeTaskFromLabel in interface TaskServiceEntityNotFoundExceptionpublic org.exoplatform.commons.utils.ListAccess<Task> findTasksByLabel(long labelId, List<Long> projectIds, String username, OrderBy orderBy) throws EntityNotFoundException
findTasksByLabel in interface TaskServiceEntityNotFoundExceptionpublic org.exoplatform.commons.utils.ListAccess<Label> findLabelsByUser(String username)
findLabelsByUser in interface TaskServicepublic org.exoplatform.commons.utils.ListAccess<Label> findLabelsByTask(long taskId, String username) throws EntityNotFoundException
findLabelsByTask in interface TaskServiceEntityNotFoundExceptionpublic Label getLabel(long labelId)
getLabel in interface TaskServicepublic Label createLabel(Label label)
createLabel in interface TaskServicepublic Label updateLabel(Label label, List<Label.FIELDS> fields) throws EntityNotFoundException
updateLabel in interface TaskServiceEntityNotFoundExceptionpublic void removeLabel(long labelId)
removeLabel in interface TaskServicepublic Task findTaskByActivityId(String id)
findTaskByActivityId in interface TaskServicepublic Set<String> getTag(long taskId)
getTag in interface TaskServicepublic Set<String> getCoworker(long taskId)
getCoworker in interface TaskServicepublic org.exoplatform.commons.utils.ListAccess<String> findTags(String keyword)
findTags in interface TaskServiceCopyright © 2003–2016 eXo Platform SAS. All rights reserved.