Interface GradeSystemTransformNotificationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface GradeSystemTransformNotificationSession extends OsidSession

This session defines methods to receive notifications on adds/changes to GradeSystems and the Grades defined within.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.

  • Method Details

    • getGradebookId

      Id getGradebookId()
      Gets the Gradebook Id associated with this session.
      Returns:
      the Gradebook Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getGradebook

      Gets the Gradebook associated with this session.
      Returns:
      the Gradebook associated with this session
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canRegisterForGradeSystemTransformNotifications

      boolean canRegisterForGradeSystemTransformNotifications()
      Tests if this user can register for GradeSystemTransform 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.
      Returns:
      false if notification methods are not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • useFederatedGradebookView

      void useFederatedGradebookView()
      Federates the view for methods in this session. A federated view will include notifications for grade system transforms in gradebooks which are children of this gradebook in the gradebook hierarchy.
      Compliance:
      mandatory - This method is must be implemented.
    • useIsolatedGradebookView

      void useIsolatedGradebookView()
      Isolates the view for methods in this session. An isolated view restricts notifications to this gradebook only.
      Compliance:
      mandatory - This method is must be implemented.
    • acknowledgeGradeSystemTransformNotification

      void acknowledgeGradeSystemTransformNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
      Acknowledge a grade system transform notification.
      Parameters:
      notificationId - the Id of the notification
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • registerForNewGradeSystemTransforms

      void registerForNewGradeSystemTransforms() throws OperationFailedException, PermissionDeniedException
      Register for notifications of new grade system transforms. GradeSystemTransformReceiver.newGradeSystemTransforms() is invoked when a new GradeSystemTransform is created.
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • registerForChangedGradeSystemTransforms

      void registerForChangedGradeSystemTransforms() throws OperationFailedException, PermissionDeniedException
      Registers for notification of updated grade system transforms. GradeSystemTransformReceiver.changedGradeSystemTransforms() is invoked when a transform is changed.
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • registerForChangedGradeSystemTransform

      void registerForChangedGradeSystemTransform(Id gradeSystemTransformId) throws OperationFailedException, PermissionDeniedException
      Registers for notification of an updated grade system transform. GradeSystemTransformReceiver.changedGradeSystemTransforms() is invoked when the specified grade system transform is changed.
      Parameters:
      gradeSystemTransformId - the Id of the grade system transform to monitor
      Throws:
      NullArgumentException - gradeSystemTransformId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • registerForDeletedGradeSystemTransforms

      void registerForDeletedGradeSystemTransforms() throws OperationFailedException, PermissionDeniedException
      Registers for notification of deleted grade system transforms. GradeSystemTransformReceiver.deletedGradeSystemTransforms() is invoked when a grade system transform is removed from this gradebook.
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • registerForDeletedGradeSystemTransform

      void registerForDeletedGradeSystemTransform(Id gradeSystemTransformId) throws OperationFailedException, PermissionDeniedException
      Registers for notification of a deleted grade system transform. GradeSystemTransformReceiver.deletedGradeSystemTransforms() is invoked when the specified system transform is removed from this gradebook.
      Parameters:
      gradeSystemTransformId - the Id of the grade system transform to monitor
      Throws:
      NullArgumentException - gradeSystemTransformId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.