Class TaskServiceImpl
java.lang.Object
org.exoplatform.task.service.impl.TaskServiceImpl
- All Implemented Interfaces:
TaskService
-
Field Summary
Fields inherited from interface org.exoplatform.task.service.TaskService
TASK_COMMENT_CREATION, TASK_CREATION, TASK_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionTaskServiceImpl(TaskStorage taskStorage, DAOHandler daoHandler, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionaddTaskLog(long id, String username, String actionName, String target) Create a log associated with a task with giventaskId.voidaddWatcherToTask(String user, TaskDto task) cloneTask(long id) 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 user, TaskDto task) filterTasks(String query, long projectId, String keyword, List<Long> labels, TaskUtil.DUE dueDate, Priority priority, List<String> assignees, List<String> coworker, 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) 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 id) 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 id) 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)
-
Constructor Details
-
TaskServiceImpl
public TaskServiceImpl(TaskStorage taskStorage, DAOHandler daoHandler, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
createTask
Description copied from interface:TaskServiceCreate a new task.- Specified by:
createTaskin interfaceTaskService- Parameters:
task- the given task.- Returns:
- the created task.
-
updateTask
Description copied from interface:TaskServiceUpdate the task.- Specified by:
updateTaskin interfaceTaskService- Parameters:
task- the given task.- Returns:
- TaskDto the updated task.
-
updateTaskOrder
- Specified by:
updateTaskOrderin interfaceTaskService
-
removeTask
Description copied from interface:TaskServiceRemove the task with giventaskId- Specified by:
removeTaskin interfaceTaskService- Parameters:
id- the given task id.- Throws:
EntityNotFoundException- when task is not found.
-
cloneTask
Description copied from interface:TaskServiceClone the task from a task with giventaskId.- Specified by:
cloneTaskin interfaceTaskService- Parameters:
id- the task Id- Returns:
- the cloned task.
- Throws:
EntityNotFoundException- when task is not found.
-
getTask
Description copied from interface:TaskServiceReturn the task with giventaskId.- Specified by:
getTaskin interfaceTaskService- Parameters:
id- the task Id- Returns:
- the given task.
- Throws:
EntityNotFoundException- when task is not found.
-
getMentionedUsers
- Specified by:
getMentionedUsersin interfaceTaskService
-
addTaskLog
public ChangeLogEntry addTaskLog(long id, String username, String actionName, String target) throws EntityNotFoundException Description copied from interface:TaskServiceCreate a log associated with a task with giventaskId.- Specified by:
addTaskLogin interfaceTaskService- Parameters:
id- 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
- Specified by:
getTaskLogsin interfaceTaskService- Throws:
Exception
-
findTasks
Description copied from interface:TaskServiceFind tasks assigned to a user using a term to find in title or description of the task- Specified by:
findTasksin interfaceTaskService- Parameters:
query- term to search in title or descriptionoffset- term to offset results.limit- term to limit results.- Returns:
ListofTaskDto- Throws:
Exception- when therer is an exception on get tasks.
-
countTasks
- Specified by:
countTasksin interfaceTaskService- Throws:
Exception
-
selectTaskField
- Specified by:
selectTaskFieldin interfaceTaskService
-
findTasksByLabel
public List<TaskDto> findTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy, int offset, int limit) throws Exception - Specified by:
findTasksByLabelin interfaceTaskService- Throws:
Exception
-
countTasksByLabel
public int countTasksByLabel(LabelDto label, List<Long> projectIds, String username, OrderBy orderBy) throws Exception - Specified by:
countTasksByLabelin interfaceTaskService- Throws:
Exception
-
findTaskByActivityId
- Specified by:
findTaskByActivityIdin interfaceTaskService
-
getCoworker
- Specified by:
getCoworkerin interfaceTaskService
-
getUncompletedTasks
- Specified by:
getUncompletedTasksin interfaceTaskService
-
countUncompletedTasks
- Specified by:
countUncompletedTasksin interfaceTaskService
-
getWatchedTasks
- Specified by:
getWatchedTasksin interfaceTaskService
-
countWatchedTasks
- Specified by:
countWatchedTasksin interfaceTaskService
-
getAssignedTasks
- Specified by:
getAssignedTasksin interfaceTaskService
-
countAssignedTasks
- Specified by:
countAssignedTasksin interfaceTaskService
-
getCollaboratedTasks
- Specified by:
getCollaboratedTasksin interfaceTaskService
-
countCollaboratedTasks
- Specified by:
countCollaboratedTasksin interfaceTaskService
-
findTasksByMemberShips
public List<TaskDto> findTasksByMemberShips(String user, List<String> memberships, String query, int limit) - Specified by:
findTasksByMemberShipsin interfaceTaskService
-
findTasks
- Specified by:
findTasksin interfaceTaskService
-
countTasks
Description copied from interface:TaskServiceCount tasks assigned to a user using a search term to find in title or description of the task- Specified by:
countTasksin interfaceTaskService- Parameters:
user- usernamequery- term to search in title or description- Returns:
- tasks count
-
getIncomingTasks
- Specified by:
getIncomingTasksin interfaceTaskService- Throws:
Exception
-
countIncomingTasks
- Specified by:
countIncomingTasksin interfaceTaskService- Throws:
Exception
-
getOverdueTasks
- Specified by:
getOverdueTasksin interfaceTaskService
-
countOverdueTasks
- Specified by:
countOverdueTasksin interfaceTaskService
-
addWatcherToTask
- Specified by:
addWatcherToTaskin interfaceTaskService- Throws:
Exception
-
deleteWatcherOfTask
- Specified by:
deleteWatcherOfTaskin interfaceTaskService- Throws:
Exception
-
getWatchersOfTask
- Specified by:
getWatchersOfTaskin interfaceTaskService
-
countTaskStatusByProject
- Specified by:
countTaskStatusByProjectin interfaceTaskService
-
filterTasks
public TasksList filterTasks(String query, long projectId, String keyword, List<Long> labels, TaskUtil.DUE dueDate, Priority priority, List<String> assignees, List<String> coworker, 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 - Specified by:
filterTasksin interfaceTaskService- Throws:
Exception
-
isExternal
- Specified by:
isExternalin interfaceTaskService
-