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) getLatestTaskLogsBefore(Collection<Long> taskIds, Date before, Collection<String> actionNames) getOverdueTasks(String user, int limit) getTaskById(long id) Find task by its idgetTaskLogs(long taskId, int offset, int limit) getTaskLogsSince(Collection<Long> taskIds, Date since) 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
-
getTaskLogsSince
- Parameters:
taskIds- the taskssince- the earliest date, included- Returns:
- their change log entries logged at or after that date, read in one query, in no order
-
getLatestTaskLogsBefore
List<ChangeLogEntry> getLatestTaskLogsBefore(Collection<Long> taskIds, Date before, Collection<String> actionNames) - Parameters:
taskIds- the tasksbefore- the date the entries precede, excludedactionNames- the actions of the entries- Returns:
- the latest entry of each task logged before that date with one of those actions, read in one query, in no order; two entries logged at that same time both come
-
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
-