OSID Logo
OSID Specifications
topology path package
Version 3.1.0
Interfaceosid.topology.path.PathSearchSession
Implementsosid.topology.path.PathQuerySession
Used Byosid.topology.path.TopologyPathManager
osid.topology.path.TopologyPathProxyManager
Description

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

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetPathSearch
Description

Gets a path search.

Returnosid.topology.path.PathSearch the path search
Compliancemandatory This method must be implemented.
MethodgetPathSearchOrder
Description

Gets a path search order. The PathSearchOrder is supplied to a PathSearch to specify the ordering of results.

Returnosid.topology.path.PathSearchOrder the path search order
Compliancemandatory This method must be implemented.
MethodgetPathsBySearch
Description

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

Parametersosid.topology.path.PathQuerypathQuery the path query
osid.topology.path.PathSearchpathSearch the path search
Returnosid.topology.path.PathSearchResults the path search results
ErrorsNULL_ARGUMENT pathQuery or pathSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED pathQuery or pathSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetPathQueryFromInspector
Description

Gets a path query from an inspector. The inspector is available from a PathSearchResults.

Parametersosid.topology.path.PathQueryInspectorpathQueryInspector a path query inspector
Returnosid.topology.path.PathQuery the path query
ErrorsNULL_ARGUMENT pathQueryInspector is null
UNSUPPORTED pathQueryInspector is not of this service
Compliancemandatory This method must be implemented.