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

This session defines methods to receive notifications on adds/changes to Texts in this Press. This also includes existing texts 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 TextLookupSession.

MethodgetPressId
Description

Gets the Press Id associated with this session.

Returnosid.id.Id the Press Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPress
Description

Gets the Press associated with this session.

Returnosid.lexicon.Press the press
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForTextNotifications
Description

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

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedPressView
Description

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

Compliancemandatory This method is must be implemented.
MethoduseIsolatedPressView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableTextNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableTextNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeTextNotification
Description

Acknowledge a text notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewTexts
Description

Register for notifications of new texts. TextReceiver.newText() is invoked when a new Text appears in this press.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedTexts
Description

Registers for notification of updated texts. TextReceiver.changedText() is invoked when a text in this press is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedText
Description

Registers for notification of an updated text. TextReceiver.changedText() is invoked when the specified text in this press is changed.

Parametersosid.id.IdtextId the Id of the Text to monitor
ErrorsNULL_ARGUMENT textId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedTexts
Description

Registers for notification of deleted texts. TextReceiver.deletedText() is invoked when a text is deleted or removed from this press.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedText
Description

Registers for notification of a deleted text. TextReceiver.deletedText() is invoked when the specified text is deleted or removed from this press.

Parametersosid.id.IdtextId the Id of the Text to monitor
ErrorsNULL_ARGUMENT textId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.