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