public interface CommentManager
| Modifier and Type | Method and Description |
|---|---|
Comment |
createComment(long commentId,
long userId,
java.lang.String comment,
java.util.Date timestamp)
Used to create Comment object from existing data, for example loaded from SQL query.
|
Comment |
findComment(long commentId)
Find comment by comment Id
|
Comment |
newComment(long userId,
java.lang.String comment)
Create new comment
|
Comment |
newComment(SUser user,
java.lang.String comment)
Creates new comment
|
@NotNull Comment newComment(long userId, java.lang.String comment)
userId - Id of user, -1 if not availablecomment - comment@NotNull Comment newComment(@Nullable SUser user, java.lang.String comment)
user - usercomment - comment@Nullable Comment findComment(long commentId)
commentId - comment identifier@NotNull Comment createComment(long commentId, long userId, java.lang.String comment, java.util.Date timestamp)
commentId - id of the comment to be createduserId - Id of user, -1 if not availablecomment - comment texttimestamp - when comment was created