OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetSpatialAssignmentSession
Implementsosid.OsidSession
Used Byosid.repository.RepositoryManager
osid.repository.RepositoryProxyManager
Description

This session defines methods to manage the spatial coverage of an asset.

MethodgetRepositoryId
Description

Gets the Repository Id associated with this session.

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

Gets the Repository associated with this session.

Returnosid.repository.Repository the Repository associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAssignSpatialCoverage
Description

Tests if this user can manage spatial lookups. 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 opt not to offer assignment operations.

Returnboolean false if spatial management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaddAssetLocation
Description

Adds a location to an asset.

Parametersosid.id.IdassetId Id of the Asset
osid.id.IdlocationId a location Id
ErrorsALREADY_EXISTS asset already contains this spatial coverage
NOT_FOUND assetId or locationId not found
NULL_ARGUMENT assetId or locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization fauilure
Compliancemandatory This method must be implemented.
MethodaddAssetSpatialCoverage
Description

Adds a spatial coverage to an asset.

Parametersosid.id.IdassetId Id of the Asset
osid.mapping.SpatialUnitspatialUnit spatial coverage
ErrorsALREADY_EXISTS asset already contains this spatial coverage
NOT_FOUND assetId not found
NULL_ARGUMENT assetId or spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization fauilure
UNSUPPORTED spatialUnit not supported
Compliancemandatory This method must be implemented.
MethodremoveAssetLocation
Description

Removes a location from an asset.

Parametersosid.id.IdassetId Id of the Asset
osid.id.IdlocationId spatial coverage
ErrorsNOT_FOUND assetId with locationId not found
NULL_ARGUMENT assetId or locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization fauilure
Compliancemandatory This method must be implemented.
MethodremoveAssetSpatialCoverage
Description

Removes a spatial coverage from an asset.

Parametersosid.id.IdassetId Id of the Asset
osid.mapping.SpatialUnitspatialUnit spatial coverage
ErrorsNOT_FOUND assetId with spatialUnit not found
NULL_ARGUMENT assetId or spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization fauilure
Compliancemandatory This method must be implemented.