OSID Logo
OSID Specifications
inquiry package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inquiry.ResponseSmartInquestSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A ResponseQuery can be retrieved from this session and inquestped to this Inquest to create a virtual collection of Responses. The responses may be sequenced using the ResponseSearchOrder from this session.

This Inquest has a default query that matches any response and a default search order that specifies no sequencing. The queries may be examined using a ResponseQueryInspector. The query may be modified by converting the inspector back to a ResponseQuery.

MethodgetInquestId
Description

Gets the Inquest Id associated with this session.

Returnosid.id.Idthe Inquest Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetInquest
Description

Gets the Inquest associated with this session.

Returnosid.inquiry.Inquestthe inquest
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartInquests
Description

Tests if this user can manage smart inquests. 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 inquest management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResponseQuery
Description

Gets a response query.

Returnosid.inquiry.ResponseQuerythe response query
CompliancemandatoryThis method must be implemented.
MethodgetResponseSearchOrder
Description

Gets a response search order.

Returnosid.inquiry.ResponseSearchOrderthe response search order
CompliancemandatoryThis method must be implemented.
MethodapplyResponseQuery
Description

Applies a response query to this inquest.

Parametersosid.inquiry.ResponseQueryresponseQuerythe response query
ErrorsNULL_ARGUMENT responseQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED responseQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectResponseQuery
Description

Gets a response query inspector for this inquest.

Returnosid.inquiry.ResponseQueryInspectorthe response query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyResponseSequencing
Description

Applies a response search order to this inquest.

Parametersosid.inquiry.ResponseSearchOrderresponseSearchOrderthe response search order
ErrorsNULL_ARGUMENT responseSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED responseSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetResponseQueryFromInspector
Description

Gets a response query from an inspector.

Parametersosid.inquiry.ResponseQueryInspectorresponseQueryInspectora response query inspector
Returnosid.inquiry.ResponseQuerythe response query
ErrorsNULL_ARGUMENT responseQueryInspector is null
UNSUPPORTED responseQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.