OSID Logo
OSID Specifications
control package
Version 3.0.0
Release Candidate Preview
Interfaceosid.control.InputSearchSession
Implementsosid.control.InputQuerySession
Description

This session provides methods for searching among Input objects. 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.InputSearchthe input search
CompliancemandatoryThis 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.InputSearchOrderthe input search order
CompliancemandatoryThis method must be implemented.
MethodgetInputsBySearch
Description

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

Parametersosid.control.InputQueryinputQuerythe input query
osid.control.InputSearchinputSearchthe input search
Returnosid.control.InputSearchResultsthe input search results
ErrorsNULL_ARGUMENT inputQuery or inputSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED inputQuery or inputSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetInputQueryFromInspector
Description

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

Parametersosid.control.InputQueryInspectorinputQueryInspectoran input query inspector
Returnosid.control.InputQuerythe input query
ErrorsNULL_ARGUMENT inputQueryInspector is null
UNSUPPORTED inputQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.