OSID Logo
OSID Specifications
messaging package
Version 3.1.0
Interfaceosid.messaging.MessageForm
Implementsosid.OsidObjectForm
Implemented Byosid.messaging.batch.MessageBatchForm
Used Byosid.messaging.MessageAdminSession
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.Metadata metadata for the subject line
Compliancemandatory This method must be implemented.
MethodsetSubjectLine
Description

Sets the subject line of the message.

Parametersstringsubject the subject line
ErrorsINVALID_ARGUMENT subject is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearSubjectLine
Description

Clears the subject line.

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

Gets the metadata for the text.

Returnosid.Metadata metadata for the text
Compliancemandatory This method must be implemented.
MethodsetText
Description

Sets the text of the message.

Parametersstringtext the text
ErrorsINVALID_ARGUMENT text is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearText
Description

Clears the text.

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

Gets the MessageFormRecord corresponding to the given Message record Type .

Parametersosid.type.TypemessageRecordType the message record type
Returnosid.messaging.records.MessageFormRecord the message form record
ErrorsNULL_ARGUMENT messageRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(messageRecordType) is false
Compliancemandatory This method must be implemented.