Package org.exoplatform.task.dao.jpa
Class TaskDAOImpl
java.lang.Object
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<Task,,Long> TaskHandler
Created by The eXo Platform SAS
Author : Thibault Clement
tclement@exoplatform.com
4/8/15
-
Field Summary
Fields inherited from class org.exoplatform.task.dao.jpa.CommonJPADAO
clzFields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWatcherToTask(String username, Task task) protected jakarta.persistence.criteria.PathbuildPath(SingleCondition condition, jakarta.persistence.criteria.Root<Task> root) countAssignedTasks(String user) countCollaboratedTasks(String user) countOverdueTasks(String user) longcountTasks(String user) Count tasks assigned to a user using a search term to find in title or description of the taskcountTaskStatusByProject(long projectId) countUncompletedTasks(String user) countWatchedTasks(String user) voiddeleteWatcherOfTask(String username, Task task) findAllByMembership(String user, List<String> memberships) findByUser(String user) findTaskByActivityId(String activityId) Find tasks assigned to a user using a term to find in title or description of the taskorg.exoplatform.commons.utils.ListAccess<Task> org.exoplatform.commons.utils.ListAccess<Task> findTasksByLabel(long labelId, List<Long> projectIds, String username, OrderBy orderBy) getAllIds(int offset, int limit) Retrieves a paginated list of all task IDs.getAssignedTasks(String user, int limit) getByStatus(long statusid) getCollaboratedTasks(String user, int limit) getCoworker(long taskid) org.exoplatform.commons.utils.ListAccess<Task> getIncomingTasks(String user) getOverdueTasks(String user, int limit) getTaskWithCoworkers(long id) getUncompletedTasks(String user, int limit) getWatchedTasks(String user, int limit) getWatchersOfTask(Task task) <T> List<T> selectTaskField(TaskQuery query, String fieldName) voidupdateStatus(Status stOld, Status stNew) voidupdateTaskOrder(long currentTaskId, Status newStatus, long[] orders) Methods inherited from class org.exoplatform.task.dao.jpa.CommonJPADAO
buildCountQuery, buildQuery, buildSingleCondition, cloneEntities, cloneEntity, create, find, findEntities, getCacheMethods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, createAll, delete, deleteAll, deleteAll, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
TaskDAOImpl
public TaskDAOImpl()
-
-
Method Details
-
updateStatus
- Specified by:
updateStatusin interfaceTaskHandler
-
findByUser
- Specified by:
findByUserin interfaceTaskHandler
-
findAllByMembership
- Specified by:
findAllByMembershipin interfaceTaskHandler
-
findTasks
- Specified by:
findTasksin interfaceTaskHandler
-
selectTaskField
- Specified by:
selectTaskFieldin interfaceTaskHandler
-
findTaskByActivityId
- Specified by:
findTaskByActivityIdin interfaceTaskHandler
-
updateTaskOrder
- Specified by:
updateTaskOrderin interfaceTaskHandler
-
findTasksByLabel
public org.exoplatform.commons.utils.ListAccess<Task> findTasksByLabel(long labelId, List<Long> projectIds, String username, OrderBy orderBy) - Specified by:
findTasksByLabelin interfaceTaskHandler
-
getCoworker
- Specified by:
getCoworkerin interfaceTaskHandler
-
getTaskWithCoworkers
- Specified by:
getTaskWithCoworkersin interfaceTaskHandler
-
buildPath
protected jakarta.persistence.criteria.Path buildPath(SingleCondition condition, jakarta.persistence.criteria.Root<Task> root) - Overrides:
buildPathin classCommonJPADAO<Task,Long>
-
getUncompletedTasks
- Specified by:
getUncompletedTasksin interfaceTaskHandler
-
countUncompletedTasks
- Specified by:
countUncompletedTasksin interfaceTaskHandler
-
getWatchedTasks
- Specified by:
getWatchedTasksin interfaceTaskHandler
-
countWatchedTasks
- Specified by:
countWatchedTasksin interfaceTaskHandler
-
getCollaboratedTasks
- Specified by:
getCollaboratedTasksin interfaceTaskHandler
-
countCollaboratedTasks
- Specified by:
countCollaboratedTasksin interfaceTaskHandler
-
getAssignedTasks
- Specified by:
getAssignedTasksin interfaceTaskHandler
-
countAssignedTasks
- Specified by:
countAssignedTasksin interfaceTaskHandler
-
getByStatus
- Specified by:
getByStatusin interfaceTaskHandler
-
getIncomingTasks
- Specified by:
getIncomingTasksin interfaceTaskHandler
-
getOverdueTasks
- Specified by:
getOverdueTasksin interfaceTaskHandler
-
countOverdueTasks
- Specified by:
countOverdueTasksin interfaceTaskHandler
-
addWatcherToTask
- Specified by:
addWatcherToTaskin interfaceTaskHandler- Throws:
Exception
-
deleteWatcherOfTask
- Specified by:
deleteWatcherOfTaskin interfaceTaskHandler- Throws:
Exception
-
getWatchersOfTask
- Specified by:
getWatchersOfTaskin interfaceTaskHandler
-
findTasks
Description copied from interface:TaskHandlerFind tasks assigned to a user using a term to find in title or description of the task- Specified by:
findTasksin interfaceTaskHandler- Parameters:
user- usernamememberships- membershipslimit- term to limit results.- Returns:
ListofTask
-
countTasks
Description copied from interface:TaskHandlerCount tasks assigned to a user using a search term to find in title or description of the task- Specified by:
countTasksin interfaceTaskHandler- Parameters:
user- username- Returns:
- tasks count
-
countTaskStatusByProject
- Specified by:
countTaskStatusByProjectin interfaceTaskHandler
-
getAllIds
Description copied from interface:TaskHandlerRetrieves a paginated list of all task IDs.- Specified by:
getAllIdsin interfaceTaskHandler- Parameters:
offset- the starting position of the first resultlimit- the maximum number of results to retrieve- Returns:
- a list of task IDs
-