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

This session provides methods to retrieve ObstacleEnabler to Obstacle mappings. An Obstacle with multiple ObstacleEnablers means any positive rule evaluation across the enablers result in an enabled Obstacle.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated map view: All methods in this session operate, retrieve and pertain obstacle enabler defined explicitly in the current map
  • federated map view: All methods in this session operate, retrieve and pertain to all obstacle enabler defined in this map and any other obstacle enabler implicitly available in this map through map inheritence.
MethodgetMapId
Description

Gets the Map Id associated with this session.

Returnosid.id.Idthe Map Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Mapthe map
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupObstacleEnablerRules
Description

Tests if this user can perform lookups of obstacle enabler/obstacle mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeObstacleEnablerRuleView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryObstacleEnablerRuleView
Description

A complete view of the ObstacleEnabler and Obstacle returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedMapView
Description

Federates the view for methods in this session. A federated view will include obstacle enabler in maps which are children of this map in the map hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedMapView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetObstacleEnablerIdsForObstacle
Description

Gets the ObstacleEnabler Id associated with an Obstacle.

Parametersosid.id.IdobstacleId Id of the Obstacle
Returnosid.id.IdListthe obstacle enabler Ids
ErrorsNOT_FOUND obstacleId is not found
NULL_ARGUMENT obstacleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetObstacleEnablersForObstacle
Description

Gets the ObstacleEnabler associated with an Obstacle.

Parametersosid.id.IdobstacleId Id of the Obstacle
Returnosid.mapping.path.rules.ObstacleEnablerListthe obstacle enablers
ErrorsNOT_FOUND obstacleId is not found
NULL_ARGUMENT obstacleId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetObstacleIdsForObstacleEnabler
Description

Gets the Obstacle Ids mapped to an ObstacleEnabler.

Parametersosid.id.IdobstacleEnablerId Id of an ObstacleEnabler
Returnosid.id.IdListlist of obstacle Ids
ErrorsNOT_FOUND obstacleEnablerId is not found
NULL_ARGUMENT obstacleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetObstaclesForObstacleEnabler
Description

Gets the Obstacles mapped to an ObstacleEnabler.

Parametersosid.id.IdobstacleEnablerId Id of an ObstacleEnabler
Returnosid.mapping.path.ObstacleListlist of obstacles
ErrorsNOT_FOUND obstacleEnablerId is not found
NULL_ARGUMENT obstacleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.