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

This session manages queries and sequencing to create "smart" dynamic catalogues. An OfferingConstrainerQuery can be retrieved from this session and mapped to this Catalogue to create a virtual collection of offering constrainers. The offering constrainer may be sequenced using the OfferingConstrainerSearchOrder from this session.

This Catalogue has a default query that matches any offering constrainer and a default search order that specifies no sequencing. The queries may be examined using an OfferingConstrainerQueryInspector. The query may be modified by converting the inspector back to an OfferingConstrainerQuery.

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.
MethodgetOfferingConstrainerQuery
Description

Gets an offering constrainer query.

Returnosid.offering.rules.OfferingConstrainerQuerythe offering constrainer query
CompliancemandatoryThis method must be implemented.
MethodgetOfferingConstrainerSearchOrder
Description

Gets an offering constrainer search order.

Returnosid.offering.rules.OfferingConstrainerSearchOrderthe offering constrainer search order
CompliancemandatoryThis method must be implemented.
MethodapplyOfferingConstrainerQuery
Description

Applies an offering constrainer query to this catalogue.

Parametersosid.offering.rules.OfferingConstrainerQueryofferingConstrainerQuerythe offering constrainer query
ErrorsNULL_ARGUMENT offeringConstrainerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED offeringConstrainerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectOfferingConstrainerQuery
Description

Gets an offering constrainer query inspector for this catalogue.

Returnosid.offering.rules.OfferingConstrainerQueryInspectorthe offering constrainer query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyOfferingConstrainerSequencing
Description

Applies an offering constrainer search order to this catalogue.

Parametersosid.offering.rules.OfferingConstrainerSearchOrderofferingConstrainerSearchOrderthe offering constrainer search order
ErrorsNULL_ARGUMENT offeringConstrainerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED offeringConstrainerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetOfferingConstrainerQueryFromInspector
Description

Gets an offering constrainer query from an inspector.

Parametersosid.offering.rules.OfferingConstrainerQueryInspectorofferingConstrainerQueryInspectoran offering constrainer query inspector
Returnosid.offering.rules.OfferingConstrainerQuerythe offering constrainer query
ErrorsNULL_ARGUMENT offeringConstrainerQueryInspector is null
UNSUPPORTED offeringConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.