com.atlassian.bamboo.comment
Class CommentImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.comment.CommentImpl
All Implemented Interfaces:
Comment, BambooObject, java.lang.Cloneable

public class CommentImpl
extends BambooEntityObject
implements Comment


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
CommentImpl()
           
CommentImpl(ResultsSummary resultsSummary, java.lang.String content, java.lang.String userName, java.util.Date commentDate)
           
 
Method Summary
 java.lang.String getContent()
          The actual comment that was added
 ResultsSummary getResultsSummary()
          The build result the comment was added to
 java.lang.String getTimeSinceLastModification()
          Time since last modification of the comment in 'UI friendly' form.
 com.atlassian.user.User getUser()
          The user that created the comment
 java.lang.String getUserName()
          The username of the user that created the comment
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 void setContent(java.lang.String content)
           
 void setResultsSummary(ResultsSummary resultsSummary)
           
 void setUserName(java.lang.String userName)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.comment.Comment
getCreationDate, getLastModificationDate
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Constructor Detail

CommentImpl

public CommentImpl()

CommentImpl

public CommentImpl(ResultsSummary resultsSummary,
                   java.lang.String content,
                   java.lang.String userName,
                   java.util.Date commentDate)
Method Detail

getContent

public java.lang.String getContent()
Description copied from interface: Comment
The actual comment that was added

Specified by:
getContent in interface Comment
Returns:

setContent

public void setContent(java.lang.String content)
Specified by:
setContent in interface Comment

getUserName

public java.lang.String getUserName()
Description copied from interface: Comment
The username of the user that created the comment

Specified by:
getUserName in interface Comment
Returns:

setUserName

public void setUserName(java.lang.String userName)
Specified by:
setUserName in interface Comment

getUser

public com.atlassian.user.User getUser()
Description copied from interface: Comment
The user that created the comment

Specified by:
getUser in interface Comment
Returns:

getResultsSummary

public ResultsSummary getResultsSummary()
Description copied from interface: Comment
The build result the comment was added to

Specified by:
getResultsSummary in interface Comment
Returns:

setResultsSummary

public void setResultsSummary(ResultsSummary resultsSummary)
Specified by:
setResultsSummary in interface Comment

getTimeSinceLastModification

public java.lang.String getTimeSinceLastModification()
Description copied from interface: Comment
Time since last modification of the comment in 'UI friendly' form.

Specified by:
getTimeSinceLastModification in interface Comment
Returns:

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)


Copyright © 2010 Atlassian. All Rights Reserved.