OSID Logo
OSID Specifications
offering rules package
Version 3.1.0
Interfaceosid.offering.rules.OfferingConstrainerSmartCatalogueSession
Implementsosid.OsidSession
Used Byosid.offering.rules.OfferingRulesManager
osid.offering.rules.OfferingRulesProxyManager
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.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.
MethodgetOfferingConstrainerQuery
Description

Gets an offering constrainer query.

Returnosid.offering.rules.OfferingConstrainerQuery the offering constrainer query
Compliancemandatory This method must be implemented.
MethodgetOfferingConstrainerSearchOrder
Description

Gets an offering constrainer search order.

Returnosid.offering.rules.OfferingConstrainerSearchOrder the offering constrainer search order
Compliancemandatory This method must be implemented.
MethodapplyOfferingConstrainerQuery
Description

Applies an offering constrainer query to this catalogue.

Parametersosid.offering.rules.OfferingConstrainerQueryofferingConstrainerQuery the offering constrainer query
ErrorsNULL_ARGUMENT offeringConstrainerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED offeringConstrainerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectOfferingConstrainerQuery
Description

Gets an offering constrainer query inspector for this catalogue.

Returnosid.offering.rules.OfferingConstrainerQueryInspector the offering constrainer query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyOfferingConstrainerSequencing
Description

Applies an offering constrainer search order to this catalogue.

Parametersosid.offering.rules.OfferingConstrainerSearchOrderofferingConstrainerSearchOrder the offering constrainer search order
ErrorsNULL_ARGUMENT offeringConstrainerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED offeringConstrainerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetOfferingConstrainerQueryFromInspector
Description

Gets an offering constrainer query from an inspector.

Parametersosid.offering.rules.OfferingConstrainerQueryInspectorofferingConstrainerQueryInspector an offering constrainer query inspector
Returnosid.offering.rules.OfferingConstrainerQuery the offering constrainer query
ErrorsNULL_ARGUMENT offeringConstrainerQueryInspector is null
UNSUPPORTED offeringConstrainerQueryInspector is not of this service
Compliancemandatory This method must be implemented.