OSID Logo
OSID Specifications
grading package
Version 3.0.0
Interfaceosid.grading.GradeNotificationSession
Implementsosid.OsidSession
Used Byosid.grading.GradingManager
osid.grading.GradingProxyManager
Description

This session defines methods to receive notifications on adds/changes to Grades in this Gradebook . This also includes existing grades that may appear or disappear due to changes in the Gradebook hiera rchy, 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 GradeLookupSession.

MethodgetGradebookId
Description

Gets the Gradebook Id associated with this session.

Returnosid.id.Idthe Gradebook Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetGradebook
Description

Gets the Gradebook associated with this session.

Returnosid.grading.Gradebookthe gradebook
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForGradeNotifications
Description

Tests if this user can register for Grade 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.

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedGradebookView
Description

Federates the view for methods in this session. A federated view will include grades in gradebooks which are children of this gradebook in the gradebook hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedGradebookView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableGradeNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableGradeNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeGradeNotification
Description

Acknowledge a grade notification.

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

Register for notifications of new grades. GradeReceiver.newGrades() is invoked when a new Grade appears in this gradebook.

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

Register for notifications of new grades for the given grade system. GradeReceiver.newGrades() is invoked when a new Grade appears in this gradebook.

Parametersosid.id.IdgradeSystemIdthe Id of the GradeSystem to monitor
ErrorsNULL_ARGUMENTgradeSystemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedGrades
Description

Register for notifications of updated grades. GradeReceiver.changedGrades() is invoked when a Grade in this gradebook is changed.

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

Register for notifications of updated grades for the given grade system. GradeReceiver.changedGrades() is invoked when a Grade in this gradebook is changed.

Parametersosid.id.IdgradeSystemIdthe Id of the GradeSystem to monitor
ErrorsNULL_ARGUMENTgradeSystemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedGrade
Description

Register for notifications of an updated grade. GradeReceiver.changedGrades() is invoked when the specified Grade in this gradebook is changed.

Parametersosid.id.IdgradeIdthe Id of the Grade to monitor
ErrorsNULL_ARGUMENTgradeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedGrades
Description

Registers for notification of deleted grades. GradeReceiver.deletedGrades() is invoked when a grade is deleted or removed from this gradebook.

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

Register for notifications of deleted grades for the given grade system. GradeReceiver.deletedGrades() is invoked when a Grade in this gradebook is deleted or removed.

Parametersosid.id.IdgradeSystemIdthe Id of the GradeSystem to monitor
ErrorsNULL_ARGUMENTgradeSystemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedGrade
Description

Registers for notification of a deleted grade. GradeReceiver.deletedGrades() is invoked when the specified grade is deleted or removed from this gradebook.

Parametersosid.id.IdgradeIdthe Id of the Grade to monitor
ErrorsNULL_ARGUMENTgradeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.