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

This session manages queries and sequencing to create "smart" dynamic catalogs. A LocationQuery can be retrieved from this session and mapped to this Map to create a virtual collection of Locations. The locations may be sequenced using the LocationSearchOrder from this session.

This Map has a default query that matches any location and a default search order that specifies no sequencing. The queries may be examined using a LocationQueryInspector. The query may be modified by converting the inspector back to a LocationQuery.

MethodgetMapId
Description

Gets the Map Id associated with this session.

Returnosid.id.Id the Map Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Map the map
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartMaps
Description

Tests if this user can manage smart maps. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart map management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetLocationQuery
Description

Gets a location query.

Returnosid.mapping.LocationQuery the location query
Compliancemandatory This method must be implemented.
MethodgetLocationSearchOrder
Description

Gets a location search order.

Returnosid.mapping.LocationSearchOrder the location search order
Compliancemandatory This method must be implemented.
MethodapplyLocationQuery
Description

Applies a location query to this map.

Parametersosid.mapping.LocationQuerylocationQuery the location query
ErrorsNULL_ARGUMENT locationQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED locationQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspecLocationQuery
Description

Gets a location query inspector for this map.

Returnosid.mapping.LocationQueryInspector the location query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyLocationSequencing
Description

Applies a location search order to this map.

Parametersosid.mapping.LocationSearchOrderlocationSearchOrder the location search order
ErrorsNULL_ARGUMENT locationSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED locationSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetLocationQueryFromInspector
Description

Gets a location query from an inspector.

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.