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

This session defines methods to receive notifications on adds/changes to resource positions in this Map. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

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

Tests if this user can register for notifications. 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 wish not to offer notification operations to unauthorized users.

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

Federates the view for methods in this session. A federated view will include positions 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 notifications to this map only.

Compliancemandatory This method is must be implemented.
MethodregisterForMovedResources
Description

Registers for notification of moved resources. ResourcePositionReceiver.movedResource() is invoked when a resource changes coordinates.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForMovedResource
Description

Registers for notification of moved resources. ResourcePositionReceiver.movedResource() is invoked when the specified resource changes coordinates.

Parametersosid.id.IdresourceId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForMovedResourcesByGenusType
Description

Registers for notification of moved resources for the given resource genus type. ResourcePositionReceiver.movedResource() is invoked when a resource changes coordinates.

Parametersosid.type.TyperesourceGenusType the genus type of the Resource to monitor
ErrorsNULL_ARGUMENT resourceGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForEnteredSpatialUnit
Description

Register for notifications of an entered spatial unit. ResourcePositionReceiver.enteredSpatialUnit() is invoked when a resource appears in the specified spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnit the SpatialUnit to monitor
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.
MethodregisterForEnteredSpatialUnitForResource
Description

Register for notifications of an entered spatial unit. ResourcePositionReceiver.enteredSpatialUnit() is invoked when the specified resource appears in the specified spatial unit.

Parametersosid.id.IdresourceId the Id of the Resource to monitor
osid.mapping.SpatialUnitspatialUnit the SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceId or spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.
MethodregisterForEnteredSpatialUnitForResourceByGenusType
Description

Register for notifications of an entered spatial unit for resources of the given resource genus type. ResourcePositionReceiver.enteredSpatialUnit() is invoked when the specified resource appears in the specified spatial unit.

Parametersosid.id.IdresourceGenusType the genus type of the Resource to monitor
osid.mapping.SpatialUnitspatialUnit the SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceGenusType or spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.
MethodregisterForExitedSpatialUnit
Description

Register for notifications of an exited spatial unit. ResourcePositionReceiver.exitedSpatialUnit() is invoked when a resource exits the specified spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnit the SpatialUnit to monitor
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.
MethodregisterForExitedSpatialUnitForResource
Description

Register for notifications of an exited spatial unit. ResourcePositionReceiver.exitedSpatialUnit() is invoked when the specified resource exits the specified spatial unit.

Parametersosid.id.IdresourceId the Id of the Resource to monitor
osid.mapping.SpatialUnitspatialUnit the SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceId or spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.
MethodregisterForExitedSpatialUnitForResourcesByGenusType
Description

Register for notifications of an exited spatial unit for the given resource genus type. ResourcePositionReceiver.exitedSpatialUnit() is invoked when a resource exits the specified spatial unit.

Parametersosid.type.TyperesourceGenusType the genus type of the Resource to monitor
osid.mapping.SpatialUnitspatialUnit the SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceGenusTYpe or spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.