Interface IWithComments<T extends ICommentBase<T>>

All Known Subinterfaces:
IRichPage

public interface IWithComments<T extends ICommentBase<T>>
Since:
3.23.10
  • Method Details

    • getComments

      @NotNull IPObjectList<T> getComments()
    • getRootComments

      @NotNull IPObjectList<T> getRootComments()
      See Also:
    • getRootComments

      @NotNull IPObjectList<T> getRootComments(boolean includeResolved)
      Returns the root comments.
      Returns:
      root IComments (not null)
      See Also:
    • getCommentById

      @Nullable T getCommentById(@NotNull String id)
      Returns the comment with the given ID. (Also returns the newly created comments.)
    • createComment

      @NotNull T createComment(@NotNull Text text)
      Parameters:
      text - The text, cannot be null.
      Returns:
      The Comment object with the necessary fields filled in.
    • removeComment

      void removeComment(@NotNull T comment)
      Remove the comment object and all of its children
      Parameters:
      comment - comment to remove