Interface CommentsSessionMixin
- All Superinterfaces:
UniqueSessionIntIdMixin
supports
* commenting a whole tree of comments
* a change history table
* mentions @username (link is genereated to profile like /#/profiles/[username]
* some user refs are by user name, so user name must be equal (cannot use email key as they should be private)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final org.nustaq.serialization.FSTConfigurationFields inherited from interface org.nustaq.kontraktor.apputil.UniqueSessionIntIdMixin
count, MAX_CONC_SESSIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record>addComment(String commentTreeKey, String parentCommentId, String text0) returns new record of new commentdefault org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record>static Stringdbg_asJson(org.nustaq.reallive.api.Record r) default org.nustaq.kontraktor.IPromisedelComment(String rootCommentKey, String commentId) returns changed record (if text was set to deleted or "deleted" if record has been deleteddefault org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record>editComment(String commentTreeKey, String commentId, String text0) return Record of edited commentdefault org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record>getOrCreateDiscussion(String commentTreeKey) default org.nustaq.kontraktor.IPromise<CommentRecord>getParentComment(String commentTreeKey, String subCommentId) getUser()default org.nustaq.kontraktor.IPromise<String>highLighComment(String comment, int index, Set mentions) default org.nustaq.reallive.api.SubscriberlistenCommentHistory(org.nustaq.kontraktor.Callback<org.nustaq.reallive.api.ChangeMessage> rec) does NOT broadcast self inflicted changesMethods inherited from interface org.nustaq.kontraktor.apputil.UniqueSessionIntIdMixin
_getUnqiqueIntSessionId, _setUnqiqueInSessionId, getActor, getIntSessionId, initUniqueSessionIntIdMixin
-
Field Details
-
CommentTableName
- See Also:
-
HistoryTableName
- See Also:
-
DefaultUserImagePath
- See Also:
-
jsonConfiguration
static final org.nustaq.serialization.FSTConfiguration jsonConfiguration
-
-
Method Details
-
getDClient
DataClient getDClient() -
getUser
UserRecord getUser() -
createDiscussion
default org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record> createDiscussion() -
getOrCreateDiscussion
default org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record> getOrCreateDiscussion(String commentTreeKey) -
dbg_asJson
-
getParentComment
default org.nustaq.kontraktor.IPromise<CommentRecord> getParentComment(String commentTreeKey, String subCommentId) -
delComment
returns changed record (if text was set to deleted or "deleted" if record has been deleted -
editComment
default org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record> editComment(String commentTreeKey, String commentId, String text0) return Record of edited comment -
addComment
default org.nustaq.kontraktor.IPromise<org.nustaq.reallive.api.Record> addComment(String commentTreeKey, String parentCommentId, String text0) returns new record of new comment- Parameters:
commentTreeKey-parentCommentId-text0-- Returns:
-
highLighComment
-
listenCommentHistory
default org.nustaq.reallive.api.Subscriber listenCommentHistory(org.nustaq.kontraktor.Callback<org.nustaq.reallive.api.ChangeMessage> rec) does NOT broadcast self inflicted changes- Parameters:
rec-- Returns:
-