public interface DictionaryNotificationSession extends OsidSession
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.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeDictionaryNotification(Id notificationId)
Acknowledge a dictionary notification.
|
boolean |
canRegisterForDictionaryNotifications()
Tests if this user can register for
Dictionary
notifications. |
void |
registerForChangedDictionaries()
Registers for notification of updated dictionaries.
|
void |
registerForChangedDictionary(Id dictionaryId)
Registers for notification of an updated dictionary.
|
void |
registerForChangedDictionaryHierarchy()
Registers for notification of an updated dictionary hierarchy
structure.
|
void |
registerForChangedDictionaryHierarchyForAncestors(Id dictionaryId)
Registers for notification of an updated dictionary hierarchy
structure.
|
void |
registerForChangedDictionaryHierarchyForDescendants(Id dictionaryId)
Registers for notification of an updated dictionary hierarchy
structure.
|
void |
registerForDeletedDictionaries()
Registers for notification of deleted dictionaries.
|
void |
registerForDeletedDictionary(Id dictionaryId)
Registers for notification of a deleted dictionary.
|
void |
registerForNewDictionaries()
Register for notifications of new dictionaries.
|
void |
reliableDictionaryNotifications()
Reliable notifications are desired.
|
void |
unreliableDictionaryNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForDictionaryNotifications()
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. false
if notification methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void reliableDictionaryNotifications()
acknowledgeDictionaryNotification()
.mandatory
- This method is must be implemented. void unreliableDictionaryNotifications()
mandatory
- This method is must be implemented. void acknowledgeDictionaryNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewDictionaries() throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.newDictionary()
is invoked when a new
Dictionary
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDictionaries() throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.changedDictionaries()
is invoked when a
dictionary is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDictionary(Id dictionaryId) throws OperationFailedException, PermissionDeniedException
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.dictionaryId
- the Id
of the Dictionary
to monitorNullArgumentException
- dictionaryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDictionaries() throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.deletedDictionaries()
is invoked when a
dictionary is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedDictionary(Id dictionaryId) throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.changedDictionaries()
is invoked when the
specified dictionary is changed.dictionaryId
- the Id
of the Dictionary
to monitorNullArgumentException
- dictionaryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDictionaryHierarchy() throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.changedChildOfDictionaries()
is invoked when a node experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDictionaryHierarchyForAncestors(Id dictionaryId) throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.changedChildOfDictionaries()
is invoked when the specified node or any of its ancestors
experiences a change in its children.dictionaryId
- the Id
of the Dictionary
node to monitorNullArgumentException
- dictionaryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedDictionaryHierarchyForDescendants(Id dictionaryId) throws OperationFailedException, PermissionDeniedException
DictionaryReceiver.changedChildOfDictionaries()
is invoked when the specified node or any of its descendants
experiences a change in its children.dictionaryId
- the Id
of the Dictionary
node to monitorNullArgumentException
- dictionaryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.