OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Interfaceosid.messaging.MailboxNotificationSession
Implementsosid.OsidSession
Used Byosid.messaging.MessagingManager
osid.messaging.MessagingProxyManager
Description

This session defines methods to receive notifications on adds/changes to Mailbox objects. This session is intended for consumers needing to synchronize their message with this service without the use of polling. Notifications are cancelled when this session is closed.

MethodcanRegisterForMailboxNotifications
Description

Tests if this user can register for Mailbox 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 application that may opt not to offer notification operations.

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

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableMailboxNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeMailboxNotification
Description

Acknowledge a mailbox notification.

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

Register for notifications of new mailboxes. MailboxReceiver.newMailboxes() is invoked when a new Mailbox is created.

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

Registers for notification of updated mailboxes. MailboxReceiver.changedMailboxes() is invoked when a mailbox is changed.

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

Registers for notification of an updated mailbox. MailboxReceiver.changedMailboxes() is invoked when the specified mailbox is changed.

Parametersosid.id.IdmailboxIdthe Id of the Mailbox to monitor
ErrorsNULL_ARGUMENTmailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedMailboxes
Description

Registers for notification of deleted mailboxes. MailboxReceiver.deletedMailboxes() is invoked when a mailbox is deleted.

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

Registers for notification of a deleted mailbox. MailboxReceiver.deletedMailboxes() is invoked when the specified mailbox is deleted.

Parametersosid.id.IdmailboxIdthe Id of the Mailbox to monitor
ErrorsNULL_ARGUMENTmailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedMailboxHierarchy
Description

Registers for notification of an updated mailbox hierarchy structure. MailboxReceiver.changedChildOfMailboxess() 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.
MethodregisterForChangedMailboxHierarchyForAncestors
Description

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

Parametersosid.id.IdmailboxIdthe Id of the Mailbox node to monitor
ErrorsNULL_ARGUMENTmailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedMailboxHierarchyForDescendants
Description

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

Parametersosid.id.IdmailboxIdthe Id of the Mailbox node to monitor
ErrorsNULL_ARGUMENTmailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.