Interface TaskHandler

  • All Superinterfaces:
    org.exoplatform.commons.api.persistence.GenericDAO<Task,​Long>
    All Known Implementing Classes:
    TaskDAOImpl

    public interface TaskHandler
    extends org.exoplatform.commons.api.persistence.GenericDAO<Task,​Long>
    Version:
    $Revision$
    Author:
    Trong Tran
    • Method Detail

      • findTasksByLabel

        org.exoplatform.commons.utils.ListAccess<Task> findTasksByLabel​(long labelId,
                                                                        List<Long> projectIds,
                                                                        String username,
                                                                        OrderBy orderBy)
      • findTasks

        org.exoplatform.commons.utils.ListAccess<Task> findTasks​(TaskQuery query)
      • findTaskByActivityId

        Task findTaskByActivityId​(String activityId)
      • updateStatus

        void updateStatus​(Status stOld,
                          Status stNew)
      • updateTaskOrder

        void updateTaskOrder​(long currentTaskId,
                             Status newStatus,
                             long[] orders)
      • getCoworker

        Set<String> getCoworker​(long taskid)
      • getTaskWithCoworkers

        Task getTaskWithCoworkers​(long id)
      • getUncompletedTasks

        List<Task> getUncompletedTasks​(String user,
                                       int limit)
      • getWatchedTasks

        List<Task> getWatchedTasks​(String user,
                                   int limit)
      • countWatchedTasks

        Long countWatchedTasks​(String user)
      • getCollaboratedTasks

        List<Task> getCollaboratedTasks​(String user,
                                        int limit)
      • countCollaboratedTasks

        Long countCollaboratedTasks​(String user)
      • getAssignedTasks

        List<Task> getAssignedTasks​(String user,
                                    int limit)
      • countAssignedTasks

        Long countAssignedTasks​(String user)
      • getByStatus

        List<Task> getByStatus​(long statusid)
      • countUncompletedTasks

        Long countUncompletedTasks​(String user)
      • getIncomingTasks

        org.exoplatform.commons.utils.ListAccess<Task> getIncomingTasks​(String user)
      • getOverdueTasks

        List<Task> getOverdueTasks​(String user,
                                   int limit)
      • countOverdueTasks

        Long countOverdueTasks​(String user)
      • getWatchersOfTask

        Set<String> getWatchersOfTask​(Task task)
      • 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
        Parameters:
        user - username
        query - term to search in title or description
        limit - term to limit results.
        Returns:
        List of 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 - username
        query - term to search in title or description
        Returns:
        tasks count
      • countTaskStatusByProject

        List<Object[]> countTaskStatusByProject​(long projectId)