OSID Logo
OSID Specifications
rules check package
Version 3.1.0
Interfaceosid.rules.check.InstructionEngineSession
Implementsosid.OsidSession
Used Byosid.rules.check.RulesCheckManager
osid.rules.check.RulesCheckProxyManager
Description

This session provides methods to retrieve Instruction to Engine instructions. An Instruction may appear in multiple Engine objects. Each engine may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupInstructionEngineInstructions
Description

Tests if this user can perform lookups of instruction/engine mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up instructions is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeInstructionEngineView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryInstructionEngineView
Description

A complete view of the Instruction and Engine returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethodgetInstructionIdsByEngine
Description

Gets the list of Instruction Ids associated with a Engine.

Parametersosid.id.IdengineId Id of the Engine
Returnosid.id.IdList list of related instruction Ids
ErrorsNOT_FOUND engineId is not found
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstructionsByEngine
Description

Gets the list of Instructions associated with a Engine.

Parametersosid.id.IdengineId Id of the Engine
Returnosid.rules.check.InstructionList list of related instructions
ErrorsNOT_FOUND engineId is not found
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstructionIdsByEngines
Description

Gets the list of Instruction Ids corresponding to a list of Engines.

Parametersosid.id.IdListengineIds list of engine Ids
Returnosid.id.IdList list of instruction Ids
ErrorsNULL_ARGUMENT engineIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetInstructionsByEngines
Description

Gets the list of Instructions corresponding to a list of Engines.

Parametersosid.id.IdListengineIds list of engine Ids
Returnosid.rules.check.InstructionList list of instructions
ErrorsNULL_ARGUMENT engineIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetEngineIdsByInstruction
Description

Gets the Engine Ids mapped to an Instruction.

Parametersosid.id.IdinstructionId Id of an Instruction
Returnosid.id.IdList list of engine Ids
ErrorsNOT_FOUND instructionId is not found
NULL_ARGUMENT instructionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetEnginesByInstruction
Description

Gets the Engines mapped to an Instruction.

Parametersosid.id.IdinstructionId Id of an Instruction
Returnosid.rules.EngineList list of engines
ErrorsNOT_FOUND instructionId is not found
NULL_ARGUMENT instructionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.