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

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodreliableMailboxNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableMailboxNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeMailboxNotification
Description

Acknowledge a mailbox 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.
MethodregisterForNewMailboxes
Description

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

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

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdmailboxId the Id of the Mailbox to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedMailboxes
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdmailboxId the Id of the Mailbox to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdmailboxId the Id of the Mailbox node to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdmailboxId the Id of the Mailbox node to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.