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

This session defines methods to receive notifications on adds/changes to Presses. 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.

MethodcanRegisterForPressNotifications
Description

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

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

Compliancemandatory This method is must be implemented.
MethodunreliablePressNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgePressNotification
Description

Acknowledge a press notification.

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

Register for notifications of new presses. PressReceiver.newPress() is invoked when a new Press is created.

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

Registers for notification of updated presses. PressReceiver.changedPress() is invoked when an press is changed.

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

Registers for notification of an updated press. PressReceiver.changedPress() is invoked when the specified press is changed.

Parametersosid.id.IdpressId the Id of the Press to monitor
ErrorsNULL_ARGUMENT pressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedPresses
Description

Registers for notification of deleted presses. PressReceiver.deletedPress() is invoked when an press is deleted.

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

Registers for notification of a deleted press. PressReceiver.deletedPress() is invoked when the specified press is deleted.

Parametersosid.id.IdpressId the Id of the Press to monitor
ErrorsNULL_ARGUMENT pressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedPressHierarchy
Description

Registers for notification of an updated press hierarchy structure. PressReceiver.changedChildOfPresses() is invoked when the specified node or any of its descendants experiences a change in its children.

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

Registers for notification of an updated press hierarchy structure. PressReceiver.changedChildOfPresses() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdpressId the Id of the Press node to monitor
ErrorsNULL_ARGUMENT pressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedPressHierarchyForDescendants
Description

Registers for notification of an updated press hierarchy structure. PressReceiver.changedChildOfPresses() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdpressId the Id of the Press node to monitor
ErrorsNULL_ARGUMENT pressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.