public class MockComment extends Object implements MutableComment
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMENT_ROLE_DESCRIPTION |
static String |
COMMENT_ROLE_NAME |
ID_COMPARATOR| Constructor and Description |
|---|
MockComment(Long id,
String author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Issue issue) |
MockComment(Long id,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
Issue issue) |
MockComment(String author,
String body) |
MockComment(String author,
String body,
String groupLevel,
Long roleLevelId) |
MockComment(String author,
String body,
String groupLevel,
Long roleLevelId,
Date created) |
public static final String COMMENT_ROLE_NAME
public static final String COMMENT_ROLE_DESCRIPTION
public MockComment(String author, String body, String groupLevel, Long roleLevelId, Date created)
public MockComment(Long id, String author, String body, String groupLevel, Long roleLevelId, Date created, Issue issue)
public String getUpdateAuthor()
getUpdateAuthor in interface Commentpublic ApplicationUser getUpdateAuthorUser()
getUpdateAuthorUser in interface CommentUser objectpublic ApplicationUser getUpdateAuthorApplicationUser()
CommentgetUpdateAuthorApplicationUser in interface Commentobjectpublic String getUpdateAuthorFullName()
getUpdateAuthorFullName in interface Commentpublic Date getUpdated()
getUpdated in interface Commentpublic String getAuthor()
Commentpublic String getAuthorKey()
CommentgetAuthorKey in interface Commentpublic ApplicationUser getAuthorUser()
CommentUser that created the commentgetAuthorUser in interface CommentUser that created the comment.public ApplicationUser getAuthorApplicationUser()
Commentuser that created the commentgetAuthorApplicationUser in interface Commentuser that created the commentpublic String getAuthorFullName()
getAuthorFullName in interface Commentpublic Date getCreated()
getCreated in interface Commentpublic String getGroupLevel()
getGroupLevel in interface Commentpublic Long getId()
public Long getRoleLevelId()
getRoleLevelId in interface Commentpublic ProjectRole getRoleLevel()
getRoleLevel in interface Commentpublic void setAuthor(ApplicationUser author)
setAuthor in interface MutableCommentauthor - ApplicationUser to be set as author.public void setAuthor(String author)
setAuthor in interface MutableCommentauthor - userkey of the user to be set as author.public void setBody(String body)
setBody in interface MutableCommentpublic void setCreated(Date created)
setCreated in interface MutableCommentpublic void setGroupLevel(String groupLevel)
setGroupLevel in interface MutableCommentpublic void setRoleLevelId(Long roleLevelId)
setRoleLevelId in interface MutableCommentpublic void setUpdateAuthor(ApplicationUser updateAuthor)
setUpdateAuthor in interface MutableCommentupdateAuthor - ApplicationUser to be set as update author (i.e. the comment editor).public void setUpdateAuthor(String updateAuthor)
setUpdateAuthor in interface MutableCommentupdateAuthor - userkey of the user to be set as update author (i.e. the comment editor).public void setUpdated(Date updated)
setUpdated in interface MutableCommentCopyright © 2002-2015 Atlassian. All Rights Reserved.