OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.MessageForm
Implementsosid.OsidObjectForm
Description

This is the form for creating and updating Messages. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the MessageAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetSubjectLineMetadata
Description

Gets the metadata for the subject line.

Returnosid.Metadatametadata for the subject line
CompliancemandatoryThis method must be implemented.
MethodsetSubjectLine
Description

Sets the subject line of the message.

Parametersstringsubjectthe subject line
ErrorsINVALID_ARGUMENT subject is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearSubjectLine
Description

Clears the subject line.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetTextMetadata
Description

Gets the metadata for the text.

Returnosid.Metadatametadata for the text
CompliancemandatoryThis method must be implemented.
MethodsetText
Description

Sets the text of the message.

Parametersstringtextthe text
ErrorsINVALID_ARGUMENT text is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearText
Description

Clears the text.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetMessageFormRecord
Description

Gets the MessageFormRecord corresponding to the given Message record Type.

Parametersosid.type.TypemessageRecordTypethe message record type
Returnosid.messaging.records.MessageFormRecordthe message form record
ErrorsNULL_ARGUMENT messageRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(messageRecordType) is false
CompliancemandatoryThis method must be implemented.