|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommentManager
This is subsystem which allows to keep various user comments. Each comment is identified by commment id.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
@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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||