OSID Logo
OSID Specifications
offering package
Version 3.0.0
Interfaceosid.offering.ResultSmartCatalogueSession
Implementsosid.OsidSession
Used Byosid.offering.OfferingManager
osid.offering.OfferingProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A ResultQuery can be retrieved from this session and mapped to this Catalogue to create a virtual collection of Results . The results may be sequenced using the ResultSearchOrder from this session.

This Catalogue has a default query that matches any result and a default search order that specifies no sequencing. The queries may be examined using a ResultQueryInspector . The query may be modified by converting the inspector back to a ResultQuery .

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.

Returnbooleanfalse if smart catalogue management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResultQuery
Description

Gets a result query.

Returnosid.offering.ResultQuerythe result query
CompliancemandatoryThis method must be implemented.
MethodgetResultSearchOrder
Description

Gets a result search order.

Returnosid.offering.ResultSearchOrderthe result search order
CompliancemandatoryThis method must be implemented.
MethodapplyResultQuery
Description

Applies a result query to this catalogue.

Parametersosid.offering.ResultQueryresultQuerythe result query
ErrorsNULL_ARGUMENTresultQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDresultQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectResultQuery
Description

Gets a result query inspector for this catalogue.

Returnosid.offering.ResultQueryInspectorthe result query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyResultSequencing
Description

Applies a result search order to this catalogue.

Parametersosid.offering.ResultSearchOrderresultSearchOrderthe result search order
ErrorsNULL_ARGUMENTresultSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDresultSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetResultQueryFromInspector
Description

Gets a result query from an inspector.

Parametersosid.offering.ResultQueryInspectorresultQueryInspectora query inspector
Returnosid.offering.ResultQuerythe result query
ErrorsNULL_ARGUMENTresultQueryInspector is null
UNSUPPORTEDresultQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.