Interface TaskStorage
- All Known Implementing Classes:
TaskStorageImpl
public interface TaskStorage
-
Method Summary
Modifier and TypeMethodDescriptionaddTaskLog(ChangeLogEntry changeLogEntry) Create a log associated with a task with givenchangeLogEntry.voidaddWatcherToTask(String username, TaskDto task) countAssignedTasks(String user) countCollaboratedTasks(String user) intcountIncomingTasks(String user) countOverdueTasks(String user) longcountTasks(String user, String query, List<String> memberships) Count tasks assigned to a user using a search term to find in title or description of the taskintcountTasks(TaskQuery query) intcountTaskStatusByProject(long projectId) countUncompletedTasks(String user) countWatchedTasks(String user) createTask(TaskDto task) Create a new task.voidDelete the provided task.voiddeleteWatcherOfTask(String username, TaskDto task) findByUser(String user) findLastUpdatedTasks(TaskQuery query, int offset, int limit) Find tasks switch last update date computed from Task Logs and Task Comments after applying theTaskQueryfilteringfindTaskByActivityId(String activityId) Find tasks assigned to a user using a term to find in title or description of the taskfindTasks(TaskSearchFilter filter) Find tasks assigned to a user using a term to find in title or description of the taskfindTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy, int offset, int limit) getAllIds(int offset, int limit) Retrieves a paginated list of all task IDs.getAssignedTasks(String user, int limit) getCollaboratedTasks(String user, int limit) getCoworker(long taskid) getIncomingTasks(String user, int offset, int limit) getOverdueTasks(String user, int limit) getTaskById(long id) Find task by its idgetTaskLogs(long taskId, int offset, int limit) getTaskWithCoworkers(long id) getUncompletedTasks(String user, int limit) getWatchedTasks(String user, int limit) getWatchersOfTask(TaskDto task) <T> List<T> selectTaskField(TaskQuery query, String fieldName) Update the provided task.voidupdateStatus(Status stOld, Status stNew) voidupdateTaskOrder(long currentTaskId, Status newStatus, long[] orders)
-
Method Details
-
getTaskById
-
createTask
-
update
-
delete
-
findTasksByLabel
-
countTasksByLabel
-
findByUser
-
findTasks
-
countTasks
-
selectTaskField
-
findTaskByActivityId
-
updateStatus
-
updateTaskOrder
-
getCoworker
-
getTaskWithCoworkers
-
getUncompletedTasks
-
getAssignedTasks
-
countAssignedTasks
-
getWatchedTasks
-
countUncompletedTasks
-
countWatchedTasks
-
getCollaboratedTasks
-
countCollaboratedTasks
-
getIncomingTasks
-
countIncomingTasks
-
getOverdueTasks
-
countOverdueTasks
-
addWatcherToTask
-
deleteWatcherOfTask
-
getWatchersOfTask
-
findTasks
Find tasks assigned to a user using a term to find in title or description of the task -
countTasks
-
addTaskLog
Create a log associated with a task with givenchangeLogEntry.- Parameters:
changeLogEntry- changeLogEntry- Returns:
- Create a log associated
- Throws:
EntityNotFoundException- when user is not authorized to add taskLog.
-
getTaskLogs
- Throws:
Exception
-
countTaskStatusByProject
-
getAllIds
-
findTasks
Find tasks assigned to a user using a term to find in title or description of the task -
findLastUpdatedTasks
Find tasks switch last update date computed from Task Logs and Task Comments after applying theTaskQueryfiltering
-