| Interface | osid.messaging.ReceiptAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.messaging.batch.ReceiptBatchAdminSession | ||
| Used By | osid.messaging.MessagingManager | ||
osid.messaging.MessagingProxyManager | |||
| 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 Like all | ||
| Method | getMailboxId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Mailbox Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMailbox | ||
| Description |
Gets the | ||
| Return | osid.messaging.Mailbox | the Mailbox associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateReceipts | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Receipt creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateReceiptWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | receiptRecordTypes | array of receipt record types |
| Return | boolean | true if Receipt creation using the specified
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | receiptRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getReceiptFormForCreate | ||
| Description |
Gets the receipt form for creating new receipts. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | messageId | the Id of the Message |
osid.type.Type[] | receiptRecordTypes | array of receipt record types | |
| Return | osid.messaging.ReceiptForm | the receipt form | |
| Errors | NOT_FOUND | messageId is not found | |
| NULL_ARGUMENT | messageId or receiptRecordTypes 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 | createReceipt | ||
| Description |
Creates a new | ||
| Parameters | osid.messaging.ReceiptForm | receiptForm | the form for this Receipt |
| Return | osid.messaging.Receipt | the new Receipt | |
| Errors | ILLEGAL_STATE | receiptForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | receiptForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | receiptForm did not originate from
getReceiptFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateReceipts | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Receipt modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getReceiptFormForUpdate | ||
| Description |
Gets the receipt form for updating an existing receipt. A new receipt form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | receiptId | the Id of the Receipt |
| Return | osid.messaging.ReceiptForm | the receipt form | |
| Errors | NOT_FOUND | receiptId is not found | |
| NULL_ARGUMENT | receiptId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateReceipt | ||
| Description |
Updates an existing receipt. | ||
| Parameters | osid.messaging.ReceiptForm | receiptForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | receiptForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | receiptForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | receiptForm did not originate from
getReceiptFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteReceipts | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Receipt deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteReceipt | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | receiptId | the Id of the Receipt to remove |
| Errors | NOT_FOUND | receiptId not found | |
| NULL_ARGUMENT | receiptId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageReceiptAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Receipt aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasReceipt | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | receiptId | the Id of a Receipt |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | receiptId not found | ||
| NULL_ARGUMENT | aliasId or receiptId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |