OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.CompositionSmartRepositorySession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A CompositionQuery can be retrieved from this session and mapped to this Repository to create a virtual collection of Compositions. The compositions may be sequenced using the CompositionSearchOrder from this session.

This Repository has a default query that matches any composition and a default search order that specifies no sequencing. The queries may be examined using a CompositionQueryInspector. The query may be modified by converting the inspector back to a CompositionQuery.

MethodgetRepositoryId
Description

Gets the Repository Id associated with this session.

Returnosid.id.Idthe Repository Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetRepository
Description

Gets the Repository associated with this session.

Returnosid.repository.Repositorythe Repository associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartRepository
Description

Tests if this user can manage smart repository. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart repository management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCompositionQuery
Description

Gets a composition query.

Returnosid.repository.CompositionQuerythe composition query
CompliancemandatoryThis method must be implemented.
MethodgetCompositionSearchOrder
Description

Gets a composition search order.

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

Applies a composition query to this repository.

Parametersosid.repository.CompositionQuerycompositionQuerythe composition query
ErrorsNULL_ARGUMENT compositionQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED compositionQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectCompositionQuery
Description

Gets a composition query inspector for this repository.

Returnosid.repository.CompositionQueryInspectorthe composition query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyCompositionSequencing
Description

Applies a composition search order to this repository.

Parametersosid.repository.CompositionSearchOrdercompositionSearchOrderthe composition search order
ErrorsNULL_ARGUMENT compositionSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED compositionSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCompositionQueryFromInspector
Description

Gets a composition query from an inspector.

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