|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.pvm.internal.model.CommentImpl
public class CommentImpl
Field Summary | |
---|---|
protected java.util.List<CommentImpl> |
comments
|
protected long |
dbid
|
protected int |
dbversion
|
protected java.lang.String |
message
|
protected CommentImpl |
parent
|
protected java.util.Date |
time
|
protected java.lang.String |
userId
|
Constructor Summary | |
---|---|
CommentImpl()
|
|
CommentImpl(java.lang.String message)
|
Method Summary | |
---|---|
Comment |
createComment(java.lang.String message)
create a comment |
boolean |
equals(java.lang.Object o)
|
java.util.List<Comment> |
getComments()
all comments. |
long |
getDbid()
the meaningless database primary key |
java.lang.String |
getMessage()
the actual message. |
Comment |
getParent()
|
java.util.Date |
getTime()
time that specifies when the comment was made |
java.lang.String |
getUserId()
the id of the user that made this comment. |
void |
removeComment(Comment comment)
remove a comment |
void |
setComments(java.util.List<CommentImpl> replies)
|
void |
setMessage(java.lang.String message)
|
void |
setParent(CommentImpl parent)
|
void |
setTime(java.util.Date time)
|
void |
setUserId(java.lang.String userId)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long dbid
protected int dbversion
protected java.lang.String userId
protected java.util.Date time
protected java.lang.String message
protected CommentImpl parent
protected java.util.List<CommentImpl> comments
Constructor Detail |
---|
public CommentImpl()
public CommentImpl(java.lang.String message)
Method Detail |
---|
public Comment createComment(java.lang.String message)
Discussable
createComment
in interface Discussable
public void removeComment(Comment comment)
Discussable
removeComment
in interface Discussable
public Comment getParent()
public void setParent(CommentImpl parent)
public java.util.List<Comment> getComments()
Discussable
getComments
in interface Discussable
public void setComments(java.util.List<CommentImpl> replies)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public long getDbid()
Comment
getDbid
in interface Comment
public java.lang.String getUserId()
Comment
getUserId
in interface Comment
public java.lang.String getMessage()
Comment
getMessage
in interface Comment
public java.util.Date getTime()
Comment
getTime
in interface Comment
public void setUserId(java.lang.String userId)
public void setTime(java.util.Date time)
public void setMessage(java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |