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 TypeMethodDescriptionvoidsetAuthor(ApplicationUser author) voidDeprecated.voidvoidsetCreated(Date created) voidsetGroupLevel(String groupLevel) voidsetRoleLevelId(Long roleLevelId) voidsetUpdateAuthor(ApplicationUser updateAuthor) voidsetUpdateAuthor(String updateAuthor) Deprecated.voidsetUpdated(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-ApplicationUserto 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-ApplicationUserto 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.