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

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

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

CompliancemandatoryThis method is must be implemented.
MethodunreliablePressNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgePressNotification
Description

Acknowledge a press notification.

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

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

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

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpressIdthe Id of the Press to monitor
ErrorsNULL_ARGUMENTpressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPresses
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpressIdthe Id of the Press to monitor
ErrorsNULL_ARGUMENTpressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpressIdthe Id of the Press node to monitor
ErrorsNULL_ARGUMENTpressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpressIdthe Id of the Press node to monitor
ErrorsNULL_ARGUMENTpressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.