OSID Logo
OSID Specifications
lexicon package
Version 3.1.0
Interfaceosid.lexicon.ParameterSearchSession
Implementsosid.lexicon.ParameterQuerySession
Used Byosid.lexicon.LexiconManager
osid.lexicon.LexiconProxyManager
Description

This session provides methods for searching among Parameters. The search query is constructed using the ParameteryQuery.

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

This session defines views that offer differing behaviors for searching.

  • federated press view: searches include parameters in presses of which this press is an ancestor in the press hierarchy
  • isolated press view: searches are restricted to parameters in this press

Parameters may have a parameter record indicated by their respective record types. The parameter record is accessed via the ParameterQuery.

MethodgetParameterSearch
Description

Gets a parameter search.

Returnosid.lexicon.ParameterSearch the parameter search
Compliancemandatory This method must be implemented.
MethodgetParameterSearchOrder
Description

Gets a parameter search order. The ParameterSearchOrder is supplied to a ParameterSearch to specify the ordering of results.

Returnosid.lexicon.ParameterSearchOrder the parameter search order
Compliancemandatory This method must be implemented.
MethodgetParametersBySearch
Description

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

Parametersosid.lexicon.ParameterQueryparameterQuery the parameter query
osid.lexicon.ParameterSearchparameterSearch the parameter search
Returnosid.lexicon.ParameterSearchResults the parameter search results
ErrorsNULL_ARGUMENT parameterQuery or parameterSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED parameterQuery or parameterSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetParameterQueryFromInspector
Description

Gets a parameter query from an inspector. The inspector is available from a ParameterSearchResults.

Parametersosid.lexicon.ParameterQueryInspectorparameterQueryInspector a parameter query inspector
Returnosid.lexicon.ParameterQuery the parameter query
ErrorsNULL_ARGUMENT parameterQueryInspector is null
UNSUPPORTED parameterQueryInspector is not of this service
Compliancemandatory This method must be implemented.