OSID Logo
OSID Specifications
topology path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.topology.path.PathSearchSession
Implementsosid.topology.path.PathQuerySession
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.PathSearchthe path search
CompliancemandatoryThis 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.PathSearchOrderthe path search order
CompliancemandatoryThis method must be implemented.
MethodgetPathsBySearch
Description

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

Parametersosid.topology.path.PathQuerypathQuerythe path query
osid.topology.path.PathSearchpathSearchthe path search
Returnosid.topology.path.PathSearchResultsthe path search results
ErrorsNULL_ARGUMENT pathQuery or pathSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED pathQuery or pathSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPathQueryFromInspector
Description

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

Parametersosid.topology.path.PathQueryInspectorpathQueryInspectora path query inspector
Returnosid.topology.path.PathQuerythe path query
ErrorsNULL_ARGUMENT pathQueryInspector is null
UNSUPPORTED pathQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.