|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.comments.CommentImpl
public class CommentImpl
Represents a comment on an issue by a user. Comment is essentially a GenericValue wrapper with getters
CommentManager.getCommentsForUser(com.atlassian.jira.issue.Issue, com.opensymphony.user.User)
Constructor Summary | |
---|---|
CommentImpl(CommentManager manager,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
Issue issue)
Creates a new instance of this class. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAuthor()
Get the user that created the comment |
String |
getAuthorFullName()
|
User |
getAuthorObject()
Get the user that created the comment |
com.atlassian.crowd.embedded.api.User |
getAuthorUser()
Get the user that created the comment |
String |
getBody()
|
Date |
getCreated()
Returns a date when this comment was created. |
String |
getGroupLevel()
|
Long |
getId()
|
Issue |
getIssue()
|
ProjectRole |
getRoleLevel()
|
Long |
getRoleLevelId()
|
String |
getUpdateAuthor()
|
String |
getUpdateAuthorFullName()
|
User |
getUpdateAuthorObject()
Get the user that performed the update |
com.atlassian.crowd.embedded.api.User |
getUpdateAuthorUser()
Get the user that performed the update |
Date |
getUpdated()
|
int |
hashCode()
|
void |
setAuthor(String author)
|
void |
setBody(String body)
|
void |
setCreated(Date created)
|
void |
setGroupLevel(String groupLevel)
|
void |
setRoleLevelId(Long roleLevelId)
|
void |
setUpdateAuthor(String updateAuthor)
|
void |
setUpdated(Date updated)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentImpl(CommentManager manager, String author, String updateAuthor, String body, String groupLevel, Long roleLevelId, Date created, Date updated, Issue issue) throws IllegalArgumentException
manager
- comment managerauthor
- user name of the author, requiredupdateAuthor
- user name of the author that has last updatedbody
- body of the comment, requiredgroupLevel
- group visibility levelroleLevelId
- role ID visibility levelcreated
- created date, set to new Date if nullupdated
- updated date, set to created Date if nullissue
- related issue
IllegalArgumentException
- if ivalid data was passedMethod Detail |
---|
public String getAuthor()
Comment
getAuthor
in interface Comment
public User getAuthorObject()
Comment
getAuthorObject
in interface Comment
public com.atlassian.crowd.embedded.api.User getAuthorUser()
Comment
getAuthorUser
in interface Comment
public String getAuthorFullName()
getAuthorFullName
in interface Comment
public String getBody()
getBody
in interface Comment
public Date getCreated()
getCreated
in interface Comment
public String getGroupLevel()
getGroupLevel
in interface Comment
public Long getId()
getId
in interface Comment
public String getUpdateAuthor()
getUpdateAuthor
in interface Comment
public User getUpdateAuthorObject()
Comment
getUpdateAuthorObject
in interface Comment
public com.atlassian.crowd.embedded.api.User getUpdateAuthorUser()
Comment
getUpdateAuthorUser
in interface Comment
public String getUpdateAuthorFullName()
getUpdateAuthorFullName
in interface Comment
public Date getUpdated()
getUpdated
in interface Comment
public void setAuthor(String author)
setAuthor
in interface MutableComment
public void setBody(String body)
setBody
in interface MutableComment
public void setGroupLevel(String groupLevel)
setGroupLevel
in interface MutableComment
public void setRoleLevelId(Long roleLevelId)
setRoleLevelId
in interface MutableComment
public void setCreated(Date created)
setCreated
in interface MutableComment
public void setUpdateAuthor(String updateAuthor)
setUpdateAuthor
in interface MutableComment
public void setUpdated(Date updated)
setUpdated
in interface MutableComment
public Long getRoleLevelId()
getRoleLevelId
in interface Comment
public ProjectRole getRoleLevel()
getRoleLevel
in interface Comment
public Issue getIssue()
getIssue
in interface Comment
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |