OSID Logo
OSID Specifications
commenting package
Version 3.1.0
Interfaceosid.commenting.CommentForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.commenting.batch.CommentBatchForm
Used Byosid.commenting.CommentAdminSession
Description

This is the form for creating and updating Comments. 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.

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.

Parametersstringtext the new text
ErrorsINVALID_ARGUMENT text is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT text is null
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.
MethodgetRatingMetadata
Description

Gets the metadata for a rating.

Returnosid.Metadata metadata for the rating
Compliancemandatory This method must be implemented.
MethodsetRating
Description

Sets the rating.

Parametersosid.id.IdgradeId the new rating
ErrorsINVALID_ARGUMENT gradeId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeId is null
Compliancemandatory This method must be implemented.
MethodclearRating
Description

Clears the rating.

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

Gets the CommentFormRecord corresponding to the given comment record Type.

Parametersosid.type.TypecommentRecordType the comment record type
Returnosid.commenting.records.CommentFormRecord the comment form record
ErrorsNULL_ARGUMENT commentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(commentRecordType) is false
Compliancemandatory This method must be implemented.