@Singleton public class TaskServiceImpl extends Object implements TaskService
| Constructor and Description |
|---|
TaskServiceImpl(DAOHandler daoHandler) |
public TaskServiceImpl(DAOHandler daoHandler)
public static TaskServiceImpl createInstance(DAOHandler hl, List<TaskListener> ls)
public Task createTask(Task task)
createTask in interface TaskServicepublic Task updateTaskInfo(long id, String param, String[] values, TimeZone timezone) throws TaskNotFoundException, ParameterEntityException, StatusNotFoundException
updateTaskInfo in interface TaskServiceTaskNotFoundExceptionParameterEntityExceptionStatusNotFoundExceptionpublic void updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders)
updateTaskOrder in interface TaskServicepublic Task updateTaskCompleted(long id, Boolean completed) throws TaskNotFoundException, ParameterEntityException, StatusNotFoundException
updateTaskCompleted in interface TaskServiceTaskNotFoundExceptionParameterEntityExceptionStatusNotFoundExceptionpublic void deleteTask(Task task)
deleteTask in interface TaskServicepublic void deleteTaskById(long id)
throws TaskNotFoundException
deleteTaskById in interface TaskServiceTaskNotFoundExceptionpublic Task cloneTaskById(long id) throws TaskNotFoundException
cloneTaskById in interface TaskServiceTaskNotFoundExceptionpublic Task getTaskById(long id) throws TaskNotFoundException
getTaskById in interface TaskServiceTaskNotFoundExceptionpublic Long getNbOfCommentsByTask(Task task)
getNbOfCommentsByTask in interface TaskServicepublic List<Comment> getCommentsByTaskId(long id, int start, int limit) throws TaskNotFoundException
getCommentsByTaskId in interface TaskServiceTaskNotFoundExceptionpublic List<Comment> getCommentsByTask(Task task, int start, int limit)
getCommentsByTask in interface TaskServicepublic Comment addCommentToTaskId(long id, String username, String comment) throws TaskNotFoundException
addCommentToTaskId in interface TaskServiceTaskNotFoundExceptionpublic TaskLog addTaskLog(long id, String username, String msg, String target) throws TaskNotFoundException
addTaskLog in interface TaskServiceTaskNotFoundExceptionpublic void deleteCommentById(long commentId)
throws CommentNotFoundException
deleteCommentById in interface TaskServiceCommentNotFoundExceptionpublic List<Task> getIncomingTasksByUser(String username, OrderBy orderBy)
getIncomingTasksByUser in interface TaskServicepublic List<Task> getToDoTasksByUser(String username, List<Long> projectIds, OrderBy orderBy, Date fromDueDate, Date toDueDate)
getToDoTasksByUser in interface TaskServicepublic List<Task> findTaskByQuery(TaskQuery query)
findTaskByQuery in interface TaskServicepublic long getTaskNum(String username, List<Long> projectIds)
getTaskNum in interface TaskServiceCopyright © 2003–2015 eXo Platform SAS. All rights reserved.