OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Release Candidate Preview
Interfaceosid.dictionary.DictionaryNotificationSession
Implementsosid.OsidSession
Description

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

MethodcanRegisterForDictionaryNotifications
Description

Tests if this user can register for Dictionary 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
CompliancemandatoryThis method must be implemented.
MethodreliableDictionaryNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableDictionaryNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeDictionaryNotification
Description

Acknowledge a dictionary notification.

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

Register for notifications of new dictionaries. DictionaryReceiver.newDictionary() is invoked when a new Dictionary is created.

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

Registers for notification of updated dictionaries. DictionaryReceiver.changedDictionaries() is invoked when a dictionary is changed.

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

Registers for notification of an updated dictionary. DictionaryReceiver.changedDictionaries() is invoked when the specified dictionary is changed. A notification may be triggered for any updated, deleted or new dictionary the specified dictionary inherits data from.

Parametersosid.id.IddictionaryIdthe Id of the Dictionary to monitor
ErrorsNULL_ARGUMENT dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedDictionaries
Description

Registers for notification of deleted dictionaries. DictionaryReceiver.deletedDictionaries() is invoked when a dictionary is deleted.

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

Registers for notification of a deleted dictionary. DictionaryReceiver.changedDictionaries() is invoked when the specified dictionary is changed.

Parametersosid.id.IddictionaryIdthe Id of the Dictionary to monitor
ErrorsNULL_ARGUMENT dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDictionaryHierarchy
Description

Registers for notification of an updated dictionary hierarchy structure. DictionaryReceiver.changedChildOfDictionaries() is invoked when a node experiences a change in its children.

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

Registers for notification of an updated dictionary hierarchy structure. DictionaryReceiver.changedChildOfDictionaries() is invoked when the specified node or any of its ancestors experiences a change in its children.

Parametersosid.id.IddictionaryIdthe Id of the Dictionary node to monitor
ErrorsNULL_ARGUMENT dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedDictionaryHierarchyForDescendants
Description

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

Parametersosid.id.IddictionaryIdthe Id of the Dictionary node to monitor
ErrorsNULL_ARGUMENT dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.