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

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

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.
MethodcanRegisterForParameterNotifications
Description

Tests if this user can register for Parameter 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 parameters 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.
MethodreliableParameterNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableParameterNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeParameterNotification
Description

Acknowledge a parameter notification.

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

Register for notifications of new parameters. ParameterReceiver.newParameter() is invoked when a new Parameter appears in this press.

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

Register for notifications of new parameters for the given text. ParameterReceiver.newParameter() is invoked when a new Parameter appears in this press.

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.
MethodregisterForChangedParameters
Description

Registers for notification of updated parameters. ParameterReceiver.changedParameter() is invoked when a parameter in this press is changed.

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

Register for notifications of updated parameters for the given text. ParameterReceiver.changedParameter() is invoked when a Parameter 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.
MethodregisterForChangedParameter
Description

Registers for notification of an updated parameter. AffiliationReceiver.changedParameter() is invoked when the specified parameter in this press is changed.

Parametersosid.id.IdparameterIdthe Id of the Parameter to monitor
ErrorsNULL_ARGUMENTparameterId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedParameters
Description

Registers for notification of deleted parameters. ParameterReceiver.deletedParameter() is invoked when a parameter is deleted or removed from this press.

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

Register for notifications of deleted parameters for the given text. ParameterReceiver.deletedParameter() is invoked when a Parameter is deleted or removed from this press.

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.
MethodregisterForDeletedParameter
Description

Registers for notification of a deleted parameter. ParameterReceiver.deletedParameter() is invoked when the specified parameter is deleted or removed from this press.

Parametersosid.id.IdparameterIdthe Id of the Parameter to monitor
ErrorsNULL_ARGUMENTparameterId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.