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

This session defines methods to receive notifications on adds/changes to Instruction objects in this Engine. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

The two views defined in this session correspond to the views in the InstructionLookupSession.

MethodgetEngineId
Description

Gets the Engine Id associated with this session.

Returnosid.id.Id the Engine Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetEngine
Description

Gets the Engine associated with this session.

Returnosid.rules.Engine the engine
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForInstructionNotifications
Description

Tests if this user can register for Instruction notifications. 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 opt not to offer notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedEngineView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableInstructionNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeInstructionNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableInstructionNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeInstructionNotification
Description

Acknowledge an instruction notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewInstructions
Description

Register for notifications of new instructions. InstructionReceiver.newInstructions() is invoked when a new Instruction appears in this engine.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewInstructionsForAgenda
Description

Register for notifications of new instructions related to the given agenda. InstructionReceiver.newInstructions() is invoked when a new Instruction appears in this engine.

Parametersosid.id.IdagendaId the Id of the Agenda to monitor
ErrorsNULL_ARGUMENT agendaId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewInstructionsForCheck
Description

Register for notifications of new instructions related to the given agenda. InstructionReceiver.newInstructions() is invoked when a new Instruction appears in this engine.

Parametersosid.id.IdcheckId the Id of the Check to monitor
ErrorsNULL_ARGUMENT checkId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedInstructions
Description

Registers for notification of updated instructions. InstructionReceiver.changedInstructions() is invoked when an instruction in this engine is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedInstructionsForAgenda
Description

Registers for notification of updated instructions related to the given agenda. InstructionReceiver.changedInstructions() is invoked when an instruction related to the agenda in this engine is changed.

Parametersosid.id.IdagendaId the Id of the Agenda to monitor
ErrorsNULL_ARGUMENT agendaId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedInstructionsForCheck
Description

Registers for notification of updated instructions related to the given check. InstructionReceiver.changedInstructions() is invoked when an instruction related to the check in this engine is changed.

Parametersosid.id.IdcheckId the Id of the Check to monitor
ErrorsNULL_ARGUMENT checkId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedInstruction
Description

Registers for notification of an updated instruction. InstructionReceiver.changedInstructions() is invoked when the specified instruction in this engine is changed.

Parametersosid.id.IdinstructionId the Id of the Instruction to monitor
ErrorsNOT_FOUND an instruction was not found in this engine identified by the given Id
NULL_ARGUMENT instructionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedInstructions
Description

Registers for notification of deleted instructions. InstructionReceiver.deletedInstructions() is invoked when an instruction is deleted or removed from this engine.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedInstructionsForAgenda
Description

Registers for notification of deleted instruction for an agenda. InstructionReceiver.deletedInstructions() is invoked when the related instruction is deleted or removed from this engine.

Parametersosid.id.IdagendaId the Id of the Agenda to monitor
ErrorsNULL_ARGUMENT agendaId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedInstructionsForCheck
Description

Registers for notification of deleted instruction for a check. InstructionReceiver.deletedInstructions() is invoked when the related instruction is deleted or removed from this engine.

Parametersosid.id.IdcheckId the Id of the Check to monitor
ErrorsNULL_ARGUMENT checkId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedInstruction
Description

Registers for notification of a deleted instruction. InstructionReceiver.deletedInstructions() is invoked when the specified instruction is deleted or removed from this engine.

Parametersosid.id.IdinstructionId the Id of the Instruction to monitor
ErrorsNOT_FOUND an instruction was not found identified by the given Id
NULL_ARGUMENT instructionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.