Interface | osid.messaging.MessageLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving messages. This lookup session defines several views:
The methods Messages may have an additional records indicated by their
respective record types. The record may not be accessed
through a cast of the | ||
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 | canLookupMessages | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeMessageView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryMessageView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedMailboxView | ||
Description |
Federates the view for methods in this session. A federated view will include messages in mailboxes which are children of this mailbox in the mailbox hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedMailboxView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this mailbox only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getMessage | ||
Description |
Gets the | ||
Parameters | osid.id.Id | messageId | the Id of the Message to retrieve |
Return | osid.messaging.Message | the returned Message | |
Errors | NOT_FOUND | no Message found with the given Id | |
NULL_ARGUMENT | messageId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | messageIds | the list of Ids to retrieve |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | messageIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | messageGenusType | a message genus type |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | messageGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | messageGenusType | a message genus type |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | messageGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | messageRecordType | a message record type |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | messageRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesBySentTime | ||
Description |
Gets a | ||
Parameters | osid.calendaring.DateTime | from | starting date |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesBySentTimeAndGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | messageGenusType | a message genus type |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | messageGenusType, from or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesFromSender | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByGenusTypeFromSender | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.type.Type | messageGenusType | a message genus type | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | resourceId or messageGenusType is null
| |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesBySentTimeFromSender | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | resourceId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesBySentTimeAndGenusTypeFromSender | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.type.Type | messageGenusType | a message genus type | |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | resourceId, messageGenusType, from or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByGenusTypeForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.type.Type | messageGenusType | a message genus type | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | resourceId or messageGenusType is null
| |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByReceivedTimeForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | resourceId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByReceivedTimeAndGenusTypeForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.type.Type | messageGenusType | a message genus type | |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | resourceId, messageGenusType, from or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesFromSenderForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | senderResourceId | a resource Id |
osid.id.Id | recipientResourceId | a resource Id | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | senderResourceId or recipientResourceId is
null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByGenusTypeFromSenderForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | senderResourceId | a resource Id |
osid.id.Id | recipientResourceId | a resource Id | |
osid.type.Type | messageGenusType | a message genus type | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | NULL_ARGUMENT | senderResourceId, recipientResourceId or
messageGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByReceivedTimeFromSenderForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | senderResourceId | a resource Id |
osid.id.Id | recipientResourceId | a resource Id | |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | senderResourceId, recipientResourceId, from or to
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessagesByReceivedTimeAndGenusTypeFromSenderForRecipient | ||
Description |
Gets a | ||
Parameters | osid.id.Id | senderResourceId | a resource Id |
osid.id.Id | recipientResourceId | a resource Id | |
osid.type.Type | messageGenusType | a message genus type | |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.messaging.MessageList | the returned Message list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NULL_ARGUMENT | senderResourceId, recipientResourceId, messageGenusType, from
or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getMessages | ||
Description |
Gets all | ||
Return | osid.messaging.MessageList | a list of Messages | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |