|
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.WSJiveContainer
com.jivesoftware.community.webservices.WSCommunity
public class WSCommunity
A container for threads and a hierarchy of other communities. In other words, the community structure is a tree, with lists of communities for every community node. There is always a "root" community (ID of 1), of which all other communities are children.
| Field Summary | |
|---|---|
protected int |
communityCount
|
protected int |
communityDepth
|
protected WSLocale |
finalLocale
|
protected long |
latestMessageID
|
protected WSLocale |
locale
|
protected int |
messageCount
|
protected long |
parentCommunityID
|
protected int |
recursiveCommunityCount
|
protected int |
threadCount
|
| Fields inherited from class com.jivesoftware.community.webservices.WSJiveContainer |
|---|
availableContentTypes, contentTypes, creationDate, description, displayName, modificationDate, name |
| Fields inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
id, objectType |
| Constructor Summary | |
|---|---|
WSCommunity()
|
|
| Method Summary | |
|---|---|
int |
getCommunityCount()
Returns the number of community in the community. |
int |
getCommunityDepth()
Returns the depth of a this community relative to the root. |
WSLocale |
getFinalLocale()
Returns the locale for this community. |
long |
getLatestMessageID()
Returns the most recently created or edited message in this community (including all sub-communities). |
WSLocale |
getLocale()
Returns the locale for this community. |
int |
getMessageCount()
Returns the number of messages in the community. |
long |
getParentCommunityID()
Returns ID of the parent community of this community. |
int |
getRecursiveCommunityCount()
Returns the number of communities in the community and all sub-communities. |
int |
getThreadCount()
Returns number of thread in the community and all sub-communities |
void |
setCommunityCount(int communityCount)
|
void |
setCommunityDepth(int communityDepth)
|
void |
setFinalLocale(WSLocale finalLocale)
|
void |
setLatestMessageID(long latestMessageID)
|
void |
setLocale(WSLocale locale)
Sets the locale for this community. |
void |
setMessageCount(int messageCount)
|
void |
setParentCommunityID(long parentCommunityID)
|
void |
setRecursiveCommunityCount(int recursiveCommunityCount)
|
void |
setThreadCount(int threadCount)
|
| Methods inherited from class com.jivesoftware.community.webservices.WSJiveContainer |
|---|
equals, getAvailableContentTypes, getContentTypes, getCreationDate, getDescription, getDisplayName, getModificationDate, getName, hashCode, setAvailableContentTypes, setContentTypes, setCreationDate, setDescription, setDisplayName, setModificationDate, setName, 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 |
| Field Detail |
|---|
protected WSLocale locale
protected WSLocale finalLocale
protected int communityCount
protected int recursiveCommunityCount
protected int threadCount
protected int messageCount
protected long latestMessageID
protected long parentCommunityID
protected int communityDepth
| Constructor Detail |
|---|
public WSCommunity()
| Method Detail |
|---|
public WSLocale getLocale()
public void setLocale(WSLocale locale)
locale - the locale of this community.public WSLocale getFinalLocale()
public void setFinalLocale(WSLocale finalLocale)
public int getCommunityCount()
public void setCommunityCount(int communityCount)
public int getRecursiveCommunityCount()
public void setRecursiveCommunityCount(int recursiveCommunityCount)
public int getThreadCount()
public void setThreadCount(int threadCount)
public int getMessageCount()
public void setMessageCount(int messageCount)
public long getLatestMessageID()
ThreadResultFilter, but this method offers a simpler, more optimized way to
access the data.
public void setLatestMessageID(long latestMessageID)
public long getParentCommunityID()
public void setParentCommunityID(long parentCommunityID)
public int getCommunityDepth()
1 |-- 3 |-- |-- 4 |-- |-- |-- 7The depth of message 4 is 2, the depth of community 7 is 3, etc.
public void setCommunityDepth(int communityDepth)
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||