OSID Logo
OSID Specifications
checklist package
Version 3.1.0
Interfaceosid.checklist.TodoQuery
Implementsosid.OsidObjectQuery
osid.OsidContainableQuery
osid.OsidTemporalQuery
osid.OsidFederateableQuery
Used Byosid.checklist.ChecklistQuery
osid.checklist.TodoQuery
osid.checklist.TodoQuerySession
osid.checklist.TodoSearchSession
osid.checklist.TodoSmartChecklistSession
osid.checklist.mason.TodoProducerQuery
Description

This is the query for searching todos. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchComplete
Description

Matches completed todos.

Parametersbooleanmatch true for to match completed todos, false to match incomplete todos
Compliancemandatory This method must be implemented.
MethodclearCompleteTerms
Description

Clears the complete terms.

Compliancemandatory This method must be implemented.
MethodmatchPriority
Description

Matches todos of the given priority.

Parametersosid.type.TypepriorityType a priority type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT priorityType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyPriority
Description

Matches todos with any priority set.

Parametersbooleanmatch true for to match todos with any priority, false to match todos with no priority
Compliancemandatory This method must be implemented.
MethodclearPriorityTerms
Description

Clears the priority terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumPriority
Description

Matches todos of the given priority or greater.

Parametersosid.type.TypepriorityType a priority type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT priorityType is null
Compliancemandatory This method must be implemented.
MethodclearMinimumPriorityTerms
Description

Clears the minimum priority terms.

Compliancemandatory This method must be implemented.
MethodmatchDueDate
Description

Matches todos with dues dates within the given date range inclusive.

Parametersosid.calendaring.DateTimefrom starting date
osid.calendaring.DateTimeto ending date
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
Compliancemandatory This method must be implemented.
MethodmatchAnyDueDate
Description

Matches todos with any due date.

Parametersbooleanmatch true for to match todos with any due date, false to match todos with no due date
Compliancemandatory This method must be implemented.
MethodclearDueDateTerms
Description

Clears the due date terms.

Compliancemandatory This method must be implemented.
MethodmatchDependencyId
Description

Matches a depednency todo.

Parametersosid.id.IdtodoId a todo Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT todoId is null
Compliancemandatory This method must be implemented.
MethodclearDependencyIdTerms
Description

Clears the todo Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDependencyQuery
Description

Tests if a TodoQuery is available.

Returnboolean true if a todo query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDependencyQuery
Description

Gets the query for a todo query. Multiple retrievals produce a nested OR term.

Returnosid.checklist.TodoQuery the checklist query
ErrorsUNIMPLEMENTED supportsDependencyQuery() is false
Complianceoptional This method must be implemented if supportsDependencyQuery() is true.
MethodmatchAnyDependency
Description

Matches tdos with any dependencies.

Parametersbooleanmatch true for to matchc todos with any dependency, false to matchtodos with no dependencies
Compliancemandatory This method must be implemented.
MethodclearDependencyTerms
Description

Clears the dependency terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorTodoId
Description

Sets the todo Id for this query to match todos that have the specified todo as an ancestor.

Parametersosid.id.IdtodoId a todo Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT todoId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorTodoIdTerms
Description

Clears the ancestor todo Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorTodoQuery
Description

Tests if a TodoQuery is available.

Returnboolean true if a todo query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorTodoQuery
Description

Gets the query for a todo. Multiple retrievals produce a nested OR term.

Returnosid.checklist.TodoQuery the todo query
ErrorsUNIMPLEMENTED supportsAncestorTodoQuery() is false
Complianceoptional This method must be implemented if supportsAncestorTodoQuery() is true.
MethodmatchAnyAncestorTodo
Description

Matches todos that have any ancestor.

Parametersbooleanmatch true to match todos with any ancestor, false to match root todos
Compliancemandatory This method must be implemented.
MethodclearAncestorTodoTerms
Description

Clears the ancestor todo query terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantTodoId
Description

Sets the todo Id for this query to match todos that have the specified todo as a descendant.

Parametersosid.id.IdtodoId a todo Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT todoId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantTodoIdTerms
Description

Clears the descendant todo Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantTodoQuery
Description

Tests if a TodoQuery is available.

Returnboolean true if a todo query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantTodoQuery
Description

Gets the query for a todo. Multiple retrievals produce a nested OR term.

Returnosid.checklist.TodoQuery the todo query
ErrorsUNIMPLEMENTED supportsDescendantTodoQuery() is false
Complianceoptional This method must be implemented if supportsDescendantTodoQuery() is true.
MethodmatchAnyDescendantTodo
Description

Matches todos that have any descendant.

Parametersbooleanmatch true to match todos with any descendant, false to match leaf todos
Compliancemandatory This method must be implemented.
MethodclearDescendantTodoTerms
Description

Clears the descendant todo query terms.

Compliancemandatory This method must be implemented.
MethodmatchChecklistId
Description

Sets the checklist Id for this query to match todos assigned to checklists.

Parametersosid.id.IdchecklistId a checklist Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT checklistId is null
Compliancemandatory This method must be implemented.
MethodclearChecklistIdTerms
Description

Clears the checklist Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsChecklistQuery
Description

Tests if a ChecklistQuery is available.

Returnboolean true if a checklist query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetChecklistQuery
Description

Gets the query for a checklist query. Multiple retrievals produce a nested OR term.

Returnosid.checklist.ChecklistQuery the checklist query
ErrorsUNIMPLEMENTED supportsChecklistQuery() is false
Complianceoptional This method must be implemented if supportsChecklistQuery() is true.
MethodclearChecklistTerms
Description

Clears the checklist terms.

Compliancemandatory This method must be implemented.
MethodgetTodoQueryRecord
Description

Gets the todo query record corresponding to the given Todo record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypetodoRecordType a todo record type
Returnosid.checklist.records.TodoQueryRecord the todo query record
ErrorsNULL_ARGUMENT todoRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(todoRecordType) is false
Compliancemandatory This method must be implemented.