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

This session manages queries and sequencing to create "smart" dynamic repositories. A CompositionEnablerQuery can be retrieved from this session and mapped to this Repository to create a virtual collection of composition enablers. The composition enablers may be sequenced using the CompositionEnablerSearchOrder from this session.

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

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
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartRepositories
Description

Tests if this user can manage smart repositories. 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.
MethodgetCompositionEnablerQuery
Description

Gets a composition enabler query.

Returnosid.repository.rules.CompositionEnablerQuerythe composition enabler query
CompliancemandatoryThis method must be implemented.
MethodgetCompositionEnablerSearchOrder
Description

Gets a composition enabler search order.

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

Applies a composition enabler query to this repository.

Parametersosid.repository.rules.CompositionEnablerQuerycompositionEnablerQuerythe composition enabler query
ErrorsNULL_ARGUMENT compositionEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED compositionEnablerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectCompositionEnablerQuery
Description

Gets a composition enabler query inspector for this repository.

Returnosid.repository.rules.CompositionEnablerQueryInspectorthe composition enabler query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyCompositionEnablerSequencing
Description

Applies a composition enabler search order to this repository.

Parametersosid.repository.rules.CompositionEnablerSearchOrdercompositionEnablerSearchOrderthe composition enabler search order
ErrorsNULL_ARGUMENT compositionEnablerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED compositionEnablerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCompositionEnablerQueryFromInspector
Description

Gets a composition enabler query from an inspector.

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.