OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.RouteNotificationSession
Implementsosid.OsidSession
Used Byosid.mapping.route.MappingRouteManager
osid.mapping.route.MappingRouteProxyManager
Description

This session defines methods to receive notifications on adds/changes to Routes 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.Id the Map Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Map the map
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedMapView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableRouteNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableRouteNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeRouteNotification
Description

Acknowledge a route notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdstartingLocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT startingLocationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdendingLocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT endingLocationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdlocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdstartingLocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT startingLocationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdendingLocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT endingLocationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdlocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdrouteId the Id of the Route to monitor
ErrorsNULL_ARGUMENT routeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdstartingLocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT startingLocationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdendingLocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT endingLocationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdlocationId the Id of the Location to monitor
ErrorsNULL_ARGUMENT locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdrouteId the Id of the Route to monitor
ErrorsNULL_ARGUMENT routeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.