OSID Logo
OSID Specifications
lexicon package
Version 3.1.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.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.
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.

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 parameters 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.
MethodreliableParameterNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableParameterNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeParameterNotification
Description

Acknowledge a parameter 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.
MethodregisterForNewParameters
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.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.
MethodregisterForChangedParameters
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.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.
MethodregisterForChangedParameter
Description

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

Parametersosid.id.IdparameterId the Id of the Parameter to monitor
ErrorsNULL_ARGUMENT parameterId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.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.
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.IdparameterId the Id of the Parameter to monitor
ErrorsNULL_ARGUMENT parameterId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.