OSID Logo
OSID Specifications
configuration rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.configuration.rules.ValueEnablerSearchSession
Implementsosid.configuration.rules.ValueEnablerQuerySession
Description

This session provides methods for searching among ValueEnabler objects. The search query is constructed using the ValueEnableryQuery.

getValueEnablersByQuery() is the basic search method and returns a list of ValueEnablers. A more advanced search may be performed with getValueEnablersBySearch(). It accepts a ValueEnablerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as configuration. getValueEnablersBySearch() returns a ValueEnablerSearchResults that can be used to access the resulting ValueEnablerList or be used to perform a search within the result set through ValueEnablerSearch.

This session defines views that offer differing behaviors for searching.

  • federated configuration view: searches include value enablers in configurations of which this configuration is an ancestor in the configuration hierarchy
  • isolated configuration view: searches are restricted to value enablers in this configuration

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

MethodgetValueEnablerSearch
Description

Gets a value enabler search.

Returnosid.configuration.rules.ValueEnablerSearchthe value enabler search
CompliancemandatoryThis method must be implemented.
MethodgetValueEnablerSearchOrder
Description

Gets a value enabler search order. The ValueEnablerSearchOrder is supplied to a ValueEnablerSearch to specify the ordering of results.

Returnosid.configuration.rules.ValueEnablerSearchOrderthe value enabler search order
CompliancemandatoryThis method must be implemented.
MethodgetValueEnablersBySearch
Description

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

Parametersosid.configuration.rules.ValueEnablerQueryvalueEnablerQuerythe value enabler query
osid.configuration.rules.ValueEnablerSearchvalueEnablerSearchthe value enabler search
Returnosid.configuration.rules.ValueEnablerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT valueEnablerQuery or valueEnablerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED valueEnablerQuery or valueEnablerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetValueEnablerQueryFromInspector
Description

Gets a value enabler query from an inspector. The inspector is available from a ValueEnablerSearchResults.

Parametersosid.configuration.rules.ValueEnablerQueryInspectorvalueEnablerQueryInspectora value enabler query inspector
Returnosid.configuration.rules.ValueEnablerQuerythe value enabler query
ErrorsNULL_ARGUMENT valueEnablerQueryInspector is null
UNSUPPORTED valueEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.