OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.MailboxNotificationSession
Implementsosid.OsidSession
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
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.
MethodregisterForNewMailboxAncestors
Description

Registers for notification if an ancestor is added to the specified mailbox in the mailbox hierarchy. MailboxReceiver.newMailboxAncestor() is invoked when the specified mailbox experiences an addition in ancestry.

Parametersosid.id.IdmailboxIdthe Id of the mailbox to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewMailboxDescendants
Description

Registers for notification if a descendant is added to the specified mailbox in the mailbox hierarchy. MailboxReceiver.newMailboxDescendant() is invoked when the specified mailbox experiences an addition in descendants.

Parametersosid.id.IdmailboxIdthe Id of the mailbox to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_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_ARGUMENT mailboxId 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_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedMailboxAncestors
Description

Registers for notification if an ancestor is removed from the specified mailbox in the mailbox hierarchy. MailboxReceiver.deletedMailboxAncestor() is invoked when the specified mailbox experiences a removal of an ancestor.

Parametersosid.id.IdmailboxIdthe Id of the mailbox to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedMailboxDescendants
Description

Registers for notification if a descendant is removed from fthe specified mailbox in the mailbox hierarchy. MailboxReceiver.deletedMailboxDescednant() is invoked when the specified mailbox experiences a removal of one of its descdendents.

Parametersosid.id.IdmailboxIdthe Id of the mailbox to monitor
ErrorsNULL_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.