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 TypeMethodDescriptionbooleanReturns the key for the user that created the commentReturns theuserthat created the commentReturns the key for the user that created the commentReturns theUserthat created the commentgetBody()Returns the name of the group to which comment visibility will be restrictedgetId()getIssue()Get the user that performed the updatevoidsetAuthor(ApplicationUser author) voidvoidvoidsetCreated(Date created) voidsetGroupLevel(String groupLevel) voidsetRoleLevelId(Long roleLevelId) voidsetUpdateAuthor(ApplicationUser updateAuthor) voidsetUpdateAuthor(String updateAuthor) voidsetUpdated(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:
getUpdateAuthorin interfaceComment- Returns:
- userkey of the update author
-
getUpdateAuthorUser
- Specified by:
getUpdateAuthorUserin interfaceComment- Returns:
- a
Userobject
-
getUpdateAuthorApplicationUser
Description copied from interface:CommentGet the user that performed the update- Specified by:
getUpdateAuthorApplicationUserin interfaceComment- Returns:
- an
object
-
getUpdateAuthorFullName
- Specified by:
getUpdateAuthorFullNamein interfaceComment
-
getUpdated
- Specified by:
getUpdatedin interfaceComment
-
equals
-
toString
-
getAuthor
Description copied from interface:CommentReturns the key for the user that created the comment -
getAuthorKey
Description copied from interface:CommentReturns the key for the user that created the comment- Specified by:
getAuthorKeyin interfaceComment- Returns:
- the key for the user that created the comment
-
getAuthorUser
Description copied from interface:CommentReturns theUserthat created the comment- Specified by:
getAuthorUserin interfaceComment- Returns:
- the
Userthat created the comment.
-
getAuthorApplicationUser
Description copied from interface:CommentReturns theuserthat created the comment- Specified by:
getAuthorApplicationUserin interfaceComment- Returns:
- the
userthat created the comment
-
getAuthorFullName
- Specified by:
getAuthorFullNamein interfaceComment
-
getBody
-
getCreated
- Specified by:
getCreatedin interfaceComment
-
getGroupLevel
Description copied from interface:CommentReturns the name of the group to which comment visibility will be restricted- Specified by:
getGroupLevelin interfaceComment- Returns:
- the name of the group to which comment visibility will be restricted.
-
getId
-
getRoleLevelId
- Specified by:
getRoleLevelIdin interfaceComment
-
getRoleLevel
- Specified by:
getRoleLevelin interfaceComment
-
getIssue
-
setAuthor
- Specified by:
setAuthorin interfaceMutableComment- Parameters:
author-ApplicationUserto be set as author.
-
setAuthor
- Specified by:
setAuthorin interfaceMutableComment- Parameters:
author- userkey of the user to be set as author.
-
setBody
- Specified by:
setBodyin interfaceMutableComment
-
setCreated
- Specified by:
setCreatedin interfaceMutableComment
-
setGroupLevel
- Specified by:
setGroupLevelin interfaceMutableComment
-
setRoleLevelId
- Specified by:
setRoleLevelIdin interfaceMutableComment
-
setUpdateAuthor
- Specified by:
setUpdateAuthorin interfaceMutableComment- Parameters:
updateAuthor-ApplicationUserto be set as update author (i.e. the comment editor).
-
setUpdateAuthor
- Specified by:
setUpdateAuthorin interfaceMutableComment- Parameters:
updateAuthor- userkey of the user to be set as update author (i.e. the comment editor).
-
setUpdated
- Specified by:
setUpdatedin interfaceMutableComment
-