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

This session defines methods for retrieving instructions.

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
  • isolated engine view: All instruction methods in this session operate, retrieve and pertain to instructions defined explicitly in the current engine. Using an isolated view is useful for managing Instructions with the InstructionAdminSession.
  • federated engine view: All instruction lookup methods in this session operate, retrieve and pertain to all instructions defined in this engine and any other instructions implicitly available in this engine through engine inheritence.
  • active instruction view: All instruction lookup methods return active instructions.
  • any status instruction view: instructions of any active or inactive status are returned from methods.

The methods useFederatedEngineView() and useIsolatedEngineView() behave as a radio group and one should be selected before invoking any lookup methods.

Instructions may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the Instructions.

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.
MethodcanLookupInstructions
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 lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeInstructionView
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.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryInstructionView
Description

A complete view of the Instruction 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.

CompliancemandatoryThis method is 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 retrievals to this engine only.

CompliancemandatoryThis method is must be implemented.
MethoduseActiveInstructionView
Description

Only active instructions are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethoduseAnyStatusInstructionView
Description

All active and inactive instructions of are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethodgetInstruction
Description

Gets the Instruction specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Instruction may have a different Id than requested, such as the case where a duplicate Id was assigned to an Instruction and retained for compatibility.

Parametersosid.id.IdinstructionIdthe Id of the Instruction to retrieve
Returnosid.rules.check.Instructionthe returned Instruction
ErrorsNOT_FOUNDno Instruction found with the given Id
NULL_ARGUMENT instructionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsByIds
Description

Gets an InstructionList corresponding to the given IdList.

In plenary mode, the returned list contains all of the instructions specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Instructions may be omitted from the list and may present the elements in any order including returning a unique set.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdListinstructionIdsthe list of Ids to retrieve
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT instructionIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsByGenusType
Description

Gets an InstructionList corresponding to the given instruction genus Type which does not include instructions of types derived from the specified Type.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.type.TypeinstructionGenusTypean instruction genus type
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNULL_ARGUMENT instructionGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsByParentGenusType
Description

Gets an InstructionList corresponding to the given instruction genus Type and include any additional instructions with genus types derived from the specified Type.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.type.TypeinstructionGenusTypean instruction genus type
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNULL_ARGUMENT instructionGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsByRecordType
Description

Gets an InstructionList containing the given instruction record Type.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.type.TypeinstructionRecordTypean instruction record type
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNULL_ARGUMENT instructionRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsOnDate
Description

Gets an InstructionList effective for the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.calendaring.DateTimefroma start date
osid.calendaring.DateTimetoan end date
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsForAgenda
Description

Gets an InstructionList for the given agenda.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdagendaIdan agenda Id
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNULL_ARGUMENT agendaId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsForAgendaOnDate
Description

Gets an InstructionList for the given agenda and effective for the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdagendaIdan agenda Id
osid.calendaring.DateTimefroma start date
osid.calendaring.DateTimetoan end date
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT agendaId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsForCheck
Description

Gets an InstructionList for the given check.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdcheckIda check Id
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNULL_ARGUMENT checkId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsForCheckOnDate
Description

Gets an InstructionList for the given check and effective for the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdcheckIda check Id
osid.calendaring.DateTimefroma start date
osid.calendaring.DateTimetoan end date
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT checkId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsForAgendaAndCheck
Description

Gets an InstructionList for the given agenda and check.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdagendaIdan agenda Id
osid.id.IdcheckIda check Id
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsNULL_ARGUMENT agendaId or checkId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructionsForAgendaAndCheckOnDate
Description

Gets an InstructionList for the given agenda and check and effective for the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known instructions or an error results. Otherwise, the returned list may contain only those instructions that are accessible through this session.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Parametersosid.id.IdagendaIdan agenda Id
osid.id.IdcheckIda check Id
osid.calendaring.DateTimefroma start date
osid.calendaring.DateTimetoan end date
Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT agendaId, checkId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetInstructions
Description

Gets all instructions.

In plenary mode, the returned list contains all of the instructions, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Instructions may be omitted from the list and may present the elements in any order including returning a unique set.

In active mode, instructions are returned that are currently active. In any status mode, active and inactive instructions are returned.

Returnosid.rules.check.InstructionListthe returned Instruction list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.