public interface ResultSearchSession extends ResultQuerySession
This session provides methods for searching Result
objects. The search query is constructed using the ResultQuery.
The result record Type
also specifies the record
for the result query.
getResultsByQuery()
is the basic search method and
returns a list of Result
elements. A more advanced search
may be performed with getResultsBySearch().
It accepts an
ResultSearch
in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getResultsBySearch()
returns an
ResultSearchResults
that can be used to access the resulting
ResultList
or be used to perform a search within the result
set through ResultSearch.
This session defines views that offer differing behaviors for searching.
Results may have a query record indicated by their respective record
types. The query record is accessed via the ResultQuery.
The returns in this session may not be cast directly to these interfaces.
Modifier and Type | Method and Description |
---|---|
ResultQuery |
getResultQueryFromInspector(ResultQueryInspector resultQueryInspector)
Gets an result query from an inspector.
|
ResultSearchResults |
getResultsBySearch(ResultQuery resultQuery,
ResultSearch resultSearch)
Gets the search results matching the given search.
|
ResultSearch |
getResultSearch()
Gets an result search.
|
ResultSearchOrder |
getResultSearchOrder()
Gets an result search order.
|
canSearchResults, getCatalogue, getCatalogueId, getResultQuery, getResultsByQuery, useFederatedCatalogueView, useIsolatedCatalogueView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
ResultSearch getResultSearch()
mandatory
- This method must be implemented. ResultSearchOrder getResultSearchOrder()
ResultSearchOrder
is
supplied to an ResultSearch
to specify the ordering of
results.mandatory
- This method must be implemented. ResultSearchResults getResultsBySearch(ResultQuery resultQuery, ResultSearch resultSearch) throws OperationFailedException, PermissionDeniedException
resultQuery
- the result queryresultSearch
- the result searchNullArgumentException
- resultQuery
or
resultSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- resultQuery
or
resultSearch
is not of this servicemandatory
- This method must be implemented. ResultQuery getResultQueryFromInspector(ResultQueryInspector resultQueryInspector)
ResultSearchResults.
resultQueryInspector
- an result query inspectorNullArgumentException
- resultQueryInspector
is null
UnsupportedException
- resultQueryInspector
is not of this servicemandatory
- This method must be implemented.