OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.SignalSearchSession
Implementsosid.mapping.path.SignalQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated map view: searches include signals in maps of which this map is an ancestor in the map hierarchy
  • isolated map view: searches are restricted to signals in this map

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

MethodgetSignalSearch
Description

Gets a signal search.

Returnosid.mapping.path.SignalSearchthe signal search
CompliancemandatoryThis method must be implemented.
MethodgetSignalSearchOrder
Description

Gets a signal search order. The SignalSearchOrder is supplied to a SignalSearch to specify the ordering of results.

Returnosid.mapping.path.SignalSearchOrderthe signal search order
CompliancemandatoryThis method must be implemented.
MethodgetSignalsBySearch
Description

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

Parametersosid.mapping.path.SignalQuerysignalQuerythe signal query
osid.mapping.path.SignalSearchsignalSearchthe signal search
Returnosid.mapping.path.SignalSearchResultsthe returned search results
ErrorsNULL_ARGUMENT signalQuery or signalSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED signalQuery or signalSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetSignalQueryFromInspector
Description

Gets a signal query from an inspector. The inspector is available from a SignalSearchResults.

Parametersosid.mapping.path.SignalQueryInspectorsignalQueryInspectora signal query inspector
Returnosid.mapping.path.SignalQuerythe signal query
ErrorsNULL_ARGUMENT signalQueryInspector is null
UNSUPPORTED signalQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.