OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.ObstacleMapAssignmentSession
Implementsosid.OsidSession
Description

This session provides methods to re-assign Obstacles to Map objects An Obstacle may appear in multiple Map objects and removing the last reference to an Obstacle 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 an Obstacle to another Map is not a copy operation (eg: does not change its Id ).

MethodcanAssignObstacles
Description

Tests if this user can alter obstacle/map mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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
CompliancemandatoryThis method must be implemented.
MethodcanAssignObstaclesToMap
Description

Tests if this user can alter obstacle/map mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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.IdmapIdthe Id of the Map
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT mapId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableMapIds
Description

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

Parametersosid.id.IdmapIdthe Id of the Map
Returnosid.id.IdListlist of assignable map Ids
ErrorsNULL_ARGUMENT mapId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableMapIdsForObstacle
Description

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

Parametersosid.id.IdmapIdthe Id of the Map
osid.id.IdobstacleIdthe Id of the Obstacle
Returnosid.id.IdListlist of assignable map Ids
ErrorsNULL_ARGUMENT mapId or obstacleId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignObstacleToMap
Description

Adds an existing Obstacle to a Map.

Parametersosid.id.IdobstacleIdthe Id of the Obstacle
osid.id.IdmapIdthe Id of the Map
ErrorsALREADY_EXISTS obstacleId is already assigned to mapId
NOT_FOUND obstacleId or mapId not found
NULL_ARGUMENT obstacleId or mapId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignObstacleFromMap
Description

Removes an Obstacle from a Map.

Parametersosid.id.IdobstacleIdthe Id of the Obstacle
osid.id.IdmapIdthe Id of the Map
ErrorsNOT_FOUND obstacleId or mapId not found or obstacleId not assigned to mapId
NULL_ARGUMENT obstacleId or mapId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.