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

This session defines methods to look up resources on a map.

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.
MethodcanAccessResourceLocations
Description

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

Returnboolean false if location methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeResourceLocationView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryResourceLocationView
Description

A complete view of the Location returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseFederatedMapView
Description

Federates the view for methods in this session. A federated view will include paths in maps which are children of this map in the map hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedMapView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this map only.

Compliancemandatory This method is must be implemented.
MethodgetResourceLocation
Description

Gets the current closest bounding location of the given resource. The returned ResourceLocation may not indicate a known location if no location is known.

Parametersosid.id.IdresourceId a resource Id
Returnosid.mapping.ResourceLocation the current location
ErrorsNOT_FOUND resourceId is not on map
NULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceLocations
Description

Gets the current closest bounding locations of the given resources. In plenary mode, the returned list contains all of the locations of the supplied resources or an error results. In comparative mode, inaccessible resources may be omitted or duplicates suppressed or reordered.

Parametersosid.id.IdListresourceIds a resource list
Returnosid.mapping.ResourceLocationList the current locations
ErrorsNOT_FOUND a resource Id is not on map
NULL_ARGUMENT resourceIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourcesAtLocation
Description

Gets the current resources at or within the given location.

Parametersosid.id.IdlocationId a location Id
Returnosid.mapping.ResourceLocationList the resources at the location
ErrorsNOT_FOUND locationId not found
NULL_ARGUMENT locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourcesAtLocationByGenusType
Description

Gets the current resources at or within the given location for a resource genus type.

Parametersosid.id.IdlocationId a location Id
osid.type.TyperesourceGenusType a resource genus type
Returnosid.mapping.ResourceLocationList the resources at the location
ErrorsNOT_FOUND locationId not found
NULL_ARGUMENT locationId or resourceGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourcesAtSpatialUnit
Description

Gets the current resource within the given spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
Returnosid.mapping.ResourceLocationList the resources at the location
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourcesAtSpatialUnitByGenusType
Description

Gets the current resource within the given spatial unit for a given resource genus type.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
osid.type.TyperesourceGenusType a resource genus type
Returnosid.mapping.ResourceLocationList the resources at the location
ErrorsNULL_ARGUMENT spatialUnit or resourceGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.