Class MockComment
java.lang.Object
com.atlassian.jira.issue.comments.MockComment
- All Implemented Interfaces:
WithId
,Comment
,MutableComment
-
Field Summary
FieldsFields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionMockComment
(Long id, Issue issue) 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, Issue issue) MockComment
(String author, String body, String groupLevel, Long roleLevelId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the key for the user that created the commentReturns theuser
that created the commentReturns the key for the user that created the commentReturns theUser
that created the commentgetBody()
Returns the name of the group to which comment visibility will be restrictedgetId()
getIssue()
Get the user that performed the updatevoid
setAuthor
(ApplicationUser author) void
void
void
setCreated
(Date created) void
setGroupLevel
(String groupLevel) void
setRoleLevelId
(Long roleLevelId) void
setUpdateAuthor
(ApplicationUser updateAuthor) void
setUpdateAuthor
(String updateAuthor) void
setUpdated
(Date updated) toString()
-
Field Details
-
COMMENT_ROLE_NAME
- See Also:
-
COMMENT_ROLE_DESCRIPTION
- See Also:
-
-
Constructor Details
-
MockComment
-
MockComment
-
MockComment
-
MockComment
-
MockComment
-
MockComment
-
MockComment
-
-
Method Details
-
getUpdateAuthor
- Specified by:
getUpdateAuthor
in interfaceComment
- Returns:
- userkey of the update author
-
getUpdateAuthorUser
- Specified by:
getUpdateAuthorUser
in interfaceComment
- Returns:
- a
User
object
-
getUpdateAuthorApplicationUser
Description copied from interface:Comment
Get the user that performed the update- Specified by:
getUpdateAuthorApplicationUser
in interfaceComment
- Returns:
- an
object
-
getUpdateAuthorFullName
- Specified by:
getUpdateAuthorFullName
in interfaceComment
-
getUpdated
- Specified by:
getUpdated
in interfaceComment
-
equals
-
toString
-
getAuthor
Description copied from interface:Comment
Returns the key for the user that created the comment -
getAuthorKey
Description copied from interface:Comment
Returns the key for the user that created the comment- Specified by:
getAuthorKey
in interfaceComment
- Returns:
- the key for the user that created the comment
-
getAuthorUser
Description copied from interface:Comment
Returns theUser
that created the comment- Specified by:
getAuthorUser
in interfaceComment
- Returns:
- the
User
that created the comment.
-
getAuthorApplicationUser
Description copied from interface:Comment
Returns theuser
that created the comment- Specified by:
getAuthorApplicationUser
in interfaceComment
- Returns:
- the
user
that created the comment
-
getAuthorFullName
- Specified by:
getAuthorFullName
in interfaceComment
-
getBody
-
getCreated
- Specified by:
getCreated
in interfaceComment
-
getGroupLevel
Description copied from interface:Comment
Returns the name of the group to which comment visibility will be restricted- Specified by:
getGroupLevel
in interfaceComment
- Returns:
- the name of the group to which comment visibility will be restricted.
-
getId
-
getRoleLevelId
- Specified by:
getRoleLevelId
in interfaceComment
-
getRoleLevel
- Specified by:
getRoleLevel
in interfaceComment
-
getIssue
-
setAuthor
- Specified by:
setAuthor
in interfaceMutableComment
- Parameters:
author
-ApplicationUser
to be set as author.
-
setAuthor
- Specified by:
setAuthor
in interfaceMutableComment
- Parameters:
author
- userkey of the user to be set as author.
-
setBody
- Specified by:
setBody
in interfaceMutableComment
-
setCreated
- Specified by:
setCreated
in interfaceMutableComment
-
setGroupLevel
- Specified by:
setGroupLevel
in interfaceMutableComment
-
setRoleLevelId
- Specified by:
setRoleLevelId
in interfaceMutableComment
-
setUpdateAuthor
- Specified by:
setUpdateAuthor
in interfaceMutableComment
- Parameters:
updateAuthor
-ApplicationUser
to be set as update author (i.e. the comment editor).
-
setUpdateAuthor
- Specified by:
setUpdateAuthor
in interfaceMutableComment
- Parameters:
updateAuthor
- userkey of the user to be set as update author (i.e. the comment editor).
-
setUpdated
- Specified by:
setUpdated
in interfaceMutableComment
-