OSID Logo
OSID Specifications
repository rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.rules.CompositionEnablerSearchSession
Implementsosid.repository.rules.CompositionEnablerQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetCompositionEnablerSearch
Description

Gets a composition enabler search.

Returnosid.repository.rules.CompositionEnablerSearchthe composition enabler search
CompliancemandatoryThis method must be implemented.
MethodgetCompositionEnablerSearchOrder
Description

Gets a composition enabler search order. The CompositionEnablerSearchOrder is supplied to a CompositionEnablerSearch to specify the ordering of results.

Returnosid.repository.rules.CompositionEnablerSearchOrderthe composition enabler search order
CompliancemandatoryThis method must be implemented.
MethodgetCompositionEnablersBySearch
Description

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

Parametersosid.repository.rules.CompositionEnablerQuerycompositionEnablerQuerythe composition enabler query
osid.repository.rules.CompositionEnablerSearchcompositionEnablerSearchthe composition enabler search
Returnosid.repository.rules.CompositionEnablerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT compositionEnablerQuery or compositionEnablerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED compositionEnablerQuery or compositionEnablerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCompositionEnablerQueryFromInspector
Description

Gets a composition enabler query from an inspector. The inspector is available from a CompositionEnablerSearchResults.

Parametersosid.repository.rules.CompositionEnablerQueryInspectorcompositionEnablerQueryInspectora composition enabler query inspector
Returnosid.repository.rules.CompositionEnablerQuerythe composition enabler query
ErrorsNULL_ARGUMENT compositionEnablerQueryInspector is null
UNSUPPORTED compositionEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.