OSID Logo
OSID Specifications
transport package
Version 3.1.0
Interfaceosid.transport.EndpointNotificationSession
Implementsosid.OsidSession
Used Byosid.transport.TransportManager
osid.transport.TransportProxyManager
Description

This session defines methods to receive notifications on adds/changes to Endpoint objects. 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.

MethodcanRegisterForEndpointNotifications
Description

Tests if this user can register for Endpoint 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 opt not to offer notification operations.

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

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeEndpointNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableEndpointNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeEndpointNotification
Description

Acknowledge a endpoint notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewEndpoints
Description

Register for notifications of new endpoints. EndpointReceiver.newEndpoints() is invoked when a new Endpoint is created.

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

Registers for notification of updated endpoints. EndpointReceiver.changedEndpoints() is invoked when a endpoint is changed.

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

Registers for notification of an updated endpoint. EndpointReceiver.changedEndpoints() is invoked when the specified endpoint is changed.

Parametersosid.id.IdendpointId the Id of the Endpoint to monitor
ErrorsNULL_ARGUMENT endpointId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedEndpoints
Description

Registers for notification of deleted endpoints. EndpointReceiver.deletedEndpoints() is invoked when a endpoint is deleted.

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

Registers for notification of a deleted endpoint. EndpointReceiver.deletedEndpoints() is invoked when the specified endpoint is deleted.

Parametersosid.id.IdendpointId the Id of the Endpoint to monitor
ErrorsNULL_ARGUMENT endpointId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedEndpointHierarchy
Description

Registers for notification of an updated endpoint hierarchy structure. EndpointReceiver.changedChildOfEndpoints() is invoked when the specified node or any of its descendants experiences a change in its children.

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

Registers for notification of an updated endpoint hierarchy structure. EndpointReceiver.changedChildOfEndpoints() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdendpointId the Id of the Endpoint node to monitor
ErrorsNULL_ARGUMENT endpointId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedEndpointHierarchyForDescendants
Description

Registers for notification of an updated endpoint hierarchy structure. EndpointReceiver.changedChildOfEndpoints() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdendpointId the Id of the Endpoint node to monitor
ErrorsNULL_ARGUMENT endpointId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.