Package org.exoplatform.task.dao
Interface TaskHandler
-
- All Known Implementing Classes:
TaskDAOImpl
public interface TaskHandler extends org.exoplatform.commons.api.persistence.GenericDAO<Task,Long>
- Version:
- $Revision$
- Author:
- Trong Tran
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddWatcherToTask(String username, Task task)LongcountAssignedTasks(String user)LongcountCollaboratedTasks(String user)LongcountOverdueTasks(String user)longcountTasks(String user, String query)Count tasks assigned to a user using a search term to find in title or description of the taskList<Object[]>countTaskStatusByProject(long projectId)LongcountUncompletedTasks(String user)LongcountWatchedTasks(String user)voiddeleteWatcherOfTask(String username, Task task)List<Task>findAllByMembership(String user, List<String> memberships)List<Task>findByUser(String user)TaskfindTaskByActivityId(String activityId)List<Task>findTasks(String user, String query, int limit)Find tasks assigned to a user using a term to find in title or description of the taskorg.exoplatform.commons.utils.ListAccess<Task>findTasks(TaskQuery query)org.exoplatform.commons.utils.ListAccess<Task>findTasksByLabel(long labelId, List<Long> projectIds, String username, OrderBy orderBy)List<Task>getAssignedTasks(String user, int limit)List<Task>getByStatus(long statusid)List<Task>getCollaboratedTasks(String user, int limit)Set<String>getCoworker(long taskid)org.exoplatform.commons.utils.ListAccess<Task>getIncomingTasks(String user)List<Task>getOverdueTasks(String user, int limit)TaskgetTaskWithCoworkers(long id)List<Task>getUncompletedTasks(String user, int limit)List<Task>getWatchedTasks(String user, int limit)Set<String>getWatchersOfTask(Task task)<T> List<T>selectTaskField(TaskQuery query, String fieldName)voidupdateStatus(Status stOld, Status stNew)voidupdateTaskOrder(long currentTaskId, Status newStatus, long[] orders)
-
-
-
Method Detail
-
findTasksByLabel
org.exoplatform.commons.utils.ListAccess<Task> findTasksByLabel(long labelId, List<Long> projectIds, String username, OrderBy orderBy)
-
updateTaskOrder
void updateTaskOrder(long currentTaskId, Status newStatus, long[] orders)
-
getTaskWithCoworkers
Task getTaskWithCoworkers(long id)
-
addWatcherToTask
void addWatcherToTask(String username, Task task) throws Exception
- Throws:
Exception
-
deleteWatcherOfTask
void deleteWatcherOfTask(String username, Task task) throws Exception
- Throws:
Exception
-
findTasks
List<Task> findTasks(String user, String query, int limit)
Find tasks assigned to a user using a term to find in title or description of the task
-
countTasks
long countTasks(String user, String query)
Count tasks assigned to a user using a search term to find in title or description of the task- Parameters:
user- usernamequery- term to search in title or description- Returns:
- tasks count
-
-