Interface AcknowledgementNotificationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface AcknowledgementNotificationSession extends OsidSession

This session defines methods to receive notifications on adds/changes to Inquiries in this Inquest for resources related to the authenticated agent. This also includes existing inquiries that may appear or disappear due to changes in the Inquest 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.

  • Method Details

    • getInquestId

      Id getInquestId()
      Gets the Inquest Id associated with this session.
      Returns:
      the Inquest Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getInquest

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

      boolean canRegisterForInquiryNotifications()
      Tests if this user can register for Inquiry 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.
    • registerForNewInquiries

      void registerForNewInquiries() throws OperationFailedException, PermissionDeniedException
      Register for notifications of new inquiries needing responses for resources related to the authenticated agent. InquiryReceiver.newInquiries() is invoked when a new Inquiry appears in this inquest.
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • registerForNewInquiriesToAcknowledge

      void registerForNewInquiriesToAcknowledge(Id auditId) throws OperationFailedException, PermissionDeniedException
      Register for notifications of new inquiries needing responses for the given audit Id for resources related to the authenticated agent. InquiryReceiver.newInquiries() is invoked when a new Inquiry needs a response.
      Parameters:
      auditId - the Id of the audit to monitor
      Throws:
      NullArgumentException - auditId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.