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

This session manages queries and sequencing to create "smart" dynamic catalogs. A NodeQuery can be retrieved from this session and mapped to this Graph to create a virtual collection of Nodes. The entries may be sequenced using the NodeSearchOrder from this session.

This Graph has a default query that matches any node and a default search order that specifies no sequencing. The queries may be examined using a NodeQueryInspector. The query may be modified by converting the inspector back to a NodeQuery.

MethodgetGraphId
Description

Gets the Familt 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.
MethodcanManageSmartGraphs
Description

Tests if this user can manage smart graphs. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 smart operations.

Returnboolean false if smart graph methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetNodeQuery
Description

Gets a node query.

Returnosid.topology.NodeQuerythe node query
CompliancemandatoryThis method must be implemented.
MethodgetNodeSearchOrder
Description

Gets a node search order.

Returnosid.topology.NodeSearchOrderthe node search order
CompliancemandatoryThis method must be implemented.
MethodapplyNodeQuery
Description

Applies a node query to this graph.

Parametersosid.topology.NodeQuerynodeQuerythe node query
ErrorsNULL_ARGUMENT nodeQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED nodeQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectNodeQuery
Description

Gets a node query inspector for this graph.

Returnosid.topology.NodeQueryInspectorthe node query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyNodeSequencing
Description

Applies a node search order to this graph.

Parametersosid.topology.NodeSearchOrdernodeSearchOrderthe node search order
ErrorsNULL_ARGUMENT nodeSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED nodeSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetNodeQueryFromInspector
Description

Gets a node query from an inspector.

Parametersosid.topology.NodeQueryInspectornodeQueryInspectora node query inspector
Returnosid.topology.NodeQuerythe node query
ErrorsNULL_ARGUMENT relatinshipQueryInspector is null
UNSUPPORTED nodeQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.