OSID Logo
OSID Specifications
configuration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.configuration.ValueSearchSession
Implementsosid.configuration.ValueQuerySession
Description

This session provides methods for searching Value objects. 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.ValueSearchthe value search
CompliancemandatoryThis 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.ValueSearchOrderthe value search order
CompliancemandatoryThis method must be implemented.
MethodgetValuesBySearch
Description

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

Parametersosid.configuration.ValueQueryvalueQuerythe value query
osid.configuration.ValueSearchvalueSearchthe value search
Returnosid.configuration.ValueSearchResultsthe serach results
ErrorsNULL_ARGUMENT valueQuery or valueSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED valueQuery or valueSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetValueQueryFromInspector
Description

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

Parametersosid.configuration.ValueQueryInspectorvalueQueryInspectora value query inspector
Returnosid.configuration.ValueQuerythe value query
ErrorsNULL_ARGUMENT valueQueryInspector is null
UNSUPPORTED valueQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.