Interface Message
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A Message .
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageRecord(Type messageRecordType) Gets the message record corresponding to the givenMessagerecordType.This method is used to retrieve an object implementing the requested record.Gets the receipt for this message.Gets the receiptIdfor this message.Gets the time this message was received.Gets the list of all addressed recipientIdsof this message.Gets the list of all addressed recipients of this message.Gets the sender of this message.Gets the senderIdof this message.Gets the sending agent of this message.Gets the sending agentIdof this message.Gets the time this message was sent.Gets the subject line of this message.getText()Gets the text of the message.booleanTests if the resource related to the authenticated agent is one of the recipients of this message.booleanisSent()Tests if this message has been sent.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getSubjectLine
DisplayText getSubjectLine()Gets the subject line of this message.- Returns:
- the subject
- Compliance:
mandatory- This method must be implemented.
-
getText
DisplayText getText()Gets the text of the message.- Returns:
- the text
- Compliance:
mandatory- This method must be implemented.
-
isSent
boolean isSent()Tests if this message has been sent.- Returns:
trueif this message has been sent,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSentTime
DateTime getSentTime()Gets the time this message was sent.- Returns:
- the time
- Throws:
IllegalStateException-isSent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSenderId
Id getSenderId()Gets the senderIdof this message.- Returns:
- the sender agent
Id - Throws:
IllegalStateException-isSent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSender
Gets the sender of this message.- Returns:
- the sender
- Throws:
IllegalStateException-isSent()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSendingAgentId
Id getSendingAgentId()Gets the sending agentIdof this message.- Returns:
- the sending agent
Id - Throws:
IllegalStateException-isSent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSendingAgent
Gets the sending agent of this message.- Returns:
- the sending agent
- Throws:
IllegalStateException-isSent()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getReceivedTime
DateTime getReceivedTime()Gets the time this message was received.- Returns:
- the time
- Throws:
IllegalStateException-isSent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRecipientIds
IdList getRecipientIds()Gets the list of all addressed recipientIdsof this message.- Returns:
- the recipient resource
Ids - Throws:
IllegalStateException-isSent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRecipients
Gets the list of all addressed recipients of this message.- Returns:
- the recpient resources
- Throws:
IllegalStateException-isSent()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isRecipient
boolean isRecipient()Tests if the resource related to the authenticated agent is one of the recipients of this message.- Returns:
trueif this agent is a recipient,falseotherwise- Throws:
IllegalStateException-isSent()isfalse- Compliance:
mandatory- This method must be implemented.
-
getReceiptId
Id getReceiptId()Gets the receiptIdfor this message. A receipt is available for the receiver of this message.- Returns:
- the receipt
Id - Throws:
IllegalStateException-isRecipient()isfalse- Compliance:
mandatory- This method must be implemented.
-
getReceipt
Gets the receipt for this message. A receipt is available for the receiver of this message.- Returns:
- the receipt
- Throws:
IllegalStateException-isRecipient()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMessageRecord
Gets the message record corresponding to the givenMessagerecordType.This method is used to retrieve an object implementing the requested record. ThemessageRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(messageRecordType)istrue.- Parameters:
messageRecordType- the message record type- Returns:
- the message record
- Throws:
NullArgumentException-messageRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(messageRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-