OSID Logo
OSID Specifications
mapping package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.ResourcePositionNotificationSession
Implementsosid.OsidSession
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.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.
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
CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedMapView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodregisterForMovedResources
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForMovedResource
Description

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

Parametersosid.id.IdresourceIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TyperesourceGenusTypethe genus type of the Resource to monitor
ErrorsNULL_ARGUMENT resourceGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.SpatialUnitspatialUnitthe SpatialUnit to monitor
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis 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.IdresourceIdthe Id of the Resource to monitor
osid.mapping.SpatialUnitspatialUnitthe SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceId or spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis 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.IdresourceGenusTypethe genus type of the Resource to monitor
osid.mapping.SpatialUnitspatialUnitthe SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceGenusType or spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis 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.SpatialUnitspatialUnitthe SpatialUnit to monitor
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis 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.IdresourceIdthe Id of the Resource to monitor
osid.mapping.SpatialUnitspatialUnitthe SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceId or spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis 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.TyperesourceGenusTypethe genus type of the Resource to monitor
osid.mapping.SpatialUnitspatialUnitthe SpatialUnit to monitor
ErrorsNULL_ARGUMENT resourceGenusTYpe or spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis method must be implemented.