OSID Logo
OSID Specifications
personnel package
Version 3.1.0
Interfaceosid.personnel.RealmNotificationSession
Implementsosid.OsidSession
Used Byosid.personnel.PersonnelManager
osid.personnel.PersonnelProxyManager
Description

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

Notifications are triggered with changes to the Realm object itself. Adding and removing persons result in notifications available from the notification session for persons.

MethodcanRegisterForRealmNotifications
Description

Tests if this user can register for Realm 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.
MethodreliableRealmNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableRealmNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeRealmNotification
Description

Acknowledge a realm 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.
MethodregisterForNewRealms
Description

Register for notifications of new realms. RealmReceiver.newRealm() is invoked when a new Realm is created.

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

Registers for notification of updated realms. RealmReceiver.changedRealms() is invoked when a realm is changed.

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

Registers for notification of an updated realm. RealmReceiver.changedRealms() is invoked when the specified realm is changed.

Parametersosid.id.IdrealmId the Id of the Realm to monitor
ErrorsNULL_ARGUMENT realmId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedRealms
Description

Registers for notification of deleted realms. RealmReceiver.deletedRealms() is invoked when a realm is deleted.

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

Registers for notification of a deleted realm. RealmReceiver.deletedRealms() is invoked when the specified realm is deleted.

Parametersosid.id.IdrealmId the Id of the Realm to monitor
ErrorsNULL_ARGUMENT realmId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedRealmHierarchy
Description

Registers for notification of an updated realm hierarchy structure. RealmReceiver.changedChildOfRealms() 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.
MethodregisterForChangedRealmHierarchyForAncestors
Description

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

Parametersosid.id.IdrealmId the Id of the Realm node to monitor
ErrorsNULL_ARGUMENT realmId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedRealmHierarchyForDescendants
Description

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

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