Interface CommentsSessionMixin

All Superinterfaces:
UniqueSessionIntIdMixin

public interface CommentsSessionMixin extends 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 Details

  • 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

      static String dbg_asJson(org.nustaq.reallive.api.Record r)
    • getParentComment

      default org.nustaq.kontraktor.IPromise<CommentRecord> getParentComment(String commentTreeKey, String subCommentId)
    • delComment

      default org.nustaq.kontraktor.IPromise delComment(String rootCommentKey, String commentId)
      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

      default org.nustaq.kontraktor.IPromise<String> highLighComment(String comment, int index, Set mentions)
    • 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: