public interface TaskStorage
| Modifier and Type | Method and Description |
|---|---|
ChangeLogEntry |
addTaskLog(ChangeLogEntry changeLogEntry)
Create a log associated with a task with given
changeLogEntry. |
void |
addWatcherToTask(String username,
TaskDto task) |
ChangeLogEntry |
changeLogToDto(ChangeLog changeLog) |
ChangeLog |
changeLogToEntity(ChangeLogEntry changeLogEntry) |
Long |
countAssignedTasks(String user) |
Long |
countCollaboratedTasks(String user) |
int |
countIncomingTasks(String user) |
Long |
countOverdueTasks(String user) |
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
|
int |
countTasks(TaskQuery query) |
int |
countTasksByLabel(LabelDto label,
List<Long> projectIds,
String username,
OrderBy orderBy) |
List<Object[]> |
countTaskStatusByProject(long projectId) |
Long |
countUncompletedTasks(String user) |
Long |
countWatchedTasks(String user) |
TaskDto |
createTask(TaskDto task)
Create a new task.
|
void |
delete(TaskDto task)
Delete the provided task.
|
void |
deleteWatcherOfTask(String username,
TaskDto task) |
List<TaskDto> |
findByUser(String user) |
TaskDto |
findTaskByActivityId(String activityId) |
List<TaskDto> |
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
|
List<TaskDto> |
findTasks(TaskQuery query,
int offset,
int limit) |
List<TaskDto> |
findTasksByLabel(LabelDto label,
List<Long> projectIds,
String username,
OrderBy orderBy,
int offset,
int limit) |
List<TaskDto> |
getAssignedTasks(String user,
int limit) |
List<TaskDto> |
getCollaboratedTasks(String user,
int limit) |
Set<String> |
getCoworker(long taskid) |
List<TaskDto> |
getIncomingTasks(String user,
int offset,
int limit) |
List<TaskDto> |
getOverdueTasks(String user,
int limit) |
TaskDto |
getTaskById(long id)
Find task by its id
|
List<ChangeLogEntry> |
getTaskLogs(long taskId,
int offset,
int limit) |
TaskDto |
getTaskWithCoworkers(long id) |
List<TaskDto> |
getUncompletedTasks(String user,
int limit) |
List<TaskDto> |
getWatchedTasks(String user,
int limit) |
Set<String> |
getWatchersOfTask(TaskDto task) |
<T> List<T> |
selectTaskField(TaskQuery query,
String fieldName) |
TaskDto |
toDto(Task taskEntity) |
Task |
toEntity(TaskDto taskDto) |
TaskDto |
update(TaskDto task)
Update the provided task.
|
void |
updateStatus(Status stOld,
Status stNew) |
void |
updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders) |
TaskDto getTaskById(long id)
id - the given id.TaskDtoTaskDto createTask(TaskDto task)
task - the given taskTaskDtoTaskDto update(TaskDto task)
task - the given task.TaskDtovoid delete(TaskDto task)
task - the provided task.List<TaskDto> findTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy, int offset, int limit) throws Exception
Exceptionint countTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy) throws Exception
ExceptionList<TaskDto> findTasks(TaskQuery query, int offset, int limit) throws Exception
Exceptionvoid updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders)
TaskDto getTaskWithCoworkers(long id)
List<TaskDto> getIncomingTasks(String user, int offset, int limit) throws Exception
Exceptionvoid addWatcherToTask(String username, TaskDto task) throws Exception
Exceptionvoid deleteWatcherOfTask(String username, TaskDto task) throws Exception
ExceptionList<TaskDto> findTasks(String user, String query, int limit)
long countTasks(String user, String query)
user - usernamequery - term to search in title or descriptionChangeLogEntry addTaskLog(ChangeLogEntry changeLogEntry) throws EntityNotFoundException
changeLogEntry.changeLogEntry - changeLogEntryEntityNotFoundException - when user is not authorized to add taskLog.List<ChangeLogEntry> getTaskLogs(long taskId, int offset, int limit) throws Exception
ExceptionChangeLog changeLogToEntity(ChangeLogEntry changeLogEntry)
ChangeLogEntry changeLogToDto(ChangeLog changeLog)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.