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>
  • Method Details

    • findTasksByLabel

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

      List<Task> findByUser(String user)
    • findTasks

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

      List<Task> findAllByMembership(String user, List<String> memberships)
    • selectTaskField

      <T> List<T> selectTaskField(TaskQuery query, String fieldName)
    • 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)
    • addWatcherToTask

      void addWatcherToTask(String username, Task task) throws Exception
      Throws:
      Exception
    • deleteWatcherOfTask

      void deleteWatcherOfTask(String username, Task task) throws Exception
      Throws:
      Exception
    • getWatchersOfTask

      Set<String> getWatchersOfTask(Task task)
    • findTasks

      List<Task> findTasks(String user, List<String> memberships, int limit)
      Find tasks assigned to a user using a term to find in title or description of the task
      Parameters:
      user - username
      memberships - memberships
      limit - term to limit results.
      Returns:
      List of Task
    • countTasks

      long countTasks(String user)
      Count tasks assigned to a user using a search term to find in title or description of the task
      Parameters:
      user - username
      Returns:
      tasks count
    • countTaskStatusByProject

      List<Object[]> countTaskStatusByProject(long projectId)
    • getAllIds

      List<Long> getAllIds(int offset, int limit)
      Retrieves a paginated list of all task IDs.
      Parameters:
      offset - the starting position of the first result
      limit - the maximum number of results to retrieve
      Returns:
      a list of task IDs