Class TaskQuery
java.lang.Object
org.exoplatform.task.dao.Query
org.exoplatform.task.dao.TaskQuery
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe change log actions of an assignee change.The change log actionssetChangedSince(Date)looks for: a status, due date, assignee or completion change; an assignee change only on a task created before the date.static final StringThe change log action of a completion change, logged when a task is completed and when it is reopened.static final StringThe change log action of a due date change.The change log actions of a status change: a move to another column, to another project, or out of any project. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static TaskQueryvoidsetAccessible(org.exoplatform.services.security.Identity user) voidsetAssignee(List<String> assignee) voidsetAssigneeIsTodoOf(String username) voidsetAssigneeOrCoworker(List<String> assignee) voidsetAssigneeOrCoworkerOrInProject(String username, List<Long> projectIds) voidsetAssigneeOrMembership(String username, List<String> memberships) Deprecated.voidsetChangedSince(Date since) Selects the tasks whose status, due date, assignee or completion changed at or after the given date, as their change log records it (EXO-91902).voidsetCompleted(Boolean completed) voidsetCompletedSince(Date since) Selects the completed tasks that were completed at or after the given date, as their change log records it (EXO-91902).voidsetCoworker(List<String> coworker) voidsetCreatedBy(String creator) voidsetDescription(String description) voidsetDueDateFrom(Date dueDateFrom) voidsetDueDateTo(Date dueDateTo) voidsetEmptyField(String emptyField) voidsetEndDate(Date endDate) voidsetIsIncomingOf(String username) voidsetIsLabelOf(String username) voidsetIsTodoOf(String username) voidsetKeyword(String keyword) voidsetLabelIds(List<Long> labelIds) voidsetMemberships(List<String> permissions) voidsetNullField(String nullField) voidsetOverdueAt(Date startOfToday) Selects the overdue tasks: open, with a due date strictly before the given instant, the start of the user's day (EXO-91122).voidsetPriority(Priority priority) voidsetProjectIds(List<Long> projectIds) voidsetStartDate(Date startDate) voidvoidvoidsetStatusId(Long statusId) Selects the tasks in the given status, a column of a project (EXO-91902).voidsetStatusName(String statusName) voidvoidsetTitleContaining(String title) Narrows the query to the tasks whose title contains the text, ignoring case.voidsetWatchers(List<String> watchers) Methods inherited from class Query
add, add, getCondition, getOrderBy, setId, setOrderBy
-
Field Details
-
STATUS_CHANGE_ACTIONS
-
DUE_DATE_CHANGE_ACTION
The change log action of a due date change.- See Also:
-
ASSIGNEE_CHANGE_ACTIONS
-
COMPLETION_ACTION
The change log action of a completion change, logged when a task is completed and when it is reopened.- See Also:
-
CHANGE_ACTIONS
The change log actionssetChangedSince(Date)looks for: a status, due date, assignee or completion change; an assignee change only on a task created before the date.
-
-
Constructor Details
-
TaskQuery
public TaskQuery()
-
-
Method Details
-
or
-
add
-
setTitle
-
setTitleContaining
Narrows the query to the tasks whose title contains the text, ignoring case. UnlikesetTitle(String), the text is matched literally: a%or a_in it matches only itself.- Parameters:
title- the text the title contains
-
setDescription
-
getProjectIds
-
setProjectIds
-
getAssignee
-
setAssignee
-
getWatchers
-
setWatchers
-
setCoworker
-
setAssigneeOrCoworker
-
setKeyword
-
setCompleted
-
setStartDate
-
setEndDate
-
setCreatedBy
-
setMemberships
-
setAssigneeOrMembership
Deprecated. -
setAccessible
public void setAccessible(org.exoplatform.services.security.Identity user) -
setAssigneeOrCoworkerOrInProject
-
setStatusName
-
setStatus
-
setStatus
-
setDueDateFrom
-
setDueDateTo
-
setOverdueAt
Selects the overdue tasks: open, with a due date strictly before the given instant, the start of the user's day (EXO-91122). A task due at that instant, today, is not overdue; a task with no due date never is.- Parameters:
startOfToday- the start of today in the user's time zone
-
setChangedSince
Selects the tasks whose status, due date, assignee or completion changed at or after the given date, as their change log records it (EXO-91902). An assignee change counts only on a task created before the date: a task created with an assignee logs that assignment at its creation, which is no change.- Parameters:
since- the earliest date of the change, included; null for no condition
-
setCompletedSince
Selects the completed tasks that were completed at or after the given date, as their change log records it (EXO-91902).- Parameters:
since- the earliest date of the completion, included; null for no condition
-
setStatusId
Selects the tasks in the given status, a column of a project (EXO-91902).- Parameters:
statusId- the status identifier; null for no condition
-
setIsIncomingOf
-
setIsTodoOf
-
setAssigneeIsTodoOf
-
setLabelIds
-
setIsLabelOf
-
setPriority
-
setNullField
-
setEmptyField
-
clone
-