public interface ParameterNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Configurations
and their properties. 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.
Two views are defined;
The methods federateParameterView()
and
isolateParameterView()
behave as a radio group and one should be
selected before invoking any lookup methods.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeParameterNotification(Id notificationId)
Acknowledge a parameter notification.
|
boolean |
canRegisterForParameterNotifications()
Tests if this user can register for
Parameter
notifications. |
Configuration |
getConfiguration()
Gets the
Configuration associated with this session. |
Id |
getConfigurationId()
Gets the
Configuration Id associated
with this session. |
void |
registerForChangedParameter(Id parameterId)
Assigns a callback for notifications of an update to a parameter.
|
void |
registerForChangedParameters()
Assigns a callback for notification of updated parameters.
|
void |
registerForDeletedParameter(Id parameterId)
Assigns a callback for notifications of a deleted parameter.
|
void |
registerForDeletedParameters()
Assigns a callback for notification of deleted parameters.
|
void |
registerForNewParameters()
Assigns a callback for notifications of new parameters.
|
void |
reliableParameterNotifications()
Reliable notifications are desired.
|
void |
unreliableParameterNotifications()
Unreliable notifications are desired.
|
void |
useFederatedConfigurationView()
Federates the view for methods in this session.
|
void |
useIsolatedConfigurationView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getConfigurationId()
Configuration
Id
associated
with this session. Configuration Id
associated with this
sessionmandatory
- This method must be implemented. Configuration getConfiguration() throws OperationFailedException, PermissionDeniedException
Configuration
associated with this session. Configuration
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForParameterNotifications()
Parameter
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 useFederatedConfigurationView()
mandatory
- This method is must be implemented. void useIsolatedConfigurationView()
mandatory
- This method is must be implemented. void reliableParameterNotifications()
acknowledgeParameterNotification()
.mandatory
- This method is must be implemented. void unreliableParameterNotifications()
mandatory
- This method is must be implemented. void acknowledgeParameterNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewParameters() throws OperationFailedException, PermissionDeniedException
ParameterReceiver.newParameters()
is invoked when a new
Parameter
is added to this configuration.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedParameters() throws OperationFailedException, PermissionDeniedException
ParameterReceiver.changedParameters()
is invoked when a
Parameter
is changed in this configuration.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedParameter(Id parameterId) throws OperationFailedException, PermissionDeniedException
ParamaterReceiver.changedParameters()
is invoked when
the specified Parameter
is changed in this
configuration.parameterId
- the Id
of the Parameter
to monitorNullArgumentException
- parameterId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedParameters() throws OperationFailedException, PermissionDeniedException
ParameterReceiver.deletedParamaters()
is invoked when a
Parameter
is deleted or removed from this configuration.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedParameter(Id parameterId) throws OperationFailedException, PermissionDeniedException
ParameterReceiver.deletedParameters()
is invoked when the
specified Parameter
is deleted or removed from this
configuration.parameterId
- the Id
of the Parameter
to monitorNullArgumentException
- parameterId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.