public interface InputNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Input objects in this System. This also
includes existing inputs that may appear or disappear due to changes in
the System hierarchy, 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
InputLookupSession.
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeInputNotification(Id notificationId)
Acknowledge an input notification.
|
boolean |
canRegisterForInputNotifications()
Tests if this user can register for
Input
notifications. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
registerForChangedInput(Id inputId)
Registers for notification of an updated input.
|
void |
registerForChangedInputs()
Registers for notification of updated inputs.
|
void |
registerForChangedInputsForController(Id controllerId)
Register for notifications of updated inputs for the given controller
Id. |
void |
registerForChangedInputsForDevice(Id deviceId)
Register for notifications of updated inputs for the given device
Id. |
void |
registerForDeletedInput(Id inputId)
Registers for notification of a deleted input.
|
void |
registerForDeletedInputs()
Registers for notification of deleted inputs.
|
void |
registerForDeletedInputsForController(Id controllerId)
Register for notifications of deleted inputs for the given controller
Id. |
void |
registerForDeletedInputsForDevice(Id deviceId)
Register for notifications of deleted inputs for the given device
Id. |
void |
registerForNewInputs()
Register for notifications of new inputs.
|
void |
registerForNewInputsForController(Id controllerId)
Register for notifications of new inputs for the given controller
Id. |
void |
registerForNewInputsForDevice(Id deviceId)
Register for notifications of new inputs for the given device
Id. |
void |
reliableInputNotifications()
Reliable notifications are desired.
|
void |
unreliableInputNotifications()
Unreliable notifications are desired.
|
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, supportsTransactionscloseId 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 canRegisterForInputNotifications()
Input
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 reliableInputNotifications()
acknowledgeInputNotification()
.mandatory - This method is must be implemented. void unreliableInputNotifications()
mandatory - This method is must be implemented. void acknowledgeInputNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId - the Id of the notificationOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewInputs()
throws OperationFailedException,
PermissionDeniedException
InputReceiver.newInputs() is invoked when a new Input
appears in this system.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewInputsForDevice(Id deviceId) throws OperationFailedException, PermissionDeniedException
Id. InputReceiver.newInputs() is invoked when a
new Input is created.deviceId - the Id of the device to monitorNullArgumentException - deviceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewInputsForController(Id controllerId) throws OperationFailedException, PermissionDeniedException
Id. InputReceiver.newInputs() is invoked
when a new Input is created.controllerId - the Id of the controller to
monitorNullArgumentException - controllerId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedInputs()
throws OperationFailedException,
PermissionDeniedException
InputReceiver.changedInputs() is invoked when an input in this
system is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedInputsForDevice(Id deviceId) throws OperationFailedException, PermissionDeniedException
Id. InputReceiver.changedInputs() is
invoked when an input in this system is changed.deviceId - the Id of the device to monitorNullArgumentException - deviceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedInputsForController(Id controllerId) throws OperationFailedException, PermissionDeniedException
Id. InputReceiver.changedInputs() is
invoked when an input 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 registerForChangedInput(Id inputId) throws OperationFailedException, PermissionDeniedException
InputReceiver.changedInput() is invoked when the specified
input in this system is changed.inputId - the Id of the Input to
monitorNullArgumentException - inputId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInputs()
throws OperationFailedException,
PermissionDeniedException
InputReceiver.deletedInputs() is invoked when an input is
deleted or removed from this system.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInputsForDevice(Id deviceId) throws OperationFailedException, PermissionDeniedException
Id. InputReceiver.deletedInputs() is
invoked when an input in this system is removed or deleted.deviceId - the Id of the device to monitorNullArgumentException - deviceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInputsForController(Id controllerId) throws OperationFailedException, PermissionDeniedException
Id. InputReceiver.deletedInputs() is
invoked when an input in this system is removed or deleted.controllerId - the Id of the controller to
monitorNullArgumentException - controllerId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedInput(Id inputId) throws OperationFailedException, PermissionDeniedException
InputReceiver.deletedInputs() is invoked when the specified
input is deleted or removed from this system.inputId - the Id of the Input to
monitorNullArgumentException - inputId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.