OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.CompositionSearchSession
Implementsosid.repository.CompositionQuerySession
Used Byosid.repository.RepositoryManager
osid.repository.RepositoryProxyManager
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.CompositionSearch the composition search
Compliancemandatory This 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.CompositionSearchOrder the composition search order
Compliancemandatory This method must be implemented.
MethodgetCompositionsBySearch
Description

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

Parametersosid.repository.CompositionQuerycompositionQuery the composition query
osid.repository.CompositionSearchcompositionSearch the composition search
Returnosid.repository.CompositionSearchResults the composition search results
ErrorsNULL_ARGUMENT compositionQuery or compositionSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED compositionQuery or compositionSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCompositionQueryFromInspector
Description

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

Parametersosid.repository.CompositionQueryInspectorcompositionQueryInspector a composition query inspector
Returnosid.repository.CompositionQuery the composition query
ErrorsNULL_ARGUMENT compositionQueryInspector is null
UNSUPPORTED compositionQueryInspector is not of this service
Compliancemandatory This method must be implemented.