public interface CommentForm extends OsidRelationshipForm
This is the form for creating and updating Comment
objects. Like all OsidForm objects, various data elements
may be set here for use in the create and update methods in the
CommentAdminSession. 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 |
clearRating()
Clears the rating.
|
void |
clearText()
Clears the text.
|
CommentFormRecord |
getCommentFormRecord(Type commentRecordType)
Gets the
CommentFormRecord corresponding to the given
comment record Type. |
Metadata |
getRatingMetadata()
Gets the metadata for a rating.
|
Metadata |
getTextMetadata()
Gets the metadata for the text.
|
void |
setRating(Id gradeId)
Sets the rating.
|
void |
setText(java.lang.String text)
Sets the text.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata getTextMetadata()
mandatory - This method must be implemented. void setText(java.lang.String text)
text - the new textInvalidArgumentException - text is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - text is
null mandatory - This method must be implemented. void clearText()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getRatingMetadata()
mandatory - This method must be implemented. void setRating(Id gradeId)
gradeId - the new ratingInvalidArgumentException - gradeId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - gradeId is
null mandatory - This method must be implemented. void clearRating()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. CommentFormRecord getCommentFormRecord(Type commentRecordType) throws OperationFailedException
CommentFormRecord corresponding to the given
comment record Type. commentRecordType - the comment record typeNullArgumentException - commentRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(commentRecordType) is false
mandatory - This method must be implemented.