| Interface | osid.messaging.MessageMailboxAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Moving or adding a reference of a | ||
| Method | canAssignMessages | ||
| Description |
Tests if this user can alter message/mailbox mappings.
A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignMessagesToMailbox | ||
| Description |
Tests if this user can alter message/mailbox mappings.
A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | mailboxId | the Id of the Mailbox |
| Return | boolean | false if messaging is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | mailboxId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableMailboxIds | ||
| Description |
Gets a list of mailboxes including and under the given mailbox node in which any message can be assigned. | ||
| Parameters | osid.id.Id | mailboxId | the Id of the Mailbox |
| Return | osid.id.IdList | list of assignable mailbox Ids | |
| Errors | NULL_ARGUMENT | mailboxId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableMailboxIdsForMessage | ||
| Description |
Gets a list of mailboxes including and under the given mailbox node in which a specific message can be assigned. | ||
| Parameters | osid.id.Id | mailboxId | the Id of the Mailbox |
osid.id.Id | messageId | the Id of the Message | |
| Return | osid.id.IdList | list of assignable mailbox Ids | |
| Errors | NULL_ARGUMENT | mailboxId or messageId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignMessageToMailbox | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | messageId | the Id of the Message |
osid.id.Id | mailboxId | the Id of the Mailbox | |
| Errors | ALREADY_EXISTS | messageId is already assigned to mailboxId | |
| NOT_FOUND | messageId or mailboxId not found | ||
| NULL_ARGUMENT | messageId or mailboxId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignMessageFromMailbox | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | messageId | the Id of the Message |
osid.id.Id | mailboxId | the Id of the Mailbox | |
| Errors | NOT_FOUND | messageId or mailboxId or messageId
not assigned to mailboxId | |
| NULL_ARGUMENT | messageId or mailboxId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |