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 String
getContent()
The actual comment that was addedlong
getEntityId()
The id of object the comment was added tocom.atlassian.user.User
getUser()
The user that created the commentString
getUserName()
The username of the user that created the commentvoid
setBambooUserManager(BambooUserManager bambooUserManager)
void
setContent(String content)
void
setEntityId(long entityId)
void
setUserName(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:Comment
The actual comment that was added- Specified by:
getContent
in interfaceComment
-
setContent
public void setContent(String content)
- Specified by:
setContent
in interfaceComment
-
getUserName
public String getUserName()
Description copied from interface:Comment
The username of the user that created the comment- Specified by:
getUserName
in interfaceComment
- Returns:
-
setUserName
public void setUserName(String userName)
- Specified by:
setUserName
in interfaceComment
-
getUser
public com.atlassian.user.User getUser()
Description copied from interface:Comment
The user that created the comment
-
getEntityId
public long getEntityId()
Description copied from interface:Comment
The id of object the comment was added to- Specified by:
getEntityId
in interfaceComment
-
setEntityId
public void setEntityId(long entityId)
- Specified by:
setEntityId
in interfaceComment
-
setBambooUserManager
public void setBambooUserManager(BambooUserManager bambooUserManager)
-
-