OSID Logo
OSID Specifications
mapping package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.LocationSearchSession
Implementsosid.mapping.LocationQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetLocationSearch
Description

Gets a location search.

Returnosid.mapping.LocationSearchthe location search
CompliancemandatoryThis method must be implemented.
MethodgetLocationSearchOrder
Description

Gets a location search order. The LocationSearchOrder is supplied to a LocationSearch to specify the ordering of results.

Returnosid.mapping.LocationSearchOrderthe location search order
CompliancemandatoryThis method must be implemented.
MethodgetLocationsBySearch
Description

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

Parametersosid.mapping.LocationQuerylocationQuerythe location query
osid.mapping.LocationSearchlocationSearchthe location search
Returnosid.mapping.LocationSearchResultsthe returned search results
ErrorsNULL_ARGUMENT locationQuery or locationSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED locationQuery or locationSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetLocationQueryFromInspector
Description

Gets a location query from an inspector. The inspector is available from a LocationSearchResults.

Parametersosid.mapping.LocationQueryInspectorlocationQueryInspectora location query inspector
Returnosid.mapping.LocationQuerythe location query
ErrorsNULL_ARGUMENT locationQueryInspector is null
UNSUPPORTED locationQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.