OSID Logo
OSID Specifications
mapping path package
Version 3.1.0
Interfaceosid.mapping.path.PathSearchSession
Implementsosid.mapping.path.PathQuerySession
Used Byosid.mapping.path.MappingPathManager
osid.mapping.path.MappingPathProxyManager
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 map view: searches include paths in maps of which this map is an ancestor in the map hierarchy
  • isolated map view: searches are restricted to paths in this map

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.mapping.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.mapping.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.mapping.path.PathQuerypathQuery the path query
osid.mapping.path.PathSearchpathSearch the path search
Returnosid.mapping.path.PathSearchResults the returned 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.mapping.path.PathQueryInspectorpathQueryInspector a path query inspector
Returnosid.mapping.path.PathQuery the path query
ErrorsNULL_ARGUMENT pathQueryInspector is null
UNSUPPORTED pathQueryInspector is not of this service
Compliancemandatory This method must be implemented.