OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.Receipt
Implementsosid.OsidObject
osid.Subjugateable
Description

A Message receipt is generated when a message is received by a receiving agent.

MethodgetMessageId
Description

Gets the Id of the Message.

Returnosid.id.Idthe message Id
CompliancemandatoryThis method must be implemented.
MethodgetMessage
Description

Gets the Message.

Returnosid.messaging.Messagethe message
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetReceivedTime
Description

Gets the time the message was received.

Returnosid.calendaring.DateTimethe time
CompliancemandatoryThis method must be implemented.
MethodgetReceivingAgentId
Description

Gets the Id of the Agent that received this message at this endpoint.

Returnosid.id.Idthe receiving agent Id
CompliancemandatoryThis method must be implemented.
MethodgetReceivingAgent
Description

Gets the Agent that received this message at this endpoint.

Returnosid.authentication.Agentthe receiving agent
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetRecipientId
Description

Gets the Id of the Resource that received this message at this endpoint.

Returnosid.id.Idthe recipient Id
CompliancemandatoryThis method must be implemented.
MethodgetRecipient
Description

Gets the Resource that received this message at this endpoint.

Returnosid.resource.Resourcethe recipient
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetReceiptRecord
Description

Gets the receipt record corresponding to the given Receipt record Type. This method is used to retrieve an object implementing the requested record. The receiptRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(receiptRecordType) is true .

Parametersosid.type.TypereceiptRecordTypethe receipt record type
Returnosid.messaging.records.ReceiptRecordthe receipt record
ErrorsNULL_ARGUMENT receiptRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(receiptRecordType) is false
CompliancemandatoryThis method must be implemented.