OSID Logo
OSID Specifications
mapping package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.LocationSmartMapSession
Implementsosid.OsidSession
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.Idthe Map Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Mapthe map
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetLocationQuery
Description

Gets a location query.

Returnosid.mapping.LocationQuerythe location query
CompliancemandatoryThis method must be implemented.
MethodgetLocationSearchOrder
Description

Gets a location search order.

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

Applies a location query to this map.

Parametersosid.mapping.LocationQuerylocationQuerythe location query
ErrorsNULL_ARGUMENT locationQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED locationQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspecLocationQuery
Description

Gets a location query inspector for this map.

Returnosid.mapping.LocationQueryInspectorthe location query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyLocationSequencing
Description

Applies a location search order to this map.

Parametersosid.mapping.LocationSearchOrderlocationSearchOrderthe location search order
ErrorsNULL_ARGUMENT locationSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED locationSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetLocationQueryFromInspector
Description

Gets a location query from an inspector.

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.