OSID Logo
OSID Specifications
sequencing package
Version 3.1.0
Interfaceosid.sequencing.ChainSearchSession
Implementsosid.sequencing.ChainQuerySession
Used Byosid.sequencing.SequencingManager
osid.sequencing.SequencingProxyManager
Description

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.

  • federated antimatroid view: searches include chains in antimatroids of which this antimatroid is an ancestor in the antimatroid hierarchy
  • isolated antimatroid view: searches are restricted to chains in this antimatroid

Chains may have a query record indicated by their respective record types. The query record is accessed via the ChainQuery.

MethodgetChainSearch
Description

Gets a chain search.

Returnosid.sequencing.ChainSearch the chain search
Compliancemandatory This method must be implemented.
MethodgetChainSearchOrder
Description

Gets a chain search order. The ChainSearchOrder is supplied to a ChainSearch to specify the ordering of results.

Returnosid.sequencing.ChainSearchOrder the chain search order
Compliancemandatory This method must be implemented.
MethodgetChainsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.sequencing.ChainQuerychainQuery the chain query
osid.sequencing.ChainSearchchainSearch the chain search
Returnosid.sequencing.ChainSearchResults the returned search results
ErrorsNULL_ARGUMENT chainQuery or chainSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED chainQuery or chainSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetChainQueryFromInspector
Description

Gets a chain query from an inspector. The inspector is available from a ChainSearchResults.

Parametersosid.sequencing.ChainQueryInspectorchainQueryInspector a chain query inspector
Returnosid.sequencing.ChainQuery the chain query
ErrorsNULL_ARGUMENT chainQueryInspector is null
UNSUPPORTED chainQueryInspector is not of this service
Compliancemandatory This method must be implemented.