OSID Logo
OSID Specifications
offering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.rules.CanonicalUnitProcessorSmartCatalogueSession
Implementsosid.OsidSession
Description

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

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

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

Returnosid.id.Idthe Catalogue Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Cataloguethe catalogue
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitProcessorQuery
Description

Gets a canonical unit processor query.

Returnosid.offering.rules.CanonicalUnitProcessorQuerythe canonical unit processor query
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitProcessorSearchOrder
Description

Gets a canonical unit processor search order.

Returnosid.offering.rules.CanonicalUnitProcessorSearchOrderthe canonical unit processor search order
CompliancemandatoryThis method must be implemented.
MethodapplyCanonicalUnitProcessorQuery
Description

Applies a canonical unit processor query to this catalogue.

Parametersosid.offering.rules.CanonicalUnitProcessorQuerycanonicalUnitProcessorQuerythe canonical unit processor query
ErrorsNULL_ARGUMENT canonicalUnitProcessorQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED canonicalUnitProcessorQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectCanonicalUnitProcessorQuery
Description

Gets a canonical unit processor query inspector for this catalogue.

Returnosid.offering.rules.CanonicalUnitProcessorQueryInspectorthe canonical unit processor query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyCanonicalUnitProcessorSequencing
Description

Applies a canonical unit processor search order to this catalogue.

Parametersosid.offering.rules.CanonicalUnitProcessorSearchOrdercanonicalUnitProcessorSearchOrderthe canonical unit processor search order
ErrorsNULL_ARGUMENT canonicalUnitProcessorSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED canonicalUnitProcessorSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitProcessorQueryFromInspector
Description

Gets a canonical unit processor query from an inspector.

Parametersosid.offering.rules.CanonicalUnitProcessorQueryInspectorcanonicalUnitProcessorQueryInspectora canonical unit processor query inspector
Returnosid.offering.rules.CanonicalUnitProcessorQuerythe canonical unit processor query
ErrorsNULL_ARGUMENT canonicalUnitProcessorQueryInspector is null
UNSUPPORTED canonicalUnitProcessorQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.