OSID Logo
OSID Specifications
commenting package
Version 3.1.0
Interfaceosid.commenting.Comment
Implementsosid.OsidRelationship
Used Byosid.commenting.CommentAdminSession
osid.commenting.CommentList
osid.commenting.CommentLookupSession
Description

A Comment represents a comment and/or rating related to a reference object in a book.

MethodgetReferenceId
Description

Gets the Id of the referenced object to which this comment pertains.

Returnosid.id.Id the reference Id
Compliancemandatory This method must be implemented.
MethodgetCommentorId
Description

Gets the Id of the resource who created this comment.

Returnosid.id.Id the Resource Id
Compliancemandatory This method must be implemented.
MethodgetCommentor
Description

Gets the resource who created this comment.

Returnosid.resource.Resource the Resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetCommentingAgentId
Description

Gets the Id of the agent who created this comment.

Returnosid.id.Id the Agent Id
Compliancemandatory This method must be implemented.
MethodgetCommentingAgent
Description

Gets the agent who created this comment.

Returnosid.authentication.Agent the Agent
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetText
Description

Gets the comment text.

Returnosid.locale.DisplayText the comment text
Compliancemandatory This method must be implemented.
MethodhasRating
Description

Tests if this comment includes a rating.

Returnboolean true if this comment includes a rating, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRatingId
Description

Gets the Id of the Grade.

Returnosid.id.Id the Agent Id
ErrorsILLEGAL_STATE hasRating() is false
Compliancemandatory This method must be implemented.
MethodgetRating
Description

Gets the Grade.

Returnosid.grading.Grade the Grade
ErrorsILLEGAL_STATE hasRating() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetCommentRecord
Description

Gets the comment record corresponding to the given Comment record Type.This method is used to retrieve an object implementing the requested record. The commentRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(commentRecordType) is true.

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