OSID Logo
OSID Specifications
repository rules package
Version 3.1.0
Interfaceosid.repository.rules.CompositionEnablerSmartRepositorySession
Implementsosid.OsidSession
Used Byosid.repository.rules.RepositoryRulesManager
osid.repository.rules.RepositoryRulesProxyManager
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.Id the Repository Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetRepository
Description

Gets the Repository associated with this session.

Returnosid.repository.Repository the repository
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetCompositionEnablerQuery
Description

Gets a composition enabler query.

Returnosid.repository.rules.CompositionEnablerQuery the composition enabler query
Compliancemandatory This method must be implemented.
MethodgetCompositionEnablerSearchOrder
Description

Gets a composition enabler search order.

Returnosid.repository.rules.CompositionEnablerSearchOrder the composition enabler search order
Compliancemandatory This method must be implemented.
MethodapplyCompositionEnablerQuery
Description

Applies a composition enabler query to this repository.

Parametersosid.repository.rules.CompositionEnablerQuerycompositionEnablerQuery the composition enabler query
ErrorsNULL_ARGUMENT compositionEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED compositionEnablerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectCompositionEnablerQuery
Description

Gets a composition enabler query inspector for this repository.

Returnosid.repository.rules.CompositionEnablerQueryInspector the composition enabler query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyCompositionEnablerSequencing
Description

Applies a composition enabler search order to this repository.

Parametersosid.repository.rules.CompositionEnablerSearchOrdercompositionEnablerSearchOrder the composition enabler search order
ErrorsNULL_ARGUMENT compositionEnablerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED compositionEnablerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetCompositionEnablerQueryFromInspector
Description

Gets a composition enabler query from an inspector.

Parametersosid.repository.rules.CompositionEnablerQueryInspectorcompositionEnablerQueryInspector a composition enabler query inspector
Returnosid.repository.rules.CompositionEnablerQuery the composition enabler query
ErrorsNULL_ARGUMENT compositionEnablerQueryInspector is null
UNSUPPORTED compositionEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.