OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.CompositionSearchSession
Implementsosid.repository.CompositionQuerySession
Description

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

getCompositionsByQuery() is the basic search method and returns a list of Compositions. A more advanced search may be performed with getCompositionsBySearch(). It accepts an Composition in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCompositionsBySearch() returns an CompositionSearchResults that can be used to access the resulting Composition or be used to perform a search within the result set through CompositionSearch.

This session defines views that offer differing behaviors when searching.

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

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

MethodgetCompositionSearch
Description

Gets a composition search.

Returnosid.repository.CompositionSearchthe composition search
CompliancemandatoryThis method must be implemented.
MethodgetCompositionSearchOrder
Description

Gets a composition search order. The CompositionSearchOrder is supplied to an CompositionSearch to specify the ordering of results.

Returnosid.repository.CompositionSearchOrderthe composition search order
CompliancemandatoryThis method must be implemented.
MethodgetCompositionsBySearch
Description

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

Parametersosid.repository.CompositionQuerycompositionQuerythe composition query
osid.repository.CompositionSearchcompositionSearchthe composition search
Returnosid.repository.CompositionSearchResultsthe composition search results
ErrorsNULL_ARGUMENT compositionQuery or compositionSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED compositionQuery or compositionSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCompositionQueryFromInspector
Description

Gets a composition query from an inspector. The inspector is available from a CompositionSearchResults.

Parametersosid.repository.CompositionQueryInspectorcompositionQueryInspectora composition query inspector
Returnosid.repository.CompositionQuerythe composition query
ErrorsNULL_ARGUMENT compositionQueryInspector is null
UNSUPPORTED compositionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.