Class Comment


  • public class Comment
    extends IdentifiableModel<java.lang.Long>
    Represents the Comment object.
    • Constructor Detail

      • Comment

        public Comment()
        Constructors
      • Comment

        public Comment​(java.lang.String text)
    • Method Detail

      • getText

        public java.lang.String getText()
        Gets the text for the comment.
        Returns:
        the text
      • setText

        public Comment setText​(java.lang.String text)
        Sets the text for the comment.
        Parameters:
        text - the new text
      • getCreatedBy

        public User getCreatedBy()
        Gets user that created the comment.
        Returns:
        the created by
      • setCreatedBy

        public Comment setCreatedBy​(User createdBy)
        Sets the user that created the comment.
        Parameters:
        createdBy - the new created by
      • getModifiedDate

        public java.util.Date getModifiedDate()
        Gets the date the comment was last modified.
        Returns:
        the modified date
      • setModifiedDate

        public Comment setModifiedDate​(java.util.Date modifiedDate)
        Sets the date the comment was last modified.
        Parameters:
        modifiedDate - the new modified date
      • getAttachments

        public java.util.List<Attachment> getAttachments()
        Gets the comment attachments.
        Returns:
        the attachments
      • setAttachments

        public Comment setAttachments​(java.util.List<Attachment> attachments)
        Sets the comment attachments.
        Parameters:
        attachments - the new attachments
      • getDiscussionId

        public java.lang.Long getDiscussionId()
        Gets the discussion id.
        Returns:
        the discussion id
      • setDiscussionId

        public Comment setDiscussionId​(java.lang.Long discussionId)
        Sets the discussion id.
        Parameters:
        discussionId - the new discussion id
      • getCreatedAt

        public java.util.Date getCreatedAt()
        Gets the date the comment was created.
        Returns:
        the created at
      • setCreatedAt

        public Comment setCreatedAt​(java.util.Date createdAt)
        Sets the date the comment was created.
        Parameters:
        createdAt - the new created at
      • getModifiedAt

        public java.util.Date getModifiedAt()
        Gets the date the comment was modified.
        Returns:
        the modified at
      • setModifiedAt

        public Comment setModifiedAt​(java.util.Date modifiedAt)
        Sets the date the comment was modified.
        Parameters:
        modifiedAt - the new modified at