public interface MessageForm extends OsidObjectForm
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.
Modifier and Type | Method and Description |
---|---|
void |
clearSubjectLine()
Clears the subject line.
|
void |
clearText()
Clears the text.
|
MessageFormRecord |
getMessageFormRecord(Type messageRecordType)
Gets the
MessageFormRecord corresponding to the given
Message record Type. |
Metadata |
getSubjectLineMetadata()
Gets the metadata for the subject line.
|
Metadata |
getTextMetadata()
Gets the metadata for the text.
|
void |
setSubjectLine(java.lang.String subject)
Sets the subject line of the message.
|
void |
setText(java.lang.String text)
Sets the text of the message.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getSubjectLineMetadata()
mandatory
- This method must be implemented. void setSubjectLine(java.lang.String subject)
subject
- the subject lineInvalidArgumentException
- subject
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearSubjectLine()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getTextMetadata()
mandatory
- This method must be implemented. void setText(java.lang.String text)
text
- the textInvalidArgumentException
- text
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearText()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. MessageFormRecord getMessageFormRecord(Type messageRecordType) throws OperationFailedException
MessageFormRecord
corresponding to the given
Message
record Type.
messageRecordType
- the message record typeNullArgumentException
- messageRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(messageRecordType)
is false
mandatory
- This method must be implemented.