public interface LogNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Log
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 Log
object itself. Adding and removing entries result in notifications
available from the notification session for log entries.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeLogNotification(Id notificationId)
Acknowledge a log notification.
|
boolean |
canRegisterForLogNotifications()
Tests if this user can register for
Log notifications. |
void |
registerForChangedLog(Id logId)
Registers for notification of an updated log.
|
void |
registerForChangedLogHierarchy()
Registers for notification of an updated log hierarchy structure.
|
void |
registerForChangedLogHierarchyForAncestors(Id logId)
Log
Receiver.changedChildOfLogs() is invoked when the
specified node or any of its ancestors experiences a change in its
children. |
void |
registerForChangedLogHierarchyForDescendants(Id logId)
Registers for notification of an updated log hierarchy structure.
|
void |
registerForChangedLogs()
Registers for notification of updated logs.
|
void |
registerForDeletedLog(Id logId)
Registers for notification of a deleted log.
|
void |
registerForDeletedLogs()
Registers for notification of deleted logs.
|
void |
registerForNewLogs()
Register for notifications of new logs.
|
void |
reliableLogNotifications()
Reliable notifications are desired.
|
void |
unreliableLogNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForLogNotifications()
Log
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 reliableLogNotifications()
acknowledgeLogNotification()
.mandatory
- This method is must be implemented. void unreliableLogNotifications()
mandatory
- This method is must be implemented. void acknowledgeLogNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewLogs() throws OperationFailedException, PermissionDeniedException
LogReceiver.newLogs()
is invoked when a new Log
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLogs() throws OperationFailedException, PermissionDeniedException
LogReceiver.changedLogs()
is invoked when a log is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLog(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.changedLogs()
is invoked when the specified log is
changed.logId
- the Id
of the Log
to
monitorNullArgumentException
- logId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedLogs() throws OperationFailedException, PermissionDeniedException
LogReceiver.deletedLogs()
is invoked when a log is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedLog(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.deletedLogs()
is invoked when the specified log is
deleted.logId
- the Id
of the Log
to
monitorNullArgumentException
- logId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLogHierarchy() throws OperationFailedException, PermissionDeniedException
LogReceiver.changedChildOfLogs()
is invoked when a node
experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLogHierarchyForAncestors(Id logId) throws OperationFailedException, PermissionDeniedException
Receiver.changedChildOfLogs()
is invoked when the
specified node or any of its ancestors experiences a change in its
children.logId
- the Id
of the Log
node to
monitorNullArgumentException
- logId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLogHierarchyForDescendants(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.changedChildOfLogs()
is invoked when the
specified node or any of its descendants experiences a change in its
children.logId
- the Id
of the Log
node to
monitorNullArgumentException
- logId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.