public interface DeviceEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to DeviceEnabler objects in this System.
This also includes existing DeviceEnablers 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
DeviceEnablerLookupSession.
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeDeviceEnablerNotification(Id notificationId)
Acknowledge a device enabler notification.
|
boolean |
canRegisterForDeviceEnablerNotifications()
Tests if this user can register for
DeviceEnabler
notifications. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
registerForChangedDeviceEnabler(Id deviceEnablerId)
Registers for notification of an updated device enabler.
|
void |
registerForChangedDeviceEnablers()
Registers for notification of updated device enablers.
|
void |
registerForDeletedDeviceEnabler(Id deviceEnablerId)
Registers for notification of a deleted device enabler.
|
void |
registerForDeletedDeviceEnablers()
Registers for notification of deleted device enablers.
|
void |
registerForNewDeviceEnablers()
Register for notifications of new device enablers.
|
void |
reliableDeviceEnablerNotifications()
Reliable notifications are desired.
|
void |
unreliableDeviceEnablerNotifications()
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 canRegisterForDeviceEnablerNotifications()
DeviceEnabler
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 reliableDeviceEnablerNotifications()
acknowledgeDeviceEnablerNotification() .mandatory - This method is must be implemented. void unreliableDeviceEnablerNotifications()
mandatory - This method is must be implemented. void acknowledgeDeviceEnablerNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId - the Id of the notificationOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewDeviceEnablers()
throws OperationFailedException,
PermissionDeniedException
DeviceEnablerReceiver.newDeviceEnablers() is invoked when a
new DeviceEnabler appears in this system.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedDeviceEnablers()
throws OperationFailedException,
PermissionDeniedException
DeviceEnablerReceiver.changedDeviceEnablers() is invoked when
a device enabler in this system is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedDeviceEnabler(Id deviceEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedDeviceEnablers() is invoked when
the specified device enabler in this system is changed.deviceEnablerId - the Id of the
DeviceEnabler to monitorNullArgumentException - deviceEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedDeviceEnablers()
throws OperationFailedException,
PermissionDeniedException
DeviceEnablerReceiver.deletedDeviceEnablers() is invoked when
a device enabler is deleted or removed from this system.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedDeviceEnabler(Id deviceEnablerId) throws OperationFailedException, PermissionDeniedException
DeviceEnablerReceiver.deletedDeviceEnablers() is invoked when
the specified device enabler is deleted or removed from this system.deviceEnablerId - the Id of the
DeviceEnabler to monitorNullArgumentException - deviceEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.