com.atlassian.jira.issue.comments
Interface MutableComment

All Superinterfaces:
Comment
All Known Implementing Classes:
CommentImpl, MockComment

@PublicApi
public interface MutableComment
extends Comment

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.


Method Summary
 void setAuthor(ApplicationUser author)
           
 void setAuthor(String author)
          Deprecated. Use setAuthor(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
 void setBody(String body)
           
 void setCreated(Date created)
           
 void setGroupLevel(String groupLevel)
           
 void setRoleLevelId(Long roleLevelId)
           
 void setUpdateAuthor(ApplicationUser updateAuthor)
           
 void setUpdateAuthor(String updateAuthor)
          Deprecated. Use setUpdateAuthor(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
 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 Detail

setAuthor

void setAuthor(ApplicationUser author)
Parameters:
author - ApplicationUser to be set as author.

setAuthor

void setAuthor(String author)
Deprecated. Use setAuthor(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.

Parameters:
author - userkey of the user to be set as author.

setBody

void setBody(String body)

setCreated

void setCreated(Date created)

setGroupLevel

void setGroupLevel(String groupLevel)

setRoleLevelId

void setRoleLevelId(Long roleLevelId)

setUpdateAuthor

void setUpdateAuthor(ApplicationUser updateAuthor)
Parameters:
updateAuthor - ApplicationUser to be set as update author (i.e. the comment editor).

setUpdateAuthor

void setUpdateAuthor(String updateAuthor)
Deprecated. Use setUpdateAuthor(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

void setUpdated(Date updated)


Copyright © 2002-2013 Atlassian. All Rights Reserved.