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

This session defines methods to receive notifications on adds/changes to Check objects in this Engine. This also includes existing checks that may appear or disappear due to changes in the Engine hierarchy, 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 CheckLookupSession.

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.
MethodcanRegisterForCheckNotifications
Description

Tests if this user can register for Check 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 checks 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.
MethodreliableCheckNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableCheckNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeCheckNotification
Description

Acknowledge a check 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.
MethodregisterForNewChecks
Description

Register for notifications of new checks. CheckReceiver.newChecks() is invoked when a new Check appears in this engine.

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

Registers for notification of updated checks. CheckReceiver.changedChecks() is invoked when a check in this engine is changed.

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

Registers for notification of an updated hold. CheckReceiver.changedChecks() is invoked when the specified check in this engine is changed.

Parametersosid.id.IdcheckId the Id of the Check to monitor
ErrorsNOT_FOUND a check was not found in this engine identified by the given Id
NULL_ARGUMENT checkId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedChecks
Description

Registers for notification of deleted checks. CheckReceiver.deletedChecks() is invoked when a check is deleted or removed from this engine.

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

Registers for notification of a deleted hold. CheckReceiver.deletedChecks() is invoked when the specified check is deleted or removed from this engine.

Parametersosid.id.IdcheckId the Id of the Check to monitor
ErrorsNOT_FOUND a check was not found identified by the given Id
NULL_ARGUMENT checkId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.