OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.InputSearchSession
Implementsosid.control.InputQuerySession
Used Byosid.control.ControlManager
osid.control.ControlProxyManager
Description

This session provides methods for searching among Inputs. The search query is constructed using the InputQuery.

getInputsByQuery() is the basic search method and returns a list of Inputs. A more advanced search may be performed with getInputsBySearch(). It accepts a InputSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getInputsBySearch() returns a InputSearchResults that can be used to access the resulting InputList or be used to perform a search within the result set through InputSearch.

This session defines views that offer differing behaviors for searching.

  • federated trigger view: searches include inputs in triggers of which this trigger is an ancestor in the trigger hierarchy
  • isolated trigger view: searches are restricted to inputs in this trigger

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

MethodgetInputSearch
Description

Gets an input search.

Returnosid.control.InputSearch the input search
Compliancemandatory This method must be implemented.
MethodgetInputSearchOrder
Description

Gets an input search order. The InputSearchOrder is supplied to a InputSearch to specify the ordering of results.

Returnosid.control.InputSearchOrder the input search order
Compliancemandatory This method must be implemented.
MethodgetInputsBySearch
Description

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

Parametersosid.control.InputQueryinputQuery the input query
osid.control.InputSearchinputSearch the input search
Returnosid.control.InputSearchResults the input search results
ErrorsNULL_ARGUMENT inputQuery or inputSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED inputQuery or inputSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetInputQueryFromInspector
Description

Gets an input query from an inspector. The inspector is available from a InputSearchResults.

Parametersosid.control.InputQueryInspectorinputQueryInspector an input query inspector
Returnosid.control.InputQuery the input query
ErrorsNULL_ARGUMENT inputQueryInspector is null
UNSUPPORTED inputQueryInspector is not of this service
Compliancemandatory This method must be implemented.