public interface SpeedZoneEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to SpeedZoneEnabler
objects in this Map.
This also includes existing SpeedZoneEnablers
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
SpeedZoneEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForSpeedZoneEnablerNotifications()
Tests if this user can register for
SpeedZoneEnabler
notifications. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
void |
registerForChangedSpeedZoneEnabler(Id speedZoneEnablerId)
Registers for notification of an updated speed zone enabler.
|
void |
registerForChangedSpeedZoneEnablers()
Registers for notification of updated map enabelrs.
|
void |
registerForDeletedSpeedZoneEnabler(Id speedZoneEnablerId)
Registers for notification of a deleted speed zone enabler.
|
void |
registerForDeletedSpeedZoneEnablers()
Registers for notification of deleted speed zone enablers.
|
void |
registerForNewSpeedZoneEnablers()
Register for notifications of new speed zone 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 canRegisterForSpeedZoneEnablerNotifications()
SpeedZoneEnabler
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 registerForNewSpeedZoneEnablers() throws OperationFailedException, PermissionDeniedException
SpeedZoneEnablerReceiver.newSpeedZoneEnabler()
is invoked when
a new SpeedZoneEnabler
appears in this map.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSpeedZoneEnablers() throws OperationFailedException, PermissionDeniedException
SpeedZoneEnablerReceiver.changedSpeedZoneEnabler()
is invoked
when a speed zone enabler in this map is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedSpeedZoneEnabler(Id speedZoneEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedSpeedZoneEnabler()
is invoked
when the specified speed zone enabler in this map is changed.speedZoneEnablerId
- the Id
of the
SpeedZoneEnabler
to monitorNotFoundException
- a speed zone enabler was not found
in this speed zone matchmaker identified by the given
Id
NullArgumentException
- speedZoneEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSpeedZoneEnablers() throws OperationFailedException, PermissionDeniedException
SpeedZoneEnablerReceiver.deletedSpeedZoneEnabler()
is invoked
when a speed zone enabler is deleted or removed from this map.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedSpeedZoneEnabler(Id speedZoneEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SpeedZoneEnablerReceiver.deletedSpeedZoneEnabler()
is invoked
when the specified speed zone enabler is deleted or removed from this
map.speedZoneEnablerId
- the Id
of the
SpeedZoneEnabler
to monitorNotFoundException
- a speed zone enabler was not found
in this speed zone matchmaker identified by the given
Id
NullArgumentException
- speedZoneEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.