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

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

MethodgetDictionaryId
Description

Gets the Dictionary Id associated with this session.

Returnosid.id.Idthe Dictionary Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDictionary
Description

Gets the Dictionary associated with this session.

Returnosid.dictionary.Dictionarythe Dictionary associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForEntryNotifications
Description

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

Federates the view for methods in this session. A federated view will include entries from parent dictionaries in the dictionary hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedDictionaryView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableEntryNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableEntryNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeEntryNotification
Description

Acknowledge an entry notification.

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

Registers for notifications of new entries. EntryReceiver.newEntries() is invoked when a new Entry is created.

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

Registers for notifications of new entries by key and value types. EntryReceiver.newEntries() is invoked when a new Entry is created.

Parametersosid.type.TypekeyTypethe entry key type
osid.type.TypevalueTypethe entry key type
ErrorsNULL_ARGUMENT keyType or valueType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEntries
Description

Regsiters for notification of updated entries. EntryReceiver.changedEntries() is invoked when an Entry is changed.

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

Registers for notifications of an update to entries by key and value type . EntryReceiver.changedEntries() is invoked when the specified Entry is changed.

Parametersosid.type.TypekeyTypethe entry key type
osid.type.TypevalueTypethe entry key type
ErrorsNULL_ARGUMENT keyType or valueType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedEntry
Description

Registers for notifications of an update to an Entry. EntryReceiver.changedEntries() is invoked when the specified Entry is changed.

Parametersosid.id.IdentryIdthe entry Id
ErrorsNULL_ARGUMENT entryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEntries
Description

Registers for notification of deleted dictionaries. EntryReceiver.deletedEntries() is invoked when the specified Entry is deleted.

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

Registers for notifications of a deleted entries by key and value type. EntryReceiver.deletedEntries() is invoked when the specified Entry is removed from this dictionary.

Parametersosid.type.TypekeyTypethe entry key type
osid.type.TypevalueTYpethe entry key type
ErrorsNULL_ARGUMENT keyType or valueType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedEntry
Description

Registers for notifications of a deleted Entry. EntryReceiver.deletedEntries() is invoked when the specified Entry is removed from this dictionary.

Parametersosid.id.IdentryIdthe entry Id
ErrorsNULL_ARGUMENT entryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.