Interface Receipt
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
A Message receipt is generated when a message is received by a
receiving agent.
-
Method Summary
Modifier and TypeMethodDescriptionGets theMessage.Gets theIdof theMessage.getReceiptRecord(Type receiptRecordType) Gets the receipt record corresponding to the givenReceiptrecordType.This method is used to retrieve an object implementing the requested record.Gets the time the message was received.Gets theAgentthat received this message at this endpoint.Gets theIdof theAgentthat received this message at this endpoint.Gets theResourcethat received this message at this endpoint.Gets theIdof theResourcethat received this message at this endpoint.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
-
getMessageId
Id getMessageId()Gets theIdof theMessage.- Returns:
- the message
Id - Compliance:
mandatory- This method must be implemented.
-
getMessage
Gets theMessage.- Returns:
- the message
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getReceivedTime
DateTime getReceivedTime()Gets the time the message was received.- Returns:
- the time
- Compliance:
mandatory- This method must be implemented.
-
getReceivingAgentId
Id getReceivingAgentId()Gets theIdof theAgentthat received this message at this endpoint.- Returns:
- the receiving agent
Id - Compliance:
mandatory- This method must be implemented.
-
getReceivingAgent
Gets theAgentthat received this message at this endpoint.- Returns:
- the receiving agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRecipientId
Id getRecipientId()Gets theIdof theResourcethat received this message at this endpoint.- Returns:
- the recipient
Id - Compliance:
mandatory- This method must be implemented.
-
getRecipient
Gets theResourcethat received this message at this endpoint.- Returns:
- the recipient
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getReceiptRecord
Gets the receipt record corresponding to the givenReceiptrecordType.This method is used to retrieve an object implementing the requested record. ThereceiptRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(receiptRecordType)istrue.- Parameters:
receiptRecordType- the receipt record type- Returns:
- the receipt record
- Throws:
NullArgumentException-receiptRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(receiptRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-