OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.NodeSmartGraphSession
Implementsosid.OsidSession
Used Byosid.topology.TopologyManager
osid.topology.TopologyProxyManager
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.Id the Graph Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetGraph
Description

Gets the Graph associated with this session.

Returnosid.topology.Graph the graph
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetNodeQuery
Description

Gets a node query.

Returnosid.topology.NodeQuery the node query
Compliancemandatory This method must be implemented.
MethodgetNodeSearchOrder
Description

Gets a node search order.

Returnosid.topology.NodeSearchOrder the node search order
Compliancemandatory This method must be implemented.
MethodapplyNodeQuery
Description

Applies a node query to this graph.

Parametersosid.topology.NodeQuerynodeQuery the node query
ErrorsNULL_ARGUMENT nodeQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED nodeQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectNodeQuery
Description

Gets a node query inspector for this graph.

Returnosid.topology.NodeQueryInspector the node query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyNodeSequencing
Description

Applies a node search order to this graph.

Parametersosid.topology.NodeSearchOrdernodeSearchOrder the node search order
ErrorsNULL_ARGUMENT nodeSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED nodeSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetNodeQueryFromInspector
Description

Gets a node query from an inspector.

Parametersosid.topology.NodeQueryInspectornodeQueryInspector a node query inspector
Returnosid.topology.NodeQuery the node query
ErrorsNULL_ARGUMENT relatinshipQueryInspector is null
UNSUPPORTED nodeQueryInspector is not of this service
Compliancemandatory This method must be implemented.