Interface | osid.messaging.MailboxAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | canCreateMailboxes | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Mailbox creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateMailboxWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | mailboxRecordTypes | array of mailbox record types |
Return | boolean | true if Mailbox creation using the specified
Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | mailboxRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getMailboxFormForCreate | ||
Description |
Gets the mailbox form for creating new mailboxes. | ||
Parameters | osid.type.Type[] | mailboxRecordTypes | array of mailbox record types |
Return | osid.messaging.MailboxForm | the mailbox form | |
Errors | NULL_ARGUMENT | mailboxRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createMailbox | ||
Description |
Creates a new | ||
Parameters | osid.messaging.MailboxForm | mailboxForm | the form for this Mailbox |
Return | osid.messaging.Mailbox | the new Mailbox | |
Errors | ILLEGAL_STATE | mailboxForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | mailboxForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | mailboxForm did not originate from
getMailboxFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateMailboxes | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Mailbox modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getMailboxFormForUpdate | ||
Description |
Gets the mailbox form for updating an existing mailbox. A new mailbox form should be requested for each update transaction. | ||
Parameters | osid.id.Id | mailboxId | the Id of the Mailbox |
Return | osid.messaging.MailboxForm | the mailbox form | |
Errors | NOT_FOUND | mailboxId is not found | |
NULL_ARGUMENT | mailboxId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateMailbox | ||
Description |
Updates an existing mailbox. | ||
Parameters | osid.messaging.MailboxForm | mailboxForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | mailboxForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | mailboxForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | mailboxForm did not originate from
getMailboxFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteMailboxes | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Mailbox deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteMailbox | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | mailboxId | the Id of the Mailbox to remove |
Errors | NOT_FOUND | mailboxId not found | |
NULL_ARGUMENT | mailboxId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageMailboxAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Mailbox aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasMailbox | ||
Description |
Adds an | ||
Parameters | osid.id.Id | mailboxId | the Id of a Mailbox |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | mailboxId not found | ||
NULL_ARGUMENT | mailboxId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |