|
Clearspace API (2.5.18) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Community
A container for threads, documents and a hierarchy of other communities. In other words, the community structure is a tree, with lists of threads and documents for every community node. There is always a "root" community (ID of 1), of which all other communities are children.
Community names are not unique, therefore it is not possible to load a community by name.
CommunityManager.getRootCommunity(),
CommunityManager.getCommunity(long)| Method Summary | |
|---|---|
Locale |
getFinalLocale()
Returns the locale for this community. |
Locale |
getLocale()
Returns the locale for this community. |
int |
getModerationDefaultMessageValue()
Returns the default number of moderation points for messages created in the community. |
int |
getModerationDefaultThreadValue()
Returns the default number of moderation points for threads created in the community. |
Community |
getParentCommunity()
Deprecated. use getParentContainer instead |
Community |
getParentContainer()
Returns the parent community of this community. |
int |
getViewCount()
Returns the number of times this thread has been community. |
boolean |
isRead(User user)
Returns true if this community has been read by the user, false otherwise. |
boolean |
isUnread(User user)
Returns true if this community has not been read by the user, false otherwise. |
boolean |
isUpdated(User user)
Returns true if this community has been updated since read by the user, false otherwise. |
void |
setLocale(Locale locale)
Sets the locale for this community. |
void |
setModerationDefaultMessageValue(int value)
Sets the default number of moderation points for threads created in the community. |
void |
setModerationDefaultThreadValue(int value)
Sets the default number of moderation points for threads created in the community. |
| Methods inherited from interface com.jivesoftware.community.JiveContainer |
|---|
getAvailableContentTypes, getContentTypes, getCreationDate, getDescription, getDisplayName, getInterceptorManager, getModificationDate, getName, getPermissions, getPermissionsManager, getProperties, getTaggableTypes, isAuthorized, setContentTypes, setCreationDate, setDescription, setDisplayName, setModificationDate, setName |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| Method Detail |
|---|
Locale getLocale()
void setLocale(Locale locale)
throws UnauthorizedException
locale - the locale of this community.
UnauthorizedException - if does not have admin permissions.Locale getFinalLocale()
@Deprecated Community getParentCommunity()
JiveHierarchicalContainer.getParentContainer(),
getParentContainer()Community getParentContainer()
getParentContainer in interface JiveHierarchicalContainerboolean isRead(User user)
user - the user to check read stats for this community
boolean isUnread(User user)
user - the user to check read stats for this community
boolean isUpdated(User user)
user - the user to check read stats for this community
int getViewCount()
int getModerationDefaultThreadValue()
void setModerationDefaultThreadValue(int value)
throws UnauthorizedException
value - default number of moderation points for threads.
UnauthorizedException - if does not have permission.int getModerationDefaultMessageValue()
void setModerationDefaultMessageValue(int value)
throws UnauthorizedException
value - default number of moderation points for messages.
UnauthorizedException - if does not have permission.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||