OSID Logo
OSID Specifications
rules check package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.check.InstructionQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching among Instruction objects. The search query is constructed using the InstructionQuery.

This session defines views that offer differing behaviors for searching.

  • federated engine view: searches include instructions in engines of which this engine is an ancestor in the engine hierarchy
  • isolated engine view: searches are restricted to instructions in this engine

Instructions may have a query record indicated by their respective record types. The query record is accessed via the InstructionQuery.

MethodgetEngineId
Description

Gets the Engine Id associated with this session.

Returnosid.id.Idthe Engine Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetEngine
Description

Gets the Engine associated with this session.

Returnosid.rules.Enginethe engine
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSearchInstructions
Description

Tests if this user can perform Instruction lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedEngineView
Description

Federates the view for methods in this session. A federated view will include instructions in engines which are children of this engine in the engine hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedEngineView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this engine only.

CompliancemandatoryThis method is must be implemented.
MethodgetInstructionQuery
Description

Gets an instruction query.

Returnosid.rules.check.InstructionQuerythe instruction query
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsByQuery
Description

Gets a list of Instructions matching the given instruction query.

Parametersosid.rules.check.InstructionQueryinstructionQuerythe instruction query
Returnosid.rules.check.InstructionListthe returned InstructionList
ErrorsNULL_ARGUMENT instructionQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED instructionQuery is not of this service
CompliancemandatoryThis method must be implemented.