OSID Logo
OSID Specifications
lexicon package
Version 3.0.0
Interfaceosid.lexicon.IdiomNotificationSession
Implementsosid.OsidSession
Used Byosid.lexicon.LexiconManager
osid.lexicon.LexiconProxyManager
Description

This session defines methods to receive notifications on adds/changes to Idioms in this Press . This also includes existing idioms that may appear or disappear due to changes in the Press hierarchy, 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.

The two views defined in this session correspond to the views in the IdiomLookupSession .

MethodgetPressId
Description

Gets the Press Id associated with this session.

Returnosid.id.Idthe Press Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPress
Description

Gets the Press associated with this session.

Returnosid.lexicon.Pressthe press
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForIdiomNotifications
Description

Tests if this user can register for Idiom 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 press that may opt not to offer notification operations.

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

Federates the view for methods in this session. A federated view will include idioms in presses which are children of this press in the press hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedPressView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableIdionNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableIdiomNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeIdiomNotification
Description

Acknowledge an idiom notification.

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

Register for notifications of new idioms. IdiomReceiver.newIdiom() is invoked when a new Idiom appears in this press.

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

Register for notifications of new idioms for the given text Id . IdiomReceiver.newIdiom() is invoked when a new Idiom is created.

Parametersosid.id.IdtextIdthe Id of the text to monitor
ErrorsNULL_ARGUMENTtextId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedIdioms
Description

Registers for notification of updated idioms. IdiomReceiver.changedIdiom() is invoked when an idiom in this press is changed.

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

Register for notifications of updated idioms for the given text Id . IdiomReceiver.changedIdiom() is invoked when an idiom in this press is changed.

Parametersosid.id.IdtextIdthe Id of the text to monitor
ErrorsNULL_ARGUMENTtextId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedIdiom
Description

Registers for notification of an updated idiom. IdiomReceiver.changedIdiom() is invoked when the specified idiom in this press is changed.

Parametersosid.id.IdidiomIdthe Id of the Idiom to monitor
ErrorsNULL_ARGUMENTidiomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedIdioms
Description

Registers for notification of deleted idioms. IdiomReceiver.deletedIdiom() is invoked when an idiom is deleted or removed from this press.

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

Register for notifications of deleted idioms for the given text Id . IdiomReceiver.deletedIdiom() is invoked when an idiom in this press is removed or deleted.

Parametersosid.id.IdtextIdthe Id of the text to monitor
ErrorsNULL_ARGUMENTtextId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedIdiom
Description

Registers for notification of a deleted idiom. IdiomReceiver.deletedIdiom() is invoked when the specified idiom is deleted or removed from this press.

Parametersosid.id.IdidiomIdthe Id of the Idiom to monitor
ErrorsNULL_ARGUMENTidiomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.