Interface | osid.mapping.route.RouteMapAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Adding a reference of a | ||
Method | canAssignRoutes | ||
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
| ||
Return | boolean | false if mapping is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canAssignRoutesToMap | ||
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
| ||
Parameters | osid.id.Id | mapId | the Id of the Map |
Return | boolean | false if mapping is not authorized, true
otherwise | |
Errors | NULL_ARGUMENT | mapId is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableMapIds | ||
Description |
Gets a list of maps including and under the given map node in which any route can be assigned. | ||
Parameters | osid.id.Id | mapId | the Id of the Map |
Return | osid.id.IdList | list of assignable map Ids | |
Errors | NULL_ARGUMENT | mapId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableMapIdsForRoute | ||
Description |
Gets a list of maps including and under the given map node in which a specific route can be assigned. | ||
Parameters | osid.id.Id | mapId | the Id of the Map |
osid.id.Id | routeId | the Id of the Route | |
Return | osid.id.IdList | list of assignable map Ids | |
Errors | NULL_ARGUMENT | mapId or routeId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignRouteToMap | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | routeId | the Id of the Route |
osid.id.Id | mapId | the Id of the Map | |
Errors | ALREADY_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 | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignRouteFromMap | ||
Description |
Removes a | ||
Parameters | osid.id.Id | routeId | the Id of the Route |
osid.id.Id | mapId | the Id of the Map | |
Errors | NOT_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 | ||
Compliance | mandatory | This method must be implemented. | |
Method | reassignCreditToMap | ||
Description |
Moves a | ||
Parameters | osid.id.Id | routeId | the Id of the Route |
osid.id.Id | fromMapId | the Id of the current Map | |
osid.id.Id | toMapId | the Id of the destination Map | |
Errors | 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 | ||
Compliance | mandatory | This method must be implemented. |