public interface ConfigurationNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Configurations.
Notrifications related to adding or
removing of parameters are handled through the
ValueNotificationSession.
This session is intended for adapters
and providers 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 |
acknowledgeConfigurationNotification(Id notificationId)
Acknowledge a configuration notification.
|
boolean |
canRegisterForConfigurationNotifications()
Tests if this user can register for
Configuration
notifications. |
void |
registerForChangedConfiguration(Id configurationId)
Registers for notifications of an update to a configuration.
|
void |
registerForChangedConfigurationHierarchy()
Registers for notification of an updated configuration hierarchy
structure.
|
void |
registerForChangedConfigurationHierarchyForAncestors(Id configurationId)
Registers for notification of an updated configuration hierarchy
structure.
|
void |
registerForChangedConfigurationHierarchyForDescendants(Id configurationId)
Registers for notification of an updated configuration hierarchy
structure.
|
void |
registerForChangedConfigurations()
Registers for notification of updated configurations.
|
void |
registerForDeletedConfiguration(Id configurationId)
Registers for notifications of a deleted configuration.
|
void |
registerForDeletedConfigurations()
Registers for notification of deleted configurations.
|
void |
registerForNewConfigurations()
Registers for notifications of new configurations.
|
void |
reliableConfigurationNotifications()
Reliable notifications are desired.
|
void |
unreliableConfigurationNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForConfigurationNotifications()
Configuration
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 reliableConfigurationNotifications()
acknowledgeConfigurationNotification()
.mandatory
- This method is must be implemented. void unreliableConfigurationNotifications()
mandatory
- This method is must be implemented. void acknowledgeConfigurationNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewConfigurations() throws OperationFailedException, PermissionDeniedException
ConfigurationReceiver.newConfigurations()
is invoked when a
new Configuration
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedConfigurations() throws OperationFailedException, PermissionDeniedException
ConfigurationReceiver.changedConfigurations()
is invoked when
a configuration is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedConfiguration(Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ConfigurationReceiver.changedConfigurations()
is invoked when
the specified Configuration
is changed.configurationId
- the Id
of the
Configuration
to monitorNotFoundException
- a Configuration
was
not found identified by the given Id
NullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedConfigurations() throws OperationFailedException, PermissionDeniedException
ConfigurationReceiver.deletedConfigurations()
is invoked when
a Configuration
is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedConfiguration(Id configurationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ConfiguratinReceiver.deletedConfigurations()
is invoked when
the specified configuration is deleted.configurationId
- the Id
of the
Configuration
to monitorNotFoundException
- a Configuration
was
not found identified by the given Id
NullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedConfigurationHierarchy() throws OperationFailedException, PermissionDeniedException
ConfigurationReceiver.changedChildOfConfigurations()
is invoked when a node experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedConfigurationHierarchyForAncestors(Id configurationId) throws OperationFailedException, PermissionDeniedException
ConfigurationReceiver.changedChildOfConfigurations()
is invoked when the specified node or any of its ancestors
experiences a change in its children.configurationId
- the Id
of the
Configuration
node to monitorNullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedConfigurationHierarchyForDescendants(Id configurationId) throws OperationFailedException, PermissionDeniedException
ConfigurationReceiver.changedChildOfConfigurations()
is invoked when the specified node or any of its descendants
experiences a change in its children.configurationId
- the Id
of the
Configuration
node to monitorNullArgumentException
- configurationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.