public interface ChecklistNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Checklist
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.
Notifications are triggered with changes to the Checklist
object itself. Adding and removing todos result in notifications
available from the notification session for todos.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeChecklistNotification(Id notificationId)
Acknowledge a checklist notification.
|
boolean |
canRegisterForChecklistNotifications()
Tests if this user can register for
Checklist
notifications. |
void |
registerForChangedChecklist(Id checklistId)
Registers for notification of an updated checklist.
|
void |
registerForChangedChecklistHierarchy()
Registers for notification of an updated checklist hierarchy
structure.
|
void |
registerForChangedChecklistHierarchyForAncestors(Id checklistId)
ChecklistReceiver.changedChildOfChecklists() is invoked
when the specified node or any of its ancestors experiences a change
in its children. |
void |
registerForChangedChecklistHierarchyForDescendants(Id checklistId)
Registers for notification of an updated checklist hierarchy
structure.
|
void |
registerForChangedChecklists()
Registers for notification of updated checklists.
|
void |
registerForDeletedChecklist(Id checklistId)
Registers for notification of a deleted checklist.
|
void |
registerForDeletedChecklists()
Registers for notification of deleted checklists.
|
void |
registerForNewChecklists()
Register for notifications of new checklists.
|
void |
reliableChecklistNotifications()
Reliable notifications are desired.
|
void |
unreliableChecklistNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForChecklistNotifications()
Checklist
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 reliableChecklistNotifications()
acknowledgeChecklistNotification()
.mandatory
- This method is must be implemented. void unreliableChecklistNotifications()
mandatory
- This method is must be implemented. void acknowledgeChecklistNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewChecklists() throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.newChecklists()
is invoked when a new
Checklist
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedChecklists() throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.changedChecklists()
is invoked when a
checklist is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedChecklist(Id checklistId) throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.changedChecklists()
is invoked when the
specified checklist is changed.checklistId
- the Id
of the Checklist
to monitorNullArgumentException
- checklistId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedChecklists() throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.deletedChecklists()
is invoked when a
checklist is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedChecklist(Id checklistId) throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.deletedChecklists()
is invoked when the
specified checklist is deleted.checklistId
- the Id
of the Checklist
to monitorNullArgumentException
- checklistId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedChecklistHierarchy() throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.changedChildOfChecklists()
is invoked when a node experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedChecklistHierarchyForAncestors(Id checklistId) throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.changedChildOfChecklists()
is invoked
when the specified node or any of its ancestors experiences a change
in its children.checklistId
- the Id
of the Checklist
node to monitorNullArgumentException
- checklistId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedChecklistHierarchyForDescendants(Id checklistId) throws OperationFailedException, PermissionDeniedException
ChecklistReceiver.changedChildOfChecklists()
is invoked when the specified node or any of its descendants
experiences a change in its children.checklistId
- the Id
of the Checklist
node to monitorNullArgumentException
- checklistId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.