public interface TodoQuery extends OsidObjectQuery, OsidContainableQuery, OsidTemporalQuery, OsidFederateableQuery
This is the query for searching todos. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAncestorTodoIdTerms()
Clears the ancestor todo
Id query terms. |
void |
clearAncestorTodoTerms()
Clears the ancestor todo query terms.
|
void |
clearChecklistIdTerms()
Clears the checklist
Id terms. |
void |
clearChecklistTerms()
Clears the checklist terms.
|
void |
clearCompleteTerms()
Clears the complete terms.
|
void |
clearDependencyIdTerms()
Clears the todo
Id terms. |
void |
clearDependencyTerms()
Clears the dependency terms.
|
void |
clearDescendantTodoIdTerms()
Clears the descendant todo
Id query terms. |
void |
clearDescendantTodoTerms()
Clears the descendant todo query terms.
|
void |
clearDueDateTerms()
Clears the due date terms.
|
void |
clearMinimumPriorityTerms()
Clears the minimum priority terms.
|
void |
clearPriorityTerms()
Clears the priority terms.
|
TodoQuery |
getAncestorTodoQuery()
Gets the query for a todo.
|
ChecklistQuery |
getChecklistQuery()
Gets the query for a checklist query.
|
TodoQuery |
getDependencyQuery()
Gets the query for a todo query.
|
TodoQuery |
getDescendantTodoQuery()
Gets the query for a todo.
|
TodoQueryRecord |
getTodoQueryRecord(Type todoRecordType)
Gets the todo query record corresponding to the given
Todo
record Type. |
void |
matchAncestorTodoId(Id todoId,
boolean match)
Sets the todo
Id for this query to match todos that
have the specified todo as an ancestor. |
void |
matchAnyAncestorTodo(boolean match)
Matches todos that have any ancestor.
|
void |
matchAnyDependency(boolean match)
Matches tdos with any dependencies.
|
void |
matchAnyDescendantTodo(boolean match)
Matches todos that have any descendant.
|
void |
matchAnyDueDate(boolean match)
Matches todos with any due date.
|
void |
matchAnyPriority(boolean match)
Matches todos with any priority set.
|
void |
matchChecklistId(Id checklistId,
boolean match)
Sets the checklist
Id for this query to match todos
assigned to checklists. |
void |
matchComplete(boolean match)
Matches completed todos.
|
void |
matchDependencyId(Id todoId,
boolean match)
Matches a depednency todo.
|
void |
matchDescendantTodoId(Id todoId,
boolean match)
Sets the todo
Id for this query to match todos that
have the specified todo as a descendant. |
void |
matchDueDate(DateTime from,
DateTime to,
boolean match)
Matches todos with dues dates within the given date range inclusive.
|
void |
matchMinimumPriority(Type priorityType,
boolean match)
Matches todos of the given priority or greater.
|
void |
matchPriority(Type priorityType,
boolean match)
Matches todos of the given priority.
|
boolean |
supportsAncestorTodoQuery()
Tests if a
TodoQuery is available. |
boolean |
supportsChecklistQuery()
Tests if a
ChecklistQuery is available. |
boolean |
supportsDependencyQuery()
Tests if a
TodoQuery is available. |
boolean |
supportsDescendantTodoQuery()
Tests if a
TodoQuery is available. |
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearSequesteredTerms, matchSequesteredclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchComplete(boolean match)
match - true for to match completed todos,
false to match incomplete todosmandatory - This method must be implemented. void clearCompleteTerms()
mandatory - This method must be implemented. void matchPriority(Type priorityType, boolean match)
priorityType - a priority typematch - true for a positive match, false
for a negative matchNullArgumentException - priorityType is
null mandatory - This method must be implemented. void matchAnyPriority(boolean match)
match - true for to match todos with any
priority, false to match todos with no prioritymandatory - This method must be implemented. void clearPriorityTerms()
mandatory - This method must be implemented. void matchMinimumPriority(Type priorityType, boolean match)
priorityType - a priority typematch - true for a positive match, false
for a negative matchNullArgumentException - priorityType is
null mandatory - This method must be implemented. void clearMinimumPriorityTerms()
mandatory - This method must be implemented. void matchDueDate(DateTime from, DateTime to, boolean match)
from - starting dateto - ending datematch - true for a positive match, false
for a negative matchInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null mandatory - This method must be implemented. void matchAnyDueDate(boolean match)
match - true for to match todos with any due
date, false to match todos with no due datemandatory - This method must be implemented. void clearDueDateTerms()
mandatory - This method must be implemented. void matchDependencyId(Id todoId, boolean match)
todoId - a todo Id match - true for a positive match, false
for a negative matchNullArgumentException - todoId is
null mandatory - This method must be implemented. void clearDependencyIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsDependencyQuery()
TodoQuery is available. true if a todo query is available, false
otherwisemandatory - This method must be implemented. TodoQuery getDependencyQuery()
OR term.UnimplementedException -
supportsDependencyQuery() is false optional - This method must be implemented if
supportsDependencyQuery() is true. void matchAnyDependency(boolean match)
match - true for to matchc todos with any
dependency, false to matchtodos with no
dependenciesmandatory - This method must be implemented. void clearDependencyTerms()
mandatory - This method must be implemented. void matchAncestorTodoId(Id todoId, boolean match)
Id for this query to match todos that
have the specified todo as an ancestor.todoId - a todo Id match - true for a positive match, false
for a negative matchNullArgumentException - todoId is
null mandatory - This method must be implemented. void clearAncestorTodoIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsAncestorTodoQuery()
TodoQuery is available. true if a todo query is available, false
otherwisemandatory - This method must be implemented. TodoQuery getAncestorTodoQuery()
OR term.UnimplementedException -
supportsAncestorTodoQuery() is false optional - This method must be implemented if
supportsAncestorTodoQuery() is true.
void matchAnyAncestorTodo(boolean match)
match - true to match todos with any ancestor,
false to match root todosmandatory - This method must be implemented. void clearAncestorTodoTerms()
mandatory - This method must be implemented. void matchDescendantTodoId(Id todoId, boolean match)
Id for this query to match todos that
have the specified todo as a descendant.todoId - a todo Id match - true for a positive match, false
for a negative matchNullArgumentException - todoId is
null mandatory - This method must be implemented. void clearDescendantTodoIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsDescendantTodoQuery()
TodoQuery is available. true if a todo query is available, false
otherwisemandatory - This method must be implemented. TodoQuery getDescendantTodoQuery()
OR term.UnimplementedException -
supportsDescendantTodoQuery() is false optional - This method must be implemented if
supportsDescendantTodoQuery() is true.
void matchAnyDescendantTodo(boolean match)
match - true to match todos with any descendant,
false to match leaf todosmandatory - This method must be implemented. void clearDescendantTodoTerms()
mandatory - This method must be implemented. void matchChecklistId(Id checklistId, boolean match)
Id for this query to match todos
assigned to checklists.checklistId - a checklist Id match - true for a positive match, false
for a negative matchNullArgumentException - checklistId is
null mandatory - This method must be implemented. void clearChecklistIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsChecklistQuery()
ChecklistQuery is available. true if a checklist query is available,
false otherwisemandatory - This method must be implemented. ChecklistQuery getChecklistQuery()
OR term.UnimplementedException -
supportsChecklistQuery() is false optional - This method must be implemented if
supportsChecklistQuery() is true. void clearChecklistTerms()
mandatory - This method must be implemented. TodoQueryRecord getTodoQueryRecord(Type todoRecordType) throws OperationFailedException
Todo
record Type. Multiple record retrievals produce
a nested OR term.todoRecordType - a todo record typeNullArgumentException - todoRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(todoRecordType) is false mandatory - This method must be implemented.