Interface AcknowledgementNotificationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can register forInquirynotifications.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidRegister for notifications of new inquiries needing responses for resources related to the authenticated agent.voidregisterForNewInquiriesToAcknowledge(Id auditId) Register for notifications of new inquiries needing responses for the given auditIdfor resources related to the authenticated agent.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getInquestId
Id getInquestId()Gets theInquestIdassociated with this session.- Returns:
- the
Inquest Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getInquest
Gets theInquestassociated with this session.- Returns:
- the inquest
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canRegisterForInquiryNotifications
boolean canRegisterForInquiryNotifications()Tests if this user can register forInquirynotifications. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.- Returns:
falseif notification methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
registerForNewInquiries
Register for notifications of new inquiries needing responses for resources related to the authenticated agent.InquiryReceiver.newInquiries()is invoked when a newInquiryappears in this inquest.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- 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 auditIdfor resources related to the authenticated agent.InquiryReceiver.newInquiries()is invoked when a newInquiryneeds a response.- Parameters:
auditId- theIdof the audit to monitor- Throws:
NullArgumentException-auditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-