public interface ChainSearchSession extends ChainQuerySession
This session provides methods for searching among Chain
objects. The search query is constructed using the ChainQuery.
getChainsByQuery()
is the basic search method and
returns a list of Chains.
A more advanced search may be
performed with getChainsBySearch().
It accepts an
ChainSearch
in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getChainsBySearch()
returns an ChainSearchResults
that can be used to access the resulting ChainList
or be
used to perform a search within the result set through ChainSearch.
This session defines views that offer differing behaviors for searching.
Chains may have a query record indicated by their respective record
types. The query record is accessed via the ChainQuery.
Modifier and Type | Method and Description |
---|---|
ChainQuery |
getChainQueryFromInspector(ChainQueryInspector chainQueryInspector)
Gets a chain query from an inspector.
|
ChainSearchResults |
getChainsBySearch(ChainQuery chainQuery,
ChainSearch chainSearch)
Gets the search results matching the given search query using the
given search.
|
ChainSearch |
getChainSearch()
Gets a chain search.
|
ChainSearchOrder |
getChainSearchOrder()
Gets a chain search order.
|
canSearchChains, getAntimatroid, getAntimatroidId, getChainQuery, getChainsByQuery, useFederatedAntimatroidView, useIsolatedAntimatroidView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
ChainSearch getChainSearch()
mandatory
- This method must be implemented. ChainSearchOrder getChainSearchOrder()
ChainSearchOrder
is
supplied to a ChainSearch
to specify the ordering of
results.mandatory
- This method must be implemented. ChainSearchResults getChainsBySearch(ChainQuery chainQuery, ChainSearch chainSearch) throws OperationFailedException, PermissionDeniedException
chainQuery
- the chain querychainSearch
- the chain searchNullArgumentException
- chainQuery
or
chainSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- chainQuery
or
chainSearch
is not of this servicemandatory
- This method must be implemented. ChainQuery getChainQueryFromInspector(ChainQueryInspector chainQueryInspector)
ChainSearchResults.
chainQueryInspector
- a chain query inspectorNullArgumentException
- chainQueryInspector
is null
UnsupportedException
- chainQueryInspector
is not of this servicemandatory
- This method must be implemented.