OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.authoring.SequenceRuleNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to SequenceRule objects in this Bank. This also includes existing SequenceRules that may appear or disappear due to changes in the Bank 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 SequenceRuleLookupSession.

MethodgetBankId
Description

Gets the Bank Id associated with this session.

Returnosid.id.Idthe Bank Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetBank
Description

Gets the Bank associated with this session.

Returnosid.assessment.Bankthe bank
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForSequenceRuleNotifications
Description

Tests if this user can register for SequenceRule 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
CompliancemandatoryThis method must be implemented.
MethoduseFederatedBankView
Description

Federates the view for methods in this session. A federated view will include in banks which are children of this bank in the bank hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedBankView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableSequenceRuleNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableSequenceRuleNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeSequenceRuleNotification
Description

Acknowledge a sequence rule notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewSequenceRules
Description

Register for notifications of new sequence rules. SequenceRuleReceiver.newSequenceRules() is invoked when a new SequenceRule appears in this bank.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewSequenceRulesForAssessmentPart
Description

Register for notifications of new sequence rules for the given assessment part. SequenceRuleReceiver.newSequenceRules() is invoked when a new SequenceRule appears in this bank.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewSequenceRulesForNextAssessmentPart
Description

Register for notifications of new sequence rules for the given assessment part. SequenceRuleReceiver.newSequenceRules() is invoked when a new SequenceRule appears in this bank.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedSequenceRules
Description

Registers for notification of updated sequence rules. SequenceRuleReceiver.changedSequenceRules() is invoked when a sequence rule in this bank is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedSequenceRulesForAssessmentPart
Description

Register for notifications of updated sequence rules for the given assessment part. SequenceRuleReceiver.changedSequenceRules() is invoked when a new SequenceRule in this bank is changed.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedSequenceRulesForNextAssessmentPart
Description

Register for notifications of updated sequence rules for the given assessment part. SequenceRuleReceiver.changedSequenceRules() is invoked when a new SequenceRule in this bank is changed.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedSequenceRule
Description

Registers for notification of an updated sequence rule. ProvisionableReceiver.changedSequenceRules() is invoked when the specified sequence rule in this bank is changed.

Parametersosid.id.IdsequenceRuleIdthe Id of the SequenceRule to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedSequenceRules
Description

Registers for notification of deleted sequence rules. SequenceRuleReceiver.deletedSequenceRules() is invoked when a sequence rule is deleted or removed from this bank.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedSequenceRulesForAssessmentPart
Description

Registers for notification of deleted sequence rules for the given assessment part. SequenceRuleReceiver.deletedSequenceRule() is invoked when a sequence rule is deleted or removed from this bank.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedSequenceRulesForNextAssessmentPart
Description

Registers for notification of deleted sequence rules for the given assessment part. SequenceRuleReceiver.deletedSequenceRule() is invoked when a sequence rule is deleted or removed from this bank.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedSequenceRule
Description

Registers for notification of a deleted sequence rule. SequenceRuleReceiver.deletedSequenceRule() is invoked when the specified sequence rule is deleted or removed from this bank.

Parametersosid.id.IdsequenceRuleIdthe Id of the SequenceRule to monitor
ErrorsNULL_ARGUMENT sequenceRuleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.