Interface MutableComment
- All Known Implementing Classes:
CommentImpl
,MockComment
Represents a comment's in JIRA.
After calling any 'setter' method, you will need to call
CommentService.update(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.comments.MutableComment, boolean, com.atlassian.jira.util.ErrorCollection)
which does permission checking or
CommentManager.update(com.atlassian.jira.issue.comments.Comment, boolean)
which will just store the provided object, to persist the change to
the database.-
Field Summary
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAuthor
(ApplicationUser author) void
Deprecated.void
void
setCreated
(Date created) void
setGroupLevel
(String groupLevel) void
setRoleLevelId
(Long roleLevelId) void
setUpdateAuthor
(ApplicationUser updateAuthor) void
setUpdateAuthor
(String updateAuthor) Deprecated.void
setUpdated
(Date updated) Methods inherited from interface com.atlassian.jira.issue.comments.Comment
getAuthor, getAuthorApplicationUser, getAuthorFullName, getAuthorKey, getAuthorUser, getBody, getCreated, getGroupLevel, getId, getIssue, getRoleLevel, getRoleLevelId, getUpdateAuthor, getUpdateAuthorApplicationUser, getUpdateAuthorFullName, getUpdateAuthorUser, getUpdated
-
Method Details
-
setAuthor
- Parameters:
author
-ApplicationUser
to be set as author.
-
setAuthor
Deprecated.UsesetAuthor(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.- Parameters:
author
- userkey of the user to be set as author.
-
setBody
-
setCreated
-
setGroupLevel
-
setRoleLevelId
-
setUpdateAuthor
- Parameters:
updateAuthor
-ApplicationUser
to be set as update author (i.e. the comment editor).
-
setUpdateAuthor
Deprecated.UsesetUpdateAuthor(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.- Parameters:
updateAuthor
- userkey of the user to be set as update author (i.e. the comment editor).
-
setUpdated
-
setAuthor(com.atlassian.jira.user.ApplicationUser)
instead.