Interface ForumMessage

  • All Known Subinterfaces:
    InternalForumMessage

    public interface ForumMessage
    Representation of a single message in a forum.
    • Method Detail

      • getId

        int getId()
        Returns the messageid.
        Returns:
        the messageid.
      • getReplies

        ForumMessage[] getReplies()
        Returns all replies to this message.
        Returns:
        all replies to this message.
      • getDepth

        int getDepth()
        Returns the depth in the thread.
        Returns:
        the depth in the thread.
      • getParent

        ForumMessage getParent()
        Returns the parent message in the thread or null.
        Returns:
        the parent message in the thread or null.
      • getTopic

        ForumMessage getTopic()
        Returns the first message in the thread this message belongs to.
        Returns:
        the first message in the thread.
      • getTitle

        String getTitle()
        Returns the title of this message.
        Returns:
        the title of this message.
      • getMessage

        String getMessage()
        Returns the message body.
        Returns:
        the message body.
      • getPostDate

        Date getPostDate()
        Returns the date this message was posted.
        Returns:
        the date this message was posted.
      • getUserName

        String getUserName()
        Returns the author of the message.
        Returns:
        the author of the message.
      • getUserId

        int getUserId()
        Returns id of the user that wrote the message.
        Returns:
        id of the user that wrote the message.
      • getForum

        Forum getForum()
        Returns the forum this message is a part of.
        Returns:
        the forum this message is a part of
      • getNumberOfReplies

        int getNumberOfReplies()
        Returns number of replies.
        Returns:
        number of replies.
      • isLocked

        boolean isLocked()
        Returns true if this message is locked.
        Returns:
        true if this message is locked.