Package org.exoplatform.task.service
Interface TaskService
- All Known Implementing Classes:
TaskServiceImpl
public interface TaskService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddTaskLog(long taskId, String username, String actionName, String target) Create a log associated with a task with giventaskId.voidaddWatcherToTask(String username, TaskDto task) cloneTask(long taskId) Clone the task from a task with giventaskId.countAssignedTasks(String user) countCollaboratedTasks(String user) intcountIncomingTasks(String user) countOverdueTasks(String user) longcountTasks(String user, String query) 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.voiddeleteWatcherOfTask(String username, TaskDto task) 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) findTaskByActivityId(String activityId) 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) findTasksByMemberShips(String user, List<String> memberships, String query, int limit) getAssignedTasks(String user, int limit) getCollaboratedTasks(String user, int limit) getCoworker(long taskId) getIncomingTasks(String user, int offset, int limit) getMentionedUsers(long taskId) getOverdueTasks(String user, int limit) getTask(long taskId) Return the task with giventaskId.getTaskLogs(long taskId, int offset, int limit) getUncompletedTasks(String user, int limit) getWatchedTasks(String user, int limit) getWatchersOfTask(TaskDto task) booleanisExternal(String userId) voidremoveTask(long taskId) Remove the task with giventaskId<T> List<T>selectTaskField(TaskQuery query, String fieldName) updateTask(TaskDto task) Update the task.voidupdateTaskOrder(long currentTaskId, Status newStatus, long[] orders)
-
Field Details
-
TASK_CREATION
- See Also:
-
TASK_UPDATE
- See Also:
-
TASK_COMMENT_CREATION
- See Also:
-
-
Method Details
-
createTask
Create a new task.- Parameters:
task- the given task.- Returns:
- the created task.
-
updateTask
Update the task.- Parameters:
task- the given task.- Returns:
- TaskDto the updated task.
-
updateTaskOrder
-
removeTask
Remove the task with giventaskId- Parameters:
taskId- the given task id.- Throws:
EntityNotFoundException- when task is not found.
-
cloneTask
Clone the task from a task with giventaskId.- Parameters:
taskId- the task Id- Returns:
- the cloned task.
- Throws:
EntityNotFoundException- when task is not found.
-
getTask
Return the task with giventaskId.- Parameters:
taskId- the task Id- Returns:
- the given task.
- Throws:
EntityNotFoundException- when task is not found.
-
getWatchedTasks
-
countWatchedTasks
-
getAssignedTasks
-
countAssignedTasks
-
getCollaboratedTasks
-
countCollaboratedTasks
-
findTasksByMemberShips
-
findTasks
-
countTasks
- Throws:
Exception
-
selectTaskField
-
findTasksByLabel
List<TaskDto> findTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy, int offset, int limit) throws Exception - Throws:
Exception
-
countTasksByLabel
int countTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy) throws Exception - Throws:
Exception
-
addTaskLog
ChangeLogEntry addTaskLog(long taskId, String username, String actionName, String target) throws EntityNotFoundException Create a log associated with a task with giventaskId.- Parameters:
taskId- the given task id.username- the given username.actionName- the given action name.target- the given target.- Returns:
- add task log.
- Throws:
EntityNotFoundException- when task is not found.
-
getTaskLogs
- Throws:
Exception
-
findTaskByActivityId
-
getCoworker
-
getMentionedUsers
-
getUncompletedTasks
-
countUncompletedTasks
-
getIncomingTasks
- Throws:
Exception
-
countIncomingTasks
- Throws:
Exception
-
getOverdueTasks
-
countOverdueTasks
-
getWatchersOfTask
-
addWatcherToTask
- Throws:
Exception
-
deleteWatcherOfTask
- Throws:
Exception
-
findTasks
Find tasks assigned to a user using a term to find in title or description of the task -
countTasks
Count tasks assigned to a user using a search term to find in title or description of the task- Parameters:
user- usernamequery- term to search in title or description- Returns:
- tasks count
-
countTaskStatusByProject
-
filterTasks
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) throws Exception - Throws:
Exception
-
isExternal
-