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

This session provides methods to re-assign Routes to Maps. A Route may appear in multiple Maps and removing the last reference to a Route is the equivalent of deleting it. Each Map may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Route to another Map is not a copy operation (eg: does not change its Id).

MethodcanAssignRoutes
Description

Tests if this user can alter route/map mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known location 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 assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignRoutesToMap
Description

Tests if this user can alter route/map mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known location 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 assignment operations to unauthorized users.

Parametersosid.id.IdmapId the Id of the Map
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT mapId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableMapIds
Description

Gets a list of maps including and under the given map node in which any route can be assigned.

Parametersosid.id.IdmapId the Id of the Map
Returnosid.id.IdList list of assignable map Ids
ErrorsNULL_ARGUMENT mapId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableMapIdsForRoute
Description

Gets a list of maps including and under the given map node in which a specific route can be assigned.

Parametersosid.id.IdmapId the Id of the Map
osid.id.IdrouteId the Id of the Route
Returnosid.id.IdList list of assignable map Ids
ErrorsNULL_ARGUMENT mapId or routeId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignRouteToMap
Description

Adds an existing Route to a Map.

Parametersosid.id.IdrouteId the Id of the Route
osid.id.IdmapId the Id of the Map
ErrorsALREADY_EXISTS routeId is already assigned to mapId
NOT_FOUND routeId or mapId not found
NULL_ARGUMENT routeId or mapId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignRouteFromMap
Description

Removes a Route from a Map.

Parametersosid.id.IdrouteId the Id of the Route
osid.id.IdmapId the Id of the Map
ErrorsNOT_FOUND routeId or mapId not found or routeId not assigned to mapId
NULL_ARGUMENT routeId or mapId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignCreditToMap
Description

Moves a Route from one Map to another. Mappings to other Maps are unaffected.

Parametersosid.id.IdrouteId the Id of the Route
osid.id.IdfromMapId the Id of the current Map
osid.id.IdtoMapId the Id of the destination Map
ErrorsALREADY_EXISTS routeId already assigned to toMapId
NOT_FOUND routeId fromMapId, or toMapId not found or routeId not mapped to fromMapId
NULL_ARGUMENT routeId, fromMapId, or toMapId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.