Package com.atlassian.bamboo.comment
Interface Comment
-
- All Superinterfaces:
BambooIdProvider
,BambooObject
,CreationDateProvider
- All Known Implementing Classes:
CommentImpl
public interface Comment extends BambooObject, CreationDateProvider
A comment on a build result in Bamboo
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<Comment,Long>
getEntityId
Function that returns Comment's entityIdstatic com.google.common.collect.Ordering<Comment>
orderingByMostRecentFirst
-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable String
getContent()
The actual comment that was addedDate
getCreationDate()
The date the comment was createdlong
getEntityId()
The id of object the comment was added toDate
getLastModificationDate()
The date the comment was last modifiedcom.atlassian.user.User
getUser()
The user that created the commentString
getUserName()
The username of the user that created the commentvoid
setContent(String content)
void
setEntityId(long entityId)
void
setUserName(String userName)
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Method Detail
-
getContent
@Nullable @Nullable String getContent()
The actual comment that was added
-
setContent
void setContent(String content)
-
getEntityId
long getEntityId()
The id of object the comment was added to
-
setEntityId
void setEntityId(long entityId)
-
getLastModificationDate
Date getLastModificationDate()
The date the comment was last modified- Returns:
-
getCreationDate
Date getCreationDate()
The date the comment was created- Specified by:
getCreationDate
in interfaceCreationDateProvider
- Returns:
-
getUser
com.atlassian.user.User getUser()
The user that created the comment- Returns:
-
getUserName
String getUserName()
The username of the user that created the comment- Returns:
-
setUserName
void setUserName(String userName)
-
-