Package com.atlassian.bamboo.comment
Class CommentImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.comment.CommentImpl
-
- All Implemented Interfaces:
Comment,BambooIdProvider,BambooObject,CreationDateProvider,Cloneable
@Entity public class CommentImpl extends BambooEntityObject implements Comment
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.comment.Comment
getEntityId, orderingByMostRecentFirst
-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
-
Constructor Summary
Constructors Constructor Description CommentImpl()CommentImpl(String content, String userName, Date commentDate, long entityId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()The actual comment that was addedlonggetEntityId()The id of object the comment was added tocom.atlassian.user.UsergetUser()The user that created the commentStringgetUserName()The username of the user that created the commentvoidsetBambooUserManager(BambooUserManager bambooUserManager)voidsetContent(String content)voidsetEntityId(long entityId)voidsetUserName(String userName)-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.comment.Comment
getCreationDate, getLastModificationDate
-
-
-
-
Method Detail
-
getContent
public String getContent()
Description copied from interface:CommentThe actual comment that was added- Specified by:
getContentin interfaceComment
-
setContent
public void setContent(String content)
- Specified by:
setContentin interfaceComment
-
getUserName
public String getUserName()
Description copied from interface:CommentThe username of the user that created the comment- Specified by:
getUserNamein interfaceComment- Returns:
-
setUserName
public void setUserName(String userName)
- Specified by:
setUserNamein interfaceComment
-
getUser
public com.atlassian.user.User getUser()
Description copied from interface:CommentThe user that created the comment
-
getEntityId
public long getEntityId()
Description copied from interface:CommentThe id of object the comment was added to- Specified by:
getEntityIdin interfaceComment
-
setEntityId
public void setEntityId(long entityId)
- Specified by:
setEntityIdin interfaceComment
-
setBambooUserManager
public void setBambooUserManager(BambooUserManager bambooUserManager)
-
-