OSID Logo
OSID Specifications
mapping route package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.route.RouteNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Route objects in this Map. This also includes existing routes 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 RouteLookupSession.

MethodgetMapId
Description

Gets the Map Id associated with this session.

Returnosid.id.Idthe Map Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Mapthe map
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForRouteNotifications
Description

Tests if this user can register for Route 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.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedMapView
Description

Federates the view for methods in this session. A federated view will include routes in maps which are children of this map in the map hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedMapView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this map only.

CompliancemandatoryThis method is must be implemented.
MethodreliableRouteNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeRouteNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableRouteNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeRouteNotification
Description

Acknowledge a route notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRoutes
Description

Register for notifications of new routes. RouteReceiver.newRoutes() is invoked when a new Route appears in this map.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRoutesForStartingLocation
Description

Register for notifications of new routes for the given starting location. RouteReceiver.newRoutes() is invoked when a new Route appears in this map.

Parametersosid.id.IdstartingLocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT startingLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRoutesForEndingLocation
Description

Register for notifications of new routes for the given ending location. RouteReceiver.newRoutes() is invoked when a new Route appears in this map.

Parametersosid.id.IdendingLocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT endingLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRoutesThroughLocation
Description

Register for notifications of new routes through the given location. RouteReceiver.newRoutes() is invoked when a new Route appears in this map.

Parametersosid.id.IdlocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT locationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoutes
Description

Registers for notification of updated routes. RouteReceiver.changedRoutes() is invoked when a route in this map is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoutesForStartingLocation
Description

Register for notifications of updated routes for the given starting location. RouteReceiver.updatedRoutes() is invoked when a route is changed in this map.

Parametersosid.id.IdstartingLocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT startingLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoutesForEndingLocation
Description

Register for notifications of updated routes for the given ending location. RouteReceiver.changedRoutes() is invoked when a route is changed in this map.

Parametersosid.id.IdendingLocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT endingLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoutesThroughLocation
Description

Register for notifications of updated routes through the given location. RouteReceiver.changedRoutes() is invoked when a route is changed in this map.

Parametersosid.id.IdlocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT locationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRoute
Description

Registers for notification of an updated route. RouteReceiver.changedRoutes() is invoked when the specified route in this map is changed.

Parametersosid.id.IdrouteIdthe Id of the Route to monitor
ErrorsNULL_ARGUMENT routeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoutes
Description

Registers for notification of deleted routes. RouteReceiver.deletedRoutes() is invoked when a route is deleted or removed from this map.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoutesForStartingLocation
Description

Register for notifications of deleted routes for the given starting location. RouteReceiver.deletedRoutes() is invoked when a route is removed from this map.

Parametersosid.id.IdstartingLocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT startingLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoutesForEndingLocation
Description

Register for notifications of deleted routes for the given ending location. RouteReceiver.deletedRoutes() is invoked when a route is removed from this map.

Parametersosid.id.IdendingLocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT endingLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoutesThroughLocation
Description

Register for notifications of deleted routes through the given location. RouteReceiver.deletedRoutes() is invoked when a route is removed from this map.

Parametersosid.id.IdlocationIdthe Id of the Location to monitor
ErrorsNULL_ARGUMENT locationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRoute
Description

Registers for notification of a deleted route. RouteReceiver.deletedRoutes() is invoked when the specified route is deleted or removed from this map.

Parametersosid.id.IdrouteIdthe Id of the Route to monitor
ErrorsNULL_ARGUMENT routeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.