Package org.exoplatform.task.model
Class CommentModel
- java.lang.Object
-
- org.exoplatform.task.model.CommentModel
-
public class CommentModel extends Object
- Author:
- Tuyen Nguyen The.
-
-
Constructor Summary
Constructors Constructor Description CommentModel(Comment cmt, User author, String formattedComment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEdit(org.exoplatform.services.security.Identity identity)UsergetAuthor()StringgetComment()DategetCreatedTime()StringgetFormattedComment()longgetId()LonggetParentCommentId()List<CommentModel>getSubComments()TaskgetTask()voidsetSubComments(List<CommentModel> subComments)
-
-
-
Method Detail
-
getAuthor
public User getAuthor()
-
getCreatedTime
public Date getCreatedTime()
-
getParentCommentId
public Long getParentCommentId()
-
getComment
public String getComment()
-
getId
public long getId()
-
getTask
public Task getTask()
-
getFormattedComment
public String getFormattedComment()
-
canEdit
public boolean canEdit(org.exoplatform.services.security.Identity identity)
-
setSubComments
public void setSubComments(List<CommentModel> subComments)
-
getSubComments
public List<CommentModel> getSubComments()
-
-