mock
Class MockComment
java.lang.Object
mock.MockComment
- All Implemented Interfaces:
- Comment, MutableComment
public class MockComment
- extends Object
- implements MutableComment
|
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)
|
COMMENT_ROLE_NAME
public static final String COMMENT_ROLE_NAME
- See Also:
- Constant Field Values
COMMENT_ROLE_DESCRIPTION
public static final String COMMENT_ROLE_DESCRIPTION
- See Also:
- Constant Field Values
MockComment
public MockComment(String author,
String body)
MockComment
public MockComment(String author,
String body,
String groupLevel,
Long roleLevelId)
MockComment
public MockComment(String author,
String body,
String groupLevel,
Long roleLevelId,
Date created)
MockComment
public MockComment(Long id,
String author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Issue issue)
MockComment
public MockComment(Long id,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
Issue issue)
getUpdateAuthor
public String getUpdateAuthor()
- Specified by:
getUpdateAuthor in interface Comment
- Returns:
- userkey of the update author
getUpdateAuthorUser
public com.atlassian.crowd.embedded.api.User getUpdateAuthorUser()
- Specified by:
getUpdateAuthorUser in interface Comment
- Returns:
- a
User object
getUpdateAuthorApplicationUser
public ApplicationUser getUpdateAuthorApplicationUser()
- Description copied from interface:
Comment
- Get the user that performed the update
- Specified by:
getUpdateAuthorApplicationUser in interface Comment
- Returns:
- an
object
getUpdateAuthorFullName
public String getUpdateAuthorFullName()
- Specified by:
getUpdateAuthorFullName in interface Comment
getUpdated
public Date getUpdated()
- Specified by:
getUpdated in interface Comment
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
getAuthor
public String getAuthor()
- Specified by:
getAuthor in interface Comment
- Returns:
- userkey of the user that created the comment
getAuthorUser
public com.atlassian.crowd.embedded.api.User getAuthorUser()
- Specified by:
getAuthorUser in interface Comment
- Returns:
- a
User object
getAuthorApplicationUser
public ApplicationUser getAuthorApplicationUser()
- Description copied from interface:
Comment
- Get the user that created the comment
- Specified by:
getAuthorApplicationUser in interface Comment
- Returns:
- an
ApplicationUser object
getAuthorFullName
public String getAuthorFullName()
- Specified by:
getAuthorFullName in interface Comment
getBody
public String getBody()
- Specified by:
getBody in interface Comment
getCreated
public Date getCreated()
- Specified by:
getCreated in interface Comment
getGroupLevel
public String getGroupLevel()
- Specified by:
getGroupLevel in interface Comment
getId
public Long getId()
- Specified by:
getId in interface Comment
getRoleLevelId
public Long getRoleLevelId()
- Specified by:
getRoleLevelId in interface Comment
getRoleLevel
public ProjectRole getRoleLevel()
- Specified by:
getRoleLevel in interface Comment
getIssue
public Issue getIssue()
- Specified by:
getIssue in interface Comment
setAuthor
public void setAuthor(ApplicationUser author)
- Specified by:
setAuthor in interface MutableComment
- Parameters:
author - ApplicationUser to be set as author.
setAuthor
public void setAuthor(String author)
- Specified by:
setAuthor in interface MutableComment
- Parameters:
author - userkey of the user to be set as author.
setBody
public void setBody(String body)
- Specified by:
setBody in interface MutableComment
setCreated
public void setCreated(Date created)
- Specified by:
setCreated in interface MutableComment
setGroupLevel
public void setGroupLevel(String groupLevel)
- Specified by:
setGroupLevel in interface MutableComment
setRoleLevelId
public void setRoleLevelId(Long roleLevelId)
- Specified by:
setRoleLevelId in interface MutableComment
setUpdateAuthor
public void setUpdateAuthor(ApplicationUser updateAuthor)
- Specified by:
setUpdateAuthor in interface MutableComment
- Parameters:
updateAuthor - ApplicationUser to be set as update author (i.e. the comment editor).
setUpdateAuthor
public void setUpdateAuthor(String updateAuthor)
- Specified by:
setUpdateAuthor in interface MutableComment
- Parameters:
updateAuthor - userkey of the user to be set as update author (i.e. the comment editor).
setUpdated
public void setUpdated(Date updated)
- Specified by:
setUpdated in interface MutableComment
Copyright © 2002-2013 Atlassian. All Rights Reserved.