|
Clearspace API (2.0.15) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.webservices.WSJiveObject
com.jivesoftware.community.webservices.WSForumThread
public class WSForumThread
A ForumThread is a container for a hierarchy of ForumMessages.
| Field Summary |
|---|
| Fields inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
id, objectType |
| Constructor Summary | |
|---|---|
WSForumThread()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
long |
getCommunityID()
Returns the ID of the community this thread belongs to. |
java.util.Date |
getCreationDate()
Returns the date that this thread was created. |
long |
getLatestMessageID()
Returns the ID of the most recently created messages in this thread. |
int |
getMessageCount()
Returns the number of messages in the thread. |
int |
getModerationValue()
Returns the number of moderation points this thread has. |
java.util.Date |
getModificationDate()
Returns the date that this thread was last modified. |
java.lang.String |
getName()
Returns the subject of the root message of this thread. |
WSForumMessage |
getRootMessage()
Returns the root message this thread. |
int |
hashCode()
|
void |
setCommunityID(long communityID)
Called by the ForumThreadService to set the ID of the thread this community belongs too. |
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date of this thread. |
void |
setLatestMessageID(long latestMessageID)
Called by the ForumThreadService to set the appropriate latestMessageID into the thread. |
void |
setMessageCount(int messageCount)
Set the number of messages in this thread. |
void |
setModerationValue(int moderationValue)
Used to change the moderation value of the community. |
void |
setModificationDate(java.util.Date modificationDate)
Sets the date this thread was last modified. |
void |
setName(java.lang.String name)
Used by ForumThreadService to set the value of this field. |
void |
setRootMessage(WSForumMessage rootMessage)
Called by the ForumThreadService to set the appropriate rootMessageID into the thread. |
java.lang.String |
toString()
|
| Methods inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
getID, getObjectType, setID, setObjectType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WSForumThread()
| Method Detail |
|---|
public java.lang.String getName()
getRootMessage().getSubject().
public void setName(java.lang.String name)
name - The name of the thread.public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate - the date this thread was created.public java.util.Date getModificationDate()
public void setModificationDate(java.util.Date modificationDate)
modificationDate - the date this thread was modified.public int getModerationValue()
JiveConstants.MESSAGE_MODERATION_VISIBLE
then the thread will not be displayed by default. Because a thread and
its root message are intrinsically bound together, their moderation values
are linked and are always the same. This means that setting the moderation
value on the thread or setting the moderation value of a root message will
always affect both objects.
public void setModerationValue(int moderationValue)
moderationValue - The moderation value of this communitypublic long getCommunityID()
public void setCommunityID(long communityID)
communityID - The ID of the thread that this community belongs too.public WSForumMessage getRootMessage()
public void setLatestMessageID(long latestMessageID)
latestMessageID - The ID of the lastest message in the thread.public void setRootMessage(WSForumMessage rootMessage)
rootMessage - The root message of the thread.public long getLatestMessageID()
public int getMessageCount()
public void setMessageCount(int messageCount)
messageCount - The number messages in the thread.public boolean equals(java.lang.Object o)
equals in class WSJiveObjectpublic int hashCode()
hashCode in class WSJiveObjectpublic java.lang.String toString()
toString in class WSJiveObject
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||