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 |
---|---|
boolean |
canRegisterForLogNotifications()
Tests if this user can register for
Log notifications. |
void |
registerForChangedLog(Id logId)
Registers for notification of an updated log.
|
void |
registerForChangedLogs()
Registers for notification of updated logs.
|
void |
registerForDeletedLog(Id logId)
Registers for notification of a deleted log.
|
void |
registerForDeletedLogAncestors(Id logId)
Registers for notification of an updated hierarchy structure that
removes an ancestor of the specified log.
|
void |
registerForDeletedLogDescendants(Id logId)
Registers for notification of an updated hierarchy structure that
removes a descendant of the specified log.
|
void |
registerForDeletedLogs()
Registers for notification of deleted logs.
|
void |
registerForNewLogAncestors(Id logId)
Registers for notification of an updated hierarchy structure that
introduces a new ancestor of the specified log.
|
void |
registerForNewLogDescendants(Id logId)
Registers for notification of an updated hierarchy structure that
introduces a new descendant of the specified log.
|
void |
registerForNewLogs()
Register for notifications of new logs.
|
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 registerForNewLogs() throws OperationFailedException, PermissionDeniedException
LogReceiver.newLog()
is invoked when a new Log
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewLogAncestors(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.newAncestorLog()
is invoked when the specified log
node gets a new ancestor.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 registerForNewLogDescendants(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.newDescendantLog()
is invoked when the specified
log node gets a new descendant.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 registerForChangedLogs() throws OperationFailedException, PermissionDeniedException
LogReceiver.changedLog()
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.changedLog()
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.deletedLog()
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.deletedLog()
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 registerForDeletedLogAncestors(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.deletedAncestor()
is invoked when the specified
log node loses an ancestor.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 registerForDeletedLogDescendants(Id logId) throws OperationFailedException, PermissionDeniedException
LogReceiver.deletedDescendant()
is invoked when the specified
log node loses a descendant.logId
- the Id
of the Log
node to
monitorNullArgumentException
- logId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.