OSID Logo
OSID Specifications
configuration package
Version 3.1.0
Interfaceosid.configuration.ValueSearchSession
Implementsosid.configuration.ValueQuerySession
Used Byosid.configuration.ConfigurationManager
osid.configuration.ConfigurationProxyManager
Description

This session provides methods for searching Values. The search query is constructed using the ValueQuery. The parameter Type also specifies the record for the value query.

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

Two views of the configuration data are defined;

  • federated: values defined in configurations that are a parent of this configuration in the configuration hierarchy are included
  • isolated: values are contained to within this configuration
MethodgetValueSearch
Description

Gets a value search.

Returnosid.configuration.ValueSearch the value search
Compliancemandatory This method must be implemented.
MethodgetValueSearchOrder
Description

Gets a value search order. The ValueSearchOrder is supplied to a ValueSearch to specify the ordering of results.

Returnosid.configuration.ValueSearchOrder the value search order
Compliancemandatory This method must be implemented.
MethodgetValuesBySearch
Description

Gets a list of Values matching the given search query using the given search.

Parametersosid.configuration.ValueQueryvalueQuery the value query
osid.configuration.ValueSearchvalueSearch the value search
Returnosid.configuration.ValueSearchResults the serach results
ErrorsNULL_ARGUMENT valueQuery or valueSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED valueQuery or valueSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetValueQueryFromInspector
Description

Gets a value query from an inspector. The inspector is available from a ValueSearchResults.

Parametersosid.configuration.ValueQueryInspectorvalueQueryInspector a value query inspector
Returnosid.configuration.ValueQuery the value query
ErrorsNULL_ARGUMENT valueQueryInspector is null
UNSUPPORTED valueQueryInspector is not of this service
Compliancemandatory This method must be implemented.