nl.gx.webmanager.cms.forum
Interface ForumMessage

All Known Subinterfaces:
InternalForumMessage

public interface ForumMessage

Representation of a single message in a forum.


Method Summary
 int getDepth()
          Return the depth in the thread.
 Forum getForum()
          Return the forum this message is a part of.
 int getId()
          Return the messageid.
 java.lang.String getMessage()
          Return the message body.
 int getNumberOfReplies()
          Return number of replies.
 ForumMessage getParent()
          Return the parent message in the thread or null.
 java.util.Date getPostDate()
          Return the date this message was posted.
 ForumMessage[] getReplies()
          Return all replies to this message.
 java.lang.String getTitle()
          Return the title of this message.
 ForumMessage getTopic()
          Return the first message in the thread this message belongs to.
 int getUserId()
          Return id of the user that wrote the message.
 java.lang.String getUserName()
          Return the author of the message.
 boolean isLocked()
          Return true if this message is locked.
 

Method Detail

getId

int getId()
Return the messageid.

Returns:
the messageid.

getReplies

ForumMessage[] getReplies()
Return all replies to this message.

Returns:
all replies to this message.

getDepth

int getDepth()
Return the depth in the thread.

Returns:
the depth in the thread.

getParent

ForumMessage getParent()
Return the parent message in the thread or null.

Returns:
the parent message in the thread or null.

getTopic

ForumMessage getTopic()
Return the first message in the thread this message belongs to.

Returns:
the first message in the thread.

getTitle

java.lang.String getTitle()
Return the title of this message.

Returns:
the title of this message.

getMessage

java.lang.String getMessage()
Return the message body.

Returns:
the message body.

getPostDate

java.util.Date getPostDate()
Return the date this message was posted.

Returns:
the date this message was posted.

getUserName

java.lang.String getUserName()
Return the author of the message.

Returns:
the author of the message.

getUserId

int getUserId()
Return id of the user that wrote the message.

Returns:
id of the user that wrote the message.

getForum

Forum getForum()
Return the forum this message is a part of.

Returns:
the forum this message is a part of

getNumberOfReplies

int getNumberOfReplies()
Return number of replies.

Returns:
number of replies.

isLocked

boolean isLocked()
Return true if this message is locked.

Returns:
true if this message is locked.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.