Represents a single comment or reply posted against a piece of content, such as a blog article, forum post, question or website page. Populated by CommentService from the underlying Post, Comment or ForumReply entity and handed to templates and JS controllers as a read-only view of the comment, its author and any file attachments.

Implements: Serializable


Properties

PropertyReturnsDescription
attachmentsList<FileAttachmentBean>The files attached to this comment.
commentStringThe text content of the comment.
contentTitleStringThe title of the content item, such as the blog article or forum post, that this comment was posted against.
datelongThe date the comment was posted.
groupsList<String>The names of the groups the commenting user belongs to.
idStringThe unique identifier of the comment.
parentIdStringThe id of the comment this one is a reply to.
primaryOrgTitleStringThe title of the commenting user's primary organisation.
userProfileBeanThe profile of the user who posted the comment.

Methods

getId() · getUser() · getContentTitle() · getDate() · getComment() · getPrimaryOrgTitle() · getGroups() · getParentId() · getAttachments()

getId()

Returns: String

The unique identifier of the comment.

getUser()

Returns: ProfileBean

The profile of the user who posted the comment.

getContentTitle()

Returns: String

The title of the content item, such as the blog article or forum post, that this comment was posted against.

getDate()

Returns: long

The date the comment was posted.

getComment()

Returns: String

The text content of the comment.

getPrimaryOrgTitle()

Returns: String

The title of the commenting user's primary organisation.

getGroups()

Returns: List<String>

The names of the groups the commenting user belongs to.

getParentId()

Returns: String

The id of the comment this one is a reply to.

getAttachments()

Returns: List<FileAttachmentBean>

The files attached to this comment.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.