OSID Logo
OSID Specifications
offering rules package
Version 3.1.0
Interfaceosid.offering.rules.CanonicalUnitEnablerSmartCatalogueSession
Implementsosid.OsidSession
Used Byosid.offering.rules.OfferingRulesManager
osid.offering.rules.OfferingRulesProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogues. A CanonicalUnitEnablerQuery can be retrieved from this session and mapped to this Catalogue to create a virtual collection of canonical unit enablers. The canonical unit enablers may be sequenced using the CanonicalUnitEnablerSearchOrder from this session.

This Catalogue has a default query that matches any canonical unit enabler and a default search order that specifies no sequencing. The queries may be examined using a CanonicalUnitEnablerQueryInspector. The query may be modified by converting the inspector back to a CanonicalUnitEnablerQuery.

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

Returnosid.id.Id the Catalogue Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Catalogue the catalogue
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartCatalogues
Description

Tests if this user can manage smart catalogues. 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 catalogue management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitEnablerQuery
Description

Gets a canonical unit enabler query.

Returnosid.offering.rules.CanonicalUnitEnablerQuery the canonical unit enabler query
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitEnablerSearchOrder
Description

Gets a canonical unit enabler search order.

Returnosid.offering.rules.CanonicalUnitEnablerSearchOrder the canonical unit enabler search order
Compliancemandatory This method must be implemented.
MethodapplyCanonicalUnitEnablerQuery
Description

Applies a canonical unit enabler query to this catalogue.

Parametersosid.offering.rules.CanonicalUnitEnablerQuerycanonicalUnitEnablerQuery the canonical unit enabler query
ErrorsNULL_ARGUMENT canonicalUnitEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED canonicalUnitEnablerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectCanonicalUnitEnablerQuery
Description

Gets a canonical unit enabler query inspector for this catalogue.

Returnosid.offering.rules.CanonicalUnitEnablerQueryInspector the canonical unit enabler query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyCanonicalUnitEnablerSequencing
Description

Applies a canonical unit enabler search order to this catalogue.

Parametersosid.offering.rules.CanonicalUnitEnablerSearchOrdercanonicalUnitEnablerSearchOrder the canonical unit enabler search order
ErrorsNULL_ARGUMENT canonicalUnitEnablerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED canonicalUnitEnablerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitEnablerQueryFromInspector
Description

Gets a canonical unit enabler query from an inspector.

Parametersosid.offering.rules.CanonicalUnitEnablerQueryInspectorcanonicalUnitEnablerQueryInspector a canonical unit enabler query inspector
Returnosid.offering.rules.CanonicalUnitEnablerQuery the canonical unit enabler query
ErrorsNULL_ARGUMENT canonicalUnitEnablerQueryInspector is null
UNSUPPORTED canonicalUnitEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.