public interface TaskService
| Modifier and Type | Field and Description |
|---|---|
static String |
TASK_CREATION |
static String |
TASK_UPDATE |
| Modifier and Type | Method and Description |
|---|---|
ChangeLogEntry |
addTaskLog(long taskId,
String username,
String actionName,
String target)
Create a log associated with a task with given
taskId. |
void |
addWatcherToTask(String username,
TaskDto task) |
TaskDto |
cloneTask(long taskId)
Clone the task from a task with given
taskId. |
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 |
deleteWatcherOfTask(String username,
TaskDto task) |
TasksList |
filterTasks(String query,
long projectId,
String keyword,
List<Long> labels,
TaskUtil.DUE dueDate,
Priority priority,
List<String> assignees,
List<String> coworkers,
List<String> watchers,
Long labelId,
Long statusId,
org.exoplatform.services.security.Identity currIdentity,
String dueCategory,
String space_group_id,
TimeZone userTimezone,
boolean isShowCompleted,
boolean advanceSearch,
boolean noProjPermission,
boolean noLblPermission,
String orderBy,
String groupBy,
int offset,
int limit) |
TaskDto |
findTaskByActivityId(String activityId) |
List<TaskDto> |
findTasks(String user,
String query,
int limit) |
List<TaskDto> |
findTasks(TaskQuery query,
int offset,
int limit)
Find tasks assigned to a user using a term to find in title or description
of the task
|
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) |
Set<String> |
getMentionedUsers(long taskId) |
List<TaskDto> |
getOverdueTasks(String user,
int limit) |
TaskDto |
getTask(long taskId)
Return the task with given
taskId. |
List<ChangeLogEntry> |
getTaskLogs(long taskId,
int offset,
int limit) |
List<TaskDto> |
getUncompletedTasks(String user,
int limit) |
List<TaskDto> |
getWatchedTasks(String user,
int limit) |
Set<String> |
getWatchersOfTask(TaskDto task) |
boolean |
isExternal(String userId) |
void |
removeTask(long taskId)
Remove the task with given
taskId |
<T> List<T> |
selectTaskField(TaskQuery query,
String fieldName) |
TaskDto |
updateTask(TaskDto task)
Update the task.
|
void |
updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders) |
static final String TASK_CREATION
static final String TASK_UPDATE
TaskDto createTask(TaskDto task)
task - the given task.TaskDto updateTask(TaskDto task)
task - the given task.void updateTaskOrder(long currentTaskId,
Status newStatus,
long[] orders)
void removeTask(long taskId)
throws EntityNotFoundException
taskIdtaskId - the given task id.EntityNotFoundException - when user is not authorized to remove taskTaskDto cloneTask(long taskId) throws EntityNotFoundException
taskId.EntityNotFoundExceptionTaskDto getTask(long taskId) throws EntityNotFoundException
taskId.taskId - EntityNotFoundException - when user is not authorized to get 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
ExceptionChangeLogEntry addTaskLog(long taskId, String username, String actionName, String target) throws EntityNotFoundException
taskId.taskId - the given task id.username - the given username.actionName - the given action name.target - the given target.EntityNotFoundException - when user is not authorized to add taskLog.List<ChangeLogEntry> getTaskLogs(long taskId, int offset, int limit) throws Exception
ExceptionList<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(TaskQuery query, int offset, int limit) throws Exception
long countTasks(String user, String query)
user - usernamequery - term to search in title or descriptionTasksList filterTasks(String query, long projectId, String keyword, List<Long> labels, TaskUtil.DUE dueDate, Priority priority, List<String> assignees, List<String> coworkers, List<String> watchers, Long labelId, Long statusId, org.exoplatform.services.security.Identity currIdentity, String dueCategory, String space_group_id, TimeZone userTimezone, boolean isShowCompleted, boolean advanceSearch, boolean noProjPermission, boolean noLblPermission, String orderBy, String groupBy, int offset, int limit) throws Exception
Exceptionboolean isExternal(String userId)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.