public interface IntersectionNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Intersection objects in this Map. This
also includes existing intersections 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
IntersectionLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForIntersectionNotifications()
Tests if this user can register for
Intersection
notifications. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
void |
registerForChangedIntersection(Id intersectionId)
Registers for notification of an updated intersection.
|
void |
registerForChangedIntersections()
Registers for notification of updated intersections.
|
void |
registerForChangedIntersectionsForPath(Id pathId)
Register for notifications of updated intersections for the given
path.
|
void |
registerForDeletedIntersection(Id intersectionId)
Registers for notification of a deleted intersection.
|
void |
registerForDeletedIntersections()
Registers for notification of deleted intersections.
|
void |
registerForDeletedIntersectionsForPath(Id pathId)
Register for notifications of deleted intersections for the given
path.
|
void |
registerForNewIntersections()
Register for notifications of new intersections.
|
void |
registerForNewIntersectionsForPath(Id pathId)
Register for notifications of new intersections for the given path.
|
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, supportsTransactionscloseId 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 canRegisterForIntersectionNotifications()
Intersection
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 registerForNewIntersections()
throws OperationFailedException,
PermissionDeniedException
IntersectionReceiver.newIntersections() is invoked when a new
Intersection appears in this map.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewIntersectionsForPath(Id pathId) throws OperationFailedException, PermissionDeniedException
IntersectionReceiver.newIntersections() is invoked when
a new Intersection appears in this map.pathId - the Id of the Path to
monitorNullArgumentException - pathId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedIntersections()
throws OperationFailedException,
PermissionDeniedException
IntersectionReceiver.changedIntersections() is invoked when an
intersection in this map is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedIntersectionsForPath(Id pathId) throws OperationFailedException, PermissionDeniedException
IntersectionReceiver.changedIntersections() is
invoked when an intersection is changed in this map.pathId - the Id of the Path to
monitorNullArgumentException - pathId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedIntersection(Id intersectionId) throws OperationFailedException, PermissionDeniedException
IntersectionReceiver.changedIntersections() is invoked when
the specified intersection in this map is changed.intersectionId - the Id of the
Intersection to monitorNullArgumentException - intersectionId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedIntersections()
throws OperationFailedException,
PermissionDeniedException
IntersectionReceiver.deletedIntersection() is invoked when an
intersection is deleted or removed from this map.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedIntersectionsForPath(Id pathId) throws OperationFailedException, PermissionDeniedException
IntersectionReceiver.deletedIntersections() is
invoked when an intersection is removed from this map.pathId - the Id of the Path to monitorNullArgumentException - pathId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedIntersection(Id intersectionId) throws OperationFailedException, PermissionDeniedException
IntersectionReceiver.deletedIntersections() is invoked when
the specified intersection is deleted or removed from this map.intersectionId - the Id of the
Intersection to monitorNullArgumentException - intersectionId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.