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

This session provides methods for searching among Maps. The search query is constructed using the MapQuery.

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

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

MethodgetMapSearch
Description

Gets a map search.

Returnosid.mapping.MapSearch the map search
Compliancemandatory This method must be implemented.
MethodgetMapSearchOrder
Description

Gets a map search order. The MapSearchOrder is supplied to a MapSearch to specify the ordering of results.

Returnosid.mapping.MapSearchOrder the map search order
Compliancemandatory This method must be implemented.
MethodgetMapsBySearch
Description

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

Parametersosid.mapping.MapQuerymapQuery the map query
osid.mapping.MapSearchmapSearch the map search
Returnosid.mapping.MapSearchResults the returned search results
ErrorsNULL_ARGUMENT mapQuery or mapSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED mapQuery or mapSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetMapQueryFromInspector
Description

Gets a map query from an inspector. The inspector is available from a MapSearchResults.

Parametersosid.mapping.MapQueryInspectormapQueryInspector a map query inspector
Returnosid.mapping.MapQuery the map query
ErrorsNULL_ARGUMENT mapQueryInspector is null
UNSUPPORTED mapQueryInspector is not of this service
Compliancemandatory This method must be implemented.