OSID Logo
OSID Specifications
topology rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.topology.rules.EdgeEnablerRuleLookupSession
Implementsosid.OsidSession
Description

This session provides methods to retrieve EdgeEnabler to Edge mappings. An Edge with multiple EdgeEnablers means any positive rule evaluation across the enablers result in an effective Edge.

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 graph view: All methods in this session operate, retrieve and pertain edge enablers defined explicitly in the current graph
  • federated graph view: All methods in this session operate, retrieve and pertain to all edge enablers defined in this graph and any other edge enablers implicitly available in this graph through graph inheritence.
MethodgetGraphId
Description

Gets the Graph Id associated with this session.

Returnosid.id.Idthe Graph Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetGraph
Description

Gets the Graph associated with this session.

Returnosid.topology.Graphthe graph
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupEdgeEnablerRules
Description

Tests if this user can perform lookups of edge enabler/edge 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.
MethoduseComparativeEdgeEnablerRuleView
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.
MethodusePlenaryEdgeEnablerRuleView
Description

A complete view of the EdgeEnabler and Edge 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.
MethoduseFederatedGraphView
Description

Federates the view for methods in this session. A federated view will include edge enablers in ontologies which are children of this graph in the graph hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedGraphView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetEdgeEnablerIdsForEdge
Description

Gets the EdgeEnabler Id associated with an Edge.

Parametersosid.id.Id edgeId Id of the Edge
Returnosid.id.IdListthe edge enabler Ids
ErrorsNOT_FOUND edgeId is not found
NULL_ARGUMENT edgeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEdgeEnablersForEdge
Description

Gets the EdgeEnabler associated with an Edge.

Parametersosid.id.IdedgeId Id of the Edge
Returnosid.topology.rules.EdgeEnablerListthe edge enablers
ErrorsNOT_FOUND edgeId is not found
NULL_ARGUMENT edgeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEdgeIdsByEdgeEnabler
Description

Gets the Edge Ids mapped to an EdgeEnabler.

Parametersosid.id.IdedgeEnablerId Id of an EdgeEnabler
Returnosid.id.IdListlist of edge Ids
ErrorsNOT_FOUND edgeEnablerId is not found
NULL_ARGUMENT edgeEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetEdgesByEdgeEnabler
Description

Gets the Edges mapped to an EdgeEnabler.

Parametersosid.id.IdedgeEnablerId Id of an EdgeEnabler
Returnosid.topology.EdgeListlist of edges
ErrorsNOT_FOUND edgeEnablerId is not found
NULL_ARGUMENT edgeEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.