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

This session manages queries and sequencing to create "smart" dynamic catalogs. An OfferingQuery can be retrieved from this session and mapped to this Catalogue to create a virtual collection of Offerings. The offerings may be sequenced using the OfferingSearchOrder from this session.

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

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 associated with this session
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.
MethodgetOfferingQuery
Description

Gets an offering query.

Returnosid.offering.OfferingQuerythe offering query
CompliancemandatoryThis method must be implemented.
MethodgetOfferingSearchOrder
Description

Gets an offering search order.

Returnosid.offering.OfferingSearchOrderthe offering search order
CompliancemandatoryThis method must be implemented.
MethodapplyOfferingQuery
Description

Applies an offering query to this catalogue.

Parametersosid.offering.OfferingQueryofferingQuerythe offering query
ErrorsNULL_ARGUMENT offeringQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED offeringQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectOfferingQuery
Description

Gets an offering query inspector for this catalogue.

Returnosid.offering.OfferingQueryInspectorthe offering query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyOfferingSequencing
Description

Applies an offering search order to this catalogue.

Parametersosid.offering.OfferingSearchOrderofferingSearchOrderthe offering search order
ErrorsNULL_ARGUMENT offeringSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED offeringSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetOfferingQueryFromInspector
Description

Gets an offering query from an inspector.

Parametersosid.offering.OfferingQueryInspectorofferingQueryInspectora query inspector
Returnosid.offering.OfferingQuerythe offering query
ErrorsNULL_ARGUMENT offeringQueryInspector is null
UNSUPPORTED offeringQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.