public interface ObstacleEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to ObstacleEnabler
objects in this Map.
This
also includes existing ObstacleEnablers
that may appear or
disappear due to changes in the Map
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
ObstacleEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForObstacleEnablerNotifications()
Tests if this user can register for
ObstacleEnabler
notifications. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
void |
registerForChangedObstacleEnabler(Id obstacleEnablerId)
Registers for notification of an updated obstacle enabler.
|
void |
registerForChangedObstacleEnablers()
Registers for notification of updated map.
|
void |
registerForDeletedObstacleEnabler(Id obstacleEnablerId)
Registers for notification of a deleted obstacle enabler.
|
void |
registerForDeletedObstacleEnablers()
Registers for notification of deleted obstacle enablers.
|
void |
registerForNewObstacleEnablers()
Register for notifications of new obstacle enablers.
|
void |
useFederatedMapView()
Federates the view for methods in this session.
|
void |
useIsolatedMapView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getMapId()
Map
Id
associated with this
session. Map Id
associated with this sessionmandatory
- This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForObstacleEnablerNotifications()
ObstacleEnabler
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 useFederatedMapView()
mandatory
- This method is must be implemented. void useIsolatedMapView()
mandatory
- This method is must be implemented. void registerForNewObstacleEnablers() throws OperationFailedException, PermissionDeniedException
ObstacleEnablerReceiver.newObstacleEnablers()
is invoked when
a new ObstacleEnabler
appears in this map.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedObstacleEnablers() throws OperationFailedException, PermissionDeniedException
ObstacleEnablerReceiver.changedObstacleEnablers()
is invoked
when an obstacle enabler in this map is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedObstacleEnabler(Id obstacleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedObstacleEnablers()
is invoked
when the specified obstacle enabler in this map is changed.obstacleEnablerId
- the Id
of the
ObstacleEnabler
to monitorNotFoundException
- an obstacle enabler was not found
in this broker matchmaker identified by the given Id
NullArgumentException
- obstacleEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedObstacleEnablers() throws OperationFailedException, PermissionDeniedException
ObstacleEnablerReceiver.deletedObstacleEnablers()
is invoked
when an obstacle enabler is deleted or removed from this map.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedObstacleEnabler(Id obstacleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ObstacleEnablerReceiver.deletedObstacleEnablers()
is invoked
when the specified obstacle enabler is deleted or removed from this
map.obstacleEnablerId
- the Id
of the
ObstacleEnabler
to monitorNotFoundException
- an obstacle enabler was not found
in this broker matchmaker identified by the given Id
NullArgumentException
- obstacleEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.