OSID Logo
OSID Specifications
personnel package
Version 3.0.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.

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodreliableRealmNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableRealmNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeRealmNotification
Description

Acknowledge a realm notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRealms
Description

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

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

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrealmIdthe Id of the Realm to monitor
ErrorsNULL_ARGUMENTrealmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRealms
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrealmIdthe Id of the Realm to monitor
ErrorsNULL_ARGUMENTrealmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrealmIdthe Id of the Realm node to monitor
ErrorsNULL_ARGUMENTrealmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrealmIdthe Id of the Realm node to monitor
ErrorsNULL_ARGUMENTrealmId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.