public interface SystemNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to System
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.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeSystemNotification(Id notificationId)
Acknowledge a system notification.
|
boolean |
canRegisterForSystemNotifications()
Tests if this user can register for
System
notifications. |
void |
registerForChangedSystem(Id systemId)
Registers for notification of an updated system.
|
void |
registerForChangedSystemHierarchy()
Registers for notification of an updated system hierarchy structure.
|
void |
registerForChangedSystemHierarchyForAncestors(Id systemId)
Registers for notification of an updated system hierarchy structure.
|
void |
registerForChangedSystemHierarchyForDescendants(Id systemId)
Registers for notification of an updated system hierarchy structure.
|
void |
registerForChangedSystems()
Registers for notification of updated systems.
|
void |
registerForDeletedSystem(Id systemId)
Registers for notification of a deleted system.
|
void |
registerForDeletedSystems()
Registers for notification of deleted systems.
|
void |
registerForNewSystems()
Register for notifications of new systems.
|
void |
reliableSystemNotifications()
Reliable notifications are desired.
|
void |
unreliableSystemNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForSystemNotifications()
System
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 reliableSystemNotifications()
acknowledgeSystemNotification()
.mandatory
- This method is must be implemented. void unreliableSystemNotifications()
mandatory
- This method is must be implemented. void acknowledgeSystemNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewSystems() throws OperationFailedException, PermissionDeniedException
SystemReceiver.newSystems()
is invoked when a new
System
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSystems() throws OperationFailedException, PermissionDeniedException
SystemReceiver.changedSystems()
is invoked when a system is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSystem(Id systemId) throws OperationFailedException, PermissionDeniedException
SystemReceiver.changedSystems()
is invoked when the specified
system is changed.systemId
- the Id of the System
to monitorNullArgumentException
- systemId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSystems() throws OperationFailedException, PermissionDeniedException
SystemReceiver.deletedSystems()
is invoked when a system is
deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSystem(Id systemId) throws OperationFailedException, PermissionDeniedException
SystemReceiver.deletedSystems()
is invoked when the specified
system is deleted.systemId
- the Id
of the System
to
monitorNullArgumentException
- systemId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSystemHierarchy() throws OperationFailedException, PermissionDeniedException
SystemReceiver.changedChildOfSystems()
is invoked when
a node experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSystemHierarchyForAncestors(Id systemId) throws OperationFailedException, PermissionDeniedException
SystemReceiver.changedChildOfSystems()
is invoked when
the specified node or any of its ancestors experiences a change in its
children.systemId
- the Id
of the System
node to monitorNullArgumentException
- systemId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSystemHierarchyForDescendants(Id systemId) throws OperationFailedException, PermissionDeniedException
SystemReceiver.changedChildOfSystems()
is invoked when
the specified node or any of its descendants experiences a change in
its children.systemId
- the Id
of the System
node to monitorNullArgumentException
- systemId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.