OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradebookColumnNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive asynchronous notifications on adds/changes to GradebookColumn objects. 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 views defined in this session correspond to the views in the GradebookColumnLookupSession.

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 associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForGradebookColumnNotifications
Description

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

Federates the view for methods in this session. A federated view will include notifications for gradebook columns 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.
MethodregisterForNewGradebookColumns
Description

Register for notifications of new gradebook columns. GradebookColumnReceiver.newGradebookColumns() is invoked when a new column is created.

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

Registers for notification of updated gradebook columns. GradebookColumnReceiver.changedGradebookColumns() is invoked when a gradebook column is changed.

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

Registers for notification of an updated gradebook column. GradebookColumnReceiver.changedGradebookColumns() is invoked when the specified gradebook column is changed.

Parametersosid.id.IdgradebookColumnIdthe Id of the GradebookColumn to monitor
ErrorsNULL_ARGUMENT gradebookColumnId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedGradebookColumns
Description

Registers for notification of deleted gradebook columns. GradebookColumnReceiver.deletedGradebookColumns() is invoked when a gradebook column is removed from this gradebook.

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

Registers for notification of a deleted gradebook column. GradebookColumnReceiver.deletedGradebookColumns() is invoked when the specified column is removed from thia gradebook.

Parametersosid.id.IdgradebookColumnIdthe Id of the GradebookColumn to monitor
ErrorsNULL_ARGUMENT gradebookColumnId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.