public class

MockComment

extends Object
implements MutableComment
java.lang.Object
   ↳ com.atlassian.jira.issue.comments.MockComment

Summary

Constants
String COMMENT_ROLE_DESCRIPTION
String COMMENT_ROLE_NAME
[Expand]
Inherited Fields
From interface com.atlassian.jira.entity.WithId
Public Constructors
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)
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)
Public Methods
boolean equals(Object o)
String getAuthor()
Returns the key for the user that created the comment
ApplicationUser getAuthorApplicationUser()
Returns the user that created the comment
String getAuthorFullName()
String getAuthorKey()
Returns the key for the user that created the comment
ApplicationUser getAuthorUser()
Returns the User that created the comment
String getBody()
Date getCreated()
String getGroupLevel()
Long getId()
Issue getIssue()
ProjectRole getRoleLevel()
Long getRoleLevelId()
String getUpdateAuthor()
ApplicationUser getUpdateAuthorApplicationUser()
Get the user that performed the update
String getUpdateAuthorFullName()
ApplicationUser getUpdateAuthorUser()
Date getUpdated()
void setAuthor(ApplicationUser author)
void setAuthor(String author)
void setBody(String body)
void setCreated(Date created)
void setGroupLevel(String groupLevel)
void setRoleLevelId(Long roleLevelId)
void setUpdateAuthor(ApplicationUser updateAuthor)
void setUpdateAuthor(String updateAuthor)
void setUpdated(Date updated)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.issue.comments.Comment
From interface com.atlassian.jira.issue.comments.MutableComment

Constants

public static final String COMMENT_ROLE_DESCRIPTION

Constant Value: "My Test Role"

public static final String COMMENT_ROLE_NAME

Constant Value: "My Role"

Public Constructors

public MockComment (String author, String body)

public MockComment (String author, String body, String groupLevel, Long roleLevelId)

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 MockComment (Long id, String author, String updateAuthor, String body, String groupLevel, Long roleLevelId, Date created, Date updated, Issue issue)

Public Methods

public boolean equals (Object o)

public String getAuthor ()

Returns the key for the user that created the comment

Returns
  • the key for the user that created the comment

public ApplicationUser getAuthorApplicationUser ()

Returns the user that created the comment

Returns
  • the user that created the comment

public String getAuthorFullName ()

public String getAuthorKey ()

Returns the key for the user that created the comment

Returns
  • the key for the user that created the comment

public ApplicationUser getAuthorUser ()

Returns the User that created the comment

Returns
  • the User that created the comment.

public String getBody ()

public Date getCreated ()

public String getGroupLevel ()

public Long getId ()

public Issue getIssue ()

public ProjectRole getRoleLevel ()

public Long getRoleLevelId ()

public String getUpdateAuthor ()

public ApplicationUser getUpdateAuthorApplicationUser ()

Get the user that performed the update

Returns

public String getUpdateAuthorFullName ()

public ApplicationUser getUpdateAuthorUser ()

public Date getUpdated ()

public void setAuthor (ApplicationUser author)

public void setAuthor (String author)

public void setBody (String body)

public void setCreated (Date created)

public void setGroupLevel (String groupLevel)

public void setRoleLevelId (Long roleLevelId)

public void setUpdateAuthor (ApplicationUser updateAuthor)

public void setUpdateAuthor (String updateAuthor)

public void setUpdated (Date updated)

public String toString ()