Package org.exoplatform.task.storage
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) 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) 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) getAssignedTasks(String user, int limit) getCollaboratedTasks(String user, int limit) getCoworker(long taskid) getIncomingTasks(String user, int offset, int limit) getOverdueTasks(String user, int limit) getTaskById(long id) Find task by its idgetTaskLogs(long taskId, int offset, int limit) 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
Find task by its id- Parameters:
id- the given id.- Returns:
TaskDto
-
createTask
Create a new task.- Parameters:
task- the given task- Returns:
TaskDto
-
update
Update the provided task.- Parameters:
task- the given task.- Returns:
TaskDto
-
delete
Delete the provided task.- Parameters:
task- the provided task.
-
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
-
findByUser
-
findTasks
- Throws:
Exception
-
countTasks
- Throws:
Exception
-
selectTaskField
-
findTaskByActivityId
-
updateStatus
-
updateTaskOrder
-
getCoworker
-
getTaskWithCoworkers
-
getUncompletedTasks
-
getAssignedTasks
-
countAssignedTasks
-
getWatchedTasks
-
countUncompletedTasks
-
countWatchedTasks
-
getCollaboratedTasks
-
countCollaboratedTasks
-
getIncomingTasks
- Throws:
Exception
-
countIncomingTasks
- Throws:
Exception
-
getOverdueTasks
-
countOverdueTasks
-
addWatcherToTask
- Throws:
Exception
-
deleteWatcherOfTask
- Throws:
Exception
-
getWatchersOfTask
-
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
-
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
-
countTaskStatusByProject
-