Class ThreadedCommentImpl

java.lang.Object
io.keikai.model.impl.ThreadedCommentImpl
All Implemented Interfaces:
SThreadedComment, Serializable

public class ThreadedCommentImpl extends Object implements SThreadedComment, Serializable
Default implementation of SThreadedComment.
Since:
7.0.0
See Also:
  • Constructor Details

    • ThreadedCommentImpl

      public ThreadedCommentImpl(String id, String text, SThreadedCommentAuthor author, Date createdDate, String parentId, int row, int col)
      Creates a new threaded comment.
      Parameters:
      id - the unique GUID
      text - the comment text
      author - the author
      createdDate - the creation date
      parentId - the parent comment ID, or null for root comments
      row - the row index (0-based)
      col - the column index (0-based)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: SThreadedComment
      Returns the unique identifier (GUID) of this comment.
      Specified by:
      getId in interface SThreadedComment
      Returns:
      the comment GUID
    • getText

      public String getText()
      Description copied from interface: SThreadedComment
      Returns the text content of this comment.
      Specified by:
      getText in interface SThreadedComment
      Returns:
      the comment text
    • setText

      public void setText(String text)
      Description copied from interface: SThreadedComment
      Sets the text content of this comment.
      Specified by:
      setText in interface SThreadedComment
      Parameters:
      text - the new text
    • getAuthor

      public SThreadedCommentAuthor getAuthor()
      Description copied from interface: SThreadedComment
      Returns the author of this comment.
      Specified by:
      getAuthor in interface SThreadedComment
      Returns:
      the author
    • getCreatedDate

      public Date getCreatedDate()
      Description copied from interface: SThreadedComment
      Returns the date and time when this comment was created.
      Specified by:
      getCreatedDate in interface SThreadedComment
      Returns:
      the created date
    • getParentId

      public String getParentId()
      Description copied from interface: SThreadedComment
      Returns the parent comment's ID, or null if this is a root comment.
      Specified by:
      getParentId in interface SThreadedComment
      Returns:
      the parent ID, or null
    • getReplies

      public List<SThreadedComment> getReplies()
      Description copied from interface: SThreadedComment
      Returns the list of direct replies to this comment.
      Specified by:
      getReplies in interface SThreadedComment
      Returns:
      an unmodifiable list of replies
    • addReply

      public void addReply(SThreadedComment reply)
      Adds a reply to this comment. Package-private for use by SheetImpl.
      Parameters:
      reply - the reply comment
    • isResolved

      public boolean isResolved()
      Description copied from interface: SThreadedComment
      Returns whether this comment thread is resolved.
      Specified by:
      isResolved in interface SThreadedComment
      Returns:
      true if resolved
    • setResolved

      public void setResolved(boolean resolved)
      Description copied from interface: SThreadedComment
      Sets the resolved state of this comment thread.
      Specified by:
      setResolved in interface SThreadedComment
      Parameters:
      resolved - true to mark as resolved
    • getRow

      public int getRow()
      Description copied from interface: SThreadedComment
      Returns the row index of the cell this comment is attached to.
      Specified by:
      getRow in interface SThreadedComment
      Returns:
      the row index (0-based)
    • getCol

      public int getCol()
      Description copied from interface: SThreadedComment
      Returns the column index of the cell this comment is attached to.
      Specified by:
      getCol in interface SThreadedComment
      Returns:
      the column index (0-based)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object