public interface SettingNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Setting
objects in this dDstributor.
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.
The two views defined in this session correspond to the views in the
SettingLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForSettingNotifications()
Tests if this user can register for
Setting
notifications. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
registerForChangedSetting(Id settingId)
Registers for notification of an updated setting.
|
void |
registerForChangedSettings()
Registers for notification of updated settings.
|
void |
registerForChangedSettingsForController(Id controllerId)
Registers for notification of updated settings for the given
controller.
|
void |
registerForDeletedSetting(Id settingId)
Registers for notification of a deleted setting.
|
void |
registerForDeletedSettings()
Registers for notification of deleted settings.
|
void |
registerForDeletedSettingsForController(Id controllerId)
Registers for notification of deleted settings for the given
controller.
|
void |
registerForNewSettings()
Register for notifications of new settings.
|
void |
registerForNewSettingsForController(Id controllerId)
Register for notifications of new settings for the given controller.
|
void |
useFederatedSystemView()
Federates the view for methods in this session.
|
void |
useIsolatedSystemView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getSystemId()
System
Id
associated with this
session. System Id
associated with this sessionmandatory
- This method must be implemented. System getSystem() throws OperationFailedException, PermissionDeniedException
System
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForSettingNotifications()
Setting
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 useFederatedSystemView()
mandatory
- This method is must be implemented. void useIsolatedSystemView()
mandatory
- This method is must be implemented. void registerForNewSettings() throws OperationFailedException, PermissionDeniedException
SettingReceiver.newSetting()
is invoked when a new
Setting
appears in this system.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewSettingsForController(Id controllerId) throws OperationFailedException, PermissionDeniedException
SettingReceiver.newSetting()
is invoked when a new
Setting
appears in this system.controllerId
- the Id
of the controller to
monitorNullArgumentException
- controllerId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSettings() throws OperationFailedException, PermissionDeniedException
SettingReceiver.changedSetting()
is invoked when a setting in
this system is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSettingsForController(Id controllerId) throws OperationFailedException, PermissionDeniedException
SettingReceiver.changedSetting()
is invoked
when a setting in this system is changed.controllerId
- the Id
of the controller to
monitorNullArgumentException
- controllerId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSetting(Id settingId) throws OperationFailedException, PermissionDeniedException
SettingReceiver.changedSetting()
is invoked when the specified
setting in this system is changed.settingId
- the Id
of the Setting
to monitorNullArgumentException
- settingId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSettings() throws OperationFailedException, PermissionDeniedException
SettingReceiver.deletedSetting()
is invoked when a setting is
deleted or removed from this system.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSettingsForController(Id controllerId) throws OperationFailedException, PermissionDeniedException
SettingReceiver.deletedSetting()
is invoked
when a setting is deleted or removed from this system.controllerId
- the Id
of the controller to
monitorNullArgumentException
- controllerId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSetting(Id settingId) throws OperationFailedException, PermissionDeniedException
SettingReceiver.deletedSetting()
is invoked when the specified
setting is deleted or removed from this system.settingId
- the Id
of the Setting
to monitorNullArgumentException
- settingId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.