|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmock.MockComment
public class MockComment
| Field Summary | |
|---|---|
static String |
COMMENT_ROLE_DESCRIPTION
|
static String |
COMMENT_ROLE_NAME
|
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 |
com.atlassian.crowd.embedded.api.User |
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()
|
com.atlassian.crowd.embedded.api.User |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COMMENT_ROLE_NAME
public static final String COMMENT_ROLE_DESCRIPTION
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public String getUpdateAuthor()
getUpdateAuthor in interface Commentpublic com.atlassian.crowd.embedded.api.User getUpdateAuthorUser()
getUpdateAuthorUser in interface CommentUser objectpublic ApplicationUser getUpdateAuthorApplicationUser()
Comment
getUpdateAuthorApplicationUser in interface Commentobjectpublic String getUpdateAuthorFullName()
getUpdateAuthorFullName in interface Commentpublic Date getUpdated()
getUpdated in interface Commentpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Objectpublic String getAuthor()
Comment
getAuthor in interface Commentpublic String getAuthorKey()
Comment
getAuthorKey in interface Commentpublic com.atlassian.crowd.embedded.api.User getAuthorUser()
CommentUser that created the comment
getAuthorUser in interface CommentUser that created the comment.public ApplicationUser getAuthorApplicationUser()
Commentuser that created the comment
getAuthorApplicationUser in interface Commentuser that created the commentpublic String getAuthorFullName()
getAuthorFullName in interface Commentpublic String getBody()
getBody in interface Commentpublic Date getCreated()
getCreated in interface Commentpublic String getGroupLevel()
getGroupLevel in interface Commentpublic Long getId()
getId in interface Commentpublic Long getRoleLevelId()
getRoleLevelId in interface Commentpublic ProjectRole getRoleLevel()
getRoleLevel in interface Commentpublic Issue getIssue()
getIssue 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 MutableComment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||