OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.NodeSearchSession
Implementsosid.topology.NodeQuerySession
Used Byosid.topology.TopologyManager
osid.topology.TopologyProxyManager
Description

This session provides methods for searching among Node objects. The search query is constructed using the NodeQuery.

getNodesByQuery() is the basic search method and returns a list of Nodes. A more advanced search may be performed with getNodesBySearch(). It accepts a NodeSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getNodesBySearch() returns a NodeSearchResults that can be used to access the resulting NodeList or be used to perform a search within the result set through NodeSearch.

This session defines views that offer differing behaviors for searching.

  • federated graph view: searches include nodes in graphs of which this graph is an ancestor in the graph hierarchy
  • isolated graph view: searches are restricted to nodes in this graph

Nodes may have a query record indicated by their respective record types. The query record is accessed via the NodeQuery.

MethodgetNodeSearch
Description

Gets a node search.

Returnosid.topology.NodeSearch the node search
Compliancemandatory This method must be implemented.
MethodgetNodeSearchOrder
Description

Gets a node search order. The NodeSearchOrder is supplied to a NodeSearch to specify the ordering of results.

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

Gets the search results matching the given search query using the given search.

Parametersosid.topology.NodeQuerynodeQuery the node query
osid.topology.NodeSearchnodeSearch the node search
Returnosid.topology.NodeSearchResults the node search results
ErrorsNULL_ARGUMENT nodeQuery or nodeSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED nodeQuery or nodeSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetNodeQueryFromInspector
Description

Gets a node query from an inspector. The inspector is available from a NodeSearchResults.

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