public interface TodoSearchSession extends TodoQuerySession
This session provides methods for searching Todo
objects. The search query is constructed using the TodoQuery.
The todo record Type
also specifies the record for
the todo query.
getTodosByQuery()
is the basic search method and
returns a list of Todo
elements. A more advanced search may
be performed with getTodosBySearch().
It accepts a
TodoSearch
in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getTodosBySearch()
returns a TodoSearchResults
that
can be used to access the resulting TodoList
or be used to
perform a search within the result set through TodoSearch.
Todos may have a query record indicated by their respective record
types. The query record is accessed via the TodoQuery.
The
returns in this session may not be cast directly to these interfaces.
Modifier and Type | Method and Description |
---|---|
TodoQuery |
getTodoQueryFromInspector(TodoQueryInspector todoQueryInspector)
Gets an entry query from an inspector.
|
TodoSearchResults |
getTodosBySearch(TodoQuery todoQuery,
TodoSearch todoSearch)
Gets the search results matching the given search.
|
TodoSearch |
getTodoSearch()
Gets a todo search.
|
TodoSearchOrder |
getTodoSearchOrder()
Gets a todo search order.
|
canSearchTodos, getChecklist, getChecklistId, getTodoQuery, getTodosByQuery, useFederatedChecklistView, useIsolatedChecklistView, useSequesteredTodoView, useUnsequesteredTodoView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
TodoSearch getTodoSearch()
mandatory
- This method must be implemented. TodoSearchOrder getTodoSearchOrder()
TodoSearchOrder
is
supplied to a TodoSearch
to specify the ordering of
results.mandatory
- This method must be implemented. TodoSearchResults getTodosBySearch(TodoQuery todoQuery, TodoSearch todoSearch) throws OperationFailedException, PermissionDeniedException
todoQuery
- the todo querytodoSearch
- the todo searchNullArgumentException
- todoQuery
or
todoSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- todoQuery
or
todoSearch
is not of this servicemandatory
- This method must be implemented. TodoQuery getTodoQueryFromInspector(TodoQueryInspector todoQueryInspector)
TodoSearchResults.
todoQueryInspector
- a todo query inspectorNullArgumentException
- todoQueryInspector
is null
UnsupportedException
- todoQueryInspector
is not of this servicemandatory
- This method must be implemented.