public interface InquiryNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Inquiry objects in this Inquest. 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.
The two views defined in this session correspond to the views in the
InquiryLookupSession.
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeInquiryNotification(Id notificationId)
Acknowledge an inquiry notification.
|
boolean |
canRegisterForInquiryNotifications()
Tests if this user can register for
Inquiry
notifications. |
Inquest |
getInquest()
Gets the
Inquest associated with this session. |
Id |
getInquestId()
Gets the
Inquest Id associated with this
session. |
void |
registerForChangedInquiries()
Registers for notification of updated inquiries.
|
void |
registerForChangedInquiriesForAudit(Id auditId)
Register for notifications of updated inquiries for the given audit
Id. |
void |
registerForChangedInquiry(Id inquiryId)
Registers for notification of an updated inquiry.
|
void |
registerForDeletedInquiries()
Registers for notification of deleted inquiries.
|
void |
registerForDeletedInquiriesForAudit(Id auditId)
Register for notifications of deleted inquiries for the given audit
Id. |
void |
registerForDeletedInquiry(Id inquiryId)
Registers for notification of a deleted inquiry.
|
void |
registerForNewInquiries()
Register for notifications of new inquiries.
|
void |
registerForNewInquiriesForAudit(Id auditId)
Register for notifications of new inquiries for the given audit
Id. |
void |
reliableInquiryNotifications()
Reliable notifications are desired.
|
void |
unreliableInquiryNotifications()
Unreliable notifications are desired.
|
void |
useFederatedInquestView()
Federates the view for methods in this session.
|
void |
useIsolatedInquestView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getInquestId()
Inquest Id associated with this
session. Inquest Id associated with this sessionmandatory - This method must be implemented. Inquest getInquest() throws OperationFailedException, PermissionDeniedException
Inquest associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canRegisterForInquiryNotifications()
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. false if notification methods are not
authorized, true otherwisemandatory - This method must be implemented. void useFederatedInquestView()
mandatory - This method is must be implemented. void useIsolatedInquestView()
mandatory - This method is must be implemented. void reliableInquiryNotifications()
acknowledgeInquiryNotification()
.mandatory - This method is must be implemented. void unreliableInquiryNotifications()
mandatory - This method is must be implemented. void acknowledgeInquiryNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId - the Id of the notificationOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewInquiries()
throws OperationFailedException,
PermissionDeniedException
InquiryReceiver.newInquiries() is invoked when a new
Inquiry appears in this inquest.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewInquiriesForAudit(Id auditId) throws OperationFailedException, PermissionDeniedException
Id. InquiryReceiver.newInquiries() is invoked
when a new Inquiry is created.auditId - the Id of the audit to monitorNullArgumentException - auditId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedInquiries()
throws OperationFailedException,
PermissionDeniedException
InquiryReceiver.changedInquiries() is invoked when an inquiry
in this inquest is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedInquiriesForAudit(Id auditId) throws OperationFailedException, PermissionDeniedException
Id. InquiryReceiver.changedInquiries()
is invoked when an inquiry in this inquest is changed.auditId - the Id of the audit to monitorNullArgumentException - auditId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedInquiry(Id inquiryId) throws OperationFailedException, PermissionDeniedException
InquiryReceiver.changedInquiries() is invoked when the
specified inquiry in this inquest is changed.inquiryId - the Id of the Inquiry
to monitorNullArgumentException - inquiryId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInquiries()
throws OperationFailedException,
PermissionDeniedException
InquiryReceiver.deletedInquiries() is invoked when an inquiry
is deleted or removed from this inquest.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInquiriesForAudit(Id auditId) throws OperationFailedException, PermissionDeniedException
Id. InquiryReceiver.deletedInquiries()
is invoked when an inquiry in this inquest is removed or deleted.auditId - the Id of the audit to monitorNullArgumentException - auditId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInquiry(Id inquiryId) throws OperationFailedException, PermissionDeniedException
InquiryReceiver.deletedInquiries() is invoked when the
specified inquiry is deleted or removed from this inquest.inquiryId - the Id of the Inquiry
to monitorNullArgumentException - inquiryId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.