OSID Logo
OSID Specifications
mapping path rules package
Version 3.1.0
Interfaceosid.mapping.path.rules.ObstacleEnablerMapAssignmentSession
Implementsosid.OsidSession
Used Byosid.mapping.path.rules.MappingPathRulesManager
osid.mapping.path.rules.MappingPathRulesProxyManager
Description

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

MethodcanAssignObstacleEnablers
Description

Tests if this user can alter obstacle enabler/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 lookup operations to unauthorized users.

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

Tests if this user can alter obstacle enabler/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 lookup 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 obstacle enabler 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.
MethodgetAssignableMapIdsForObstacleEnabler
Description

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

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

Adds an existing ObstacleEnabler to an Map.

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

Removes an ObstacleEnabler from an Map.

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

Moves an ObstacleEnabler from one Map to another. Mappings to other Maps are unaffected.

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