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
static com.google.common.base.Function<Comment,Long> getEntityId
          Function that returns Comment's entityId
static com.google.common.collect.Ordering<Comment> orderingByMostRecentFirst
           
 
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
 
Method Summary
 String getContent()
          The actual comment that was added
 Date getCreationDate()
          The date the comment was created
 long getEntityId()
          The id of object the comment was added to
 Date getLastModificationDate()
          The date the comment was last modified
 ResultsSummary getResultsSummary()
          Deprecated. since 5.0 use com.atlassian.bamboo.resultsummary.ResultsSummaryManager.getResultsSummary(getEntityId()) The build result the comment was added to
 com.atlassian.user.User getUser()
          The user that created the comment
 String getUserName()
          The username of the user that created the comment
 void setContent(String content)
           
 void setEntityId(long entityId)
           
 void setResultsSummary(ResultsSummary resultsSummary)
          Deprecated. since 5.0 use setEntityId(resultSummary.getId())
 void setUserName(String userName)
           
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Field Detail

getEntityId

static final com.google.common.base.Function<Comment,Long> getEntityId
Function that returns Comment's entityId


orderingByMostRecentFirst

static final com.google.common.collect.Ordering<Comment> orderingByMostRecentFirst
Method Detail

getContent

String getContent()
The actual comment that was added

Returns:

setContent

void setContent(String content)

getResultsSummary

@Deprecated
ResultsSummary getResultsSummary()
Deprecated. since 5.0 use com.atlassian.bamboo.resultsummary.ResultsSummaryManager.getResultsSummary(getEntityId()) The build result the comment was added to

Returns:

setResultsSummary

@Deprecated
void setResultsSummary(ResultsSummary resultsSummary)
Deprecated. since 5.0 use setEntityId(resultSummary.getId())


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 interface CreationDateProvider
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)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.