OSID Logo
OSID Specifications
mapping package
Version 3.1.0
Interfaceosid.mapping.LocationSearchSession
Implementsosid.mapping.LocationQuerySession
Used Byosid.mapping.MappingManager
osid.mapping.MappingProxyManager
Description

This session provides methods for searching among Locations. 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.LocationSearch the location search
Compliancemandatory This 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.LocationSearchOrder the location search order
Compliancemandatory This method must be implemented.
MethodgetLocationsBySearch
Description

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

Parametersosid.mapping.LocationQuerylocationQuery the location query
osid.mapping.LocationSearchlocationSearch the location search
Returnosid.mapping.LocationSearchResults the returned search results
ErrorsNULL_ARGUMENT locationQuery or locationSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED locationQuery or locationSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetLocationQueryFromInspector
Description

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

Parametersosid.mapping.LocationQueryInspectorlocationQueryInspector a location query inspector
Returnosid.mapping.LocationQuery the location query
ErrorsNULL_ARGUMENT locationQueryInspector is null
UNSUPPORTED locationQueryInspector is not of this service
Compliancemandatory This method must be implemented.