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
| Property | Returns | Description |
|---|---|---|
| attachments | List<FileAttachmentBean> | The files attached to this comment. |
| comment | String | The text content of the comment. |
| contentTitle | String | The title of the content item, such as the blog article or forum post, that this comment was posted against. |
| date | long | The date the comment was posted. |
| groups | List<String> | The names of the groups the commenting user belongs to. |
| id | String | The unique identifier of the comment. |
| parentId | String | The id of the comment this one is a reply to. |
| primaryOrgTitle | String | The title of the commenting user's primary organisation. |
| user | ProfileBean | The 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.