|
Jive API (5.0.0.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommunityManager
This manager provides methods to load communities by ID and to retrieve the root community. Once a handle on a
community is obtained one can use the methods in this interface and other interfaces such as the
ForumManager interface to retrieve subcommunities, threads, messages,
documents, etc.
JiveContext,
Community| Method Summary | |
|---|---|
Community |
createCommunity(Community parentCommunity,
String name,
String displayName,
String description)
Creates a new Community as a sub-community of a specified community using the name and description. |
Community |
createCommunity(String name,
String displayName,
String description)
Creates a new Community as a sub-community of the root community using the name and description. |
void |
deleteCommunity(Community community)
Deletes a community. |
JiveIterator<JiveContentObject> |
getCombinedContent(JiveContainer container,
ContainableType... contentTypes)
Returns an Iterable for all content objects in the container, depending on which ContainableTypes are supplied as an argument. |
JiveIterator<JiveContentObject> |
getCombinedContent(JiveContainer container,
FilteredContentEnabledType... contentTypes)
Returns an Iterable for all content objects in the container, depending on which FilteredContentEnabledTypes are supplied as an argument. |
JiveIterator<JiveContentObject> |
getCombinedContent(JiveContainer container,
ResultFilter filter,
ContainableType... contentTypes)
Returns an Iterable for all content objects in the container, depending on which ContainableTypes are supplied as an argument, and according the the supplied
ResultFilter. |
JiveIterator<JiveContentObject> |
getCombinedContent(JiveContainer container,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
Returns an Iterable for all content objects in the container, depending on which FilteredContentEnabledTypes are supplied as an argument, and according the the supplied
ResultFilter. |
JiveIterator<JiveContentObject> |
getCombinedContent(TagSet tagSet,
ContainableType... contentTypes)
Returns an Iterable for all content objects in the tag set, depending on which ContainableTypes are supplied as an argument. |
JiveIterator<JiveContentObject> |
getCombinedContent(TagSet tagSet,
FilteredContentEnabledType... contentTypes)
Returns an Iterable for all content objects in the tag set, depending on which FilteredContentEnabledTypes are supplied as an argument. |
JiveIterator<JiveContentObject> |
getCombinedContent(TagSet tagSet,
ResultFilter filter,
ContainableType... contentTypes)
Returns an Iterable for all content objects in the tag set, depending on which ContainableTypes are supplied as an argument, and according the the supplied
ResultFilter. |
JiveIterator<JiveContentObject> |
getCombinedContent(TagSet tagSet,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
Returns an Iterable for all content objects in the tag set, depending on which FilteredContentEnabledTypes are supplied as an argument, and according the the supplied
ResultFilter. |
int |
getCombinedContentCount(JiveContainer container,
ContainableType... contentTypes)
Returns the combined number of content objects in the container, depending on which ContainableTypes are supplied as an argument. |
int |
getCombinedContentCount(JiveContainer container,
FilteredContentEnabledType... contentTypes)
Returns the combined number of content objects in the container, depending on which FilteredContentEnabledTypes are supplied as an argument. |
int |
getCombinedContentCount(JiveContainer container,
ResultFilter filter,
ContainableType... contentTypes)
Returns the combined number of content objects in the container, depending on which ContainableTypes are supplied as an argument, and restricted by the ResultFilter. |
int |
getCombinedContentCount(JiveContainer container,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
Returns the combined number of content objects in the container, depending on which FilteredContentEnabledTypes are supplied as an argument, and restricted by the ResultFilter. |
int |
getCombinedContentCount(TagSet tagSet,
ContainableType... contentTypes)
Returns the combined number of content objects in the tag, depending on which ContainableTypes are supplied as an argument. |
int |
getCombinedContentCount(TagSet tagSet,
FilteredContentEnabledType... contentTypes)
Returns the combined number of content objects in the tag, depending on which FilteredContentEnabledTypes are supplied as an argument. |
int |
getCombinedContentCount(TagSet tagSet,
ResultFilter filter,
ContainableType... contentTypes)
Returns the combined number of content objects in the tag set, depending on which ContainableTypes are supplied as an argument, and restricted by the ResultFilter. |
int |
getCombinedContentCount(TagSet tagSet,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
Returns the combined number of content objects in the tag set, depending on which FilteredContentEnabledTypes are supplied as an argument, and restricted by the ResultFilter. |
JiveIterator<Community> |
getCommunities(Community community)
Returns an Iterable for the child communities of the specified community. |
JiveIterator<Community> |
getCommunities(Community community,
int startIndex,
int numResults)
Returns an Iterable for the child communities of this community using a start index and the number of results to return. |
Community |
getCommunity(long communityID)
Returns the Community with the supplied communityID. |
int |
getCommunityCount(Community community)
Returns the number of sub-communities under the specified community. |
int |
getCommunityDepth(Community community)
Returns the depth of a community relative to the root. |
JiveIterator<Community> |
getRecursiveCommunities(Community community)
Returns an Iterable for all sub-communities of a community, including sub-communities of sub-communities, etc. |
int |
getRecursiveCommunityCount(Community community)
Returns the count of all sub-communities of a community, including sub-communities of sub-communities, etc. |
Community |
getRootCommunity()
Returns the "root" community that all other communities are children of. |
boolean |
isUniqueDisplayName(Community community,
String displayName)
Deprecated. |
boolean |
isUniqueHierarchicalDisplayName(Community parentCommunity,
String subspaceName)
Returns true if the full hierarchical display name for the parent community and its subspace is unique within the community hierarchy, false otherwise. |
boolean |
isUniqueHierarchicalName(Community parentCommunity,
String subspaceName)
Returns true if the full hierarchical name for the parent community and its subspace is unique within the community hiearchy, false otherwise. |
boolean |
isUniqueName(Community community,
String name)
Deprecated. |
void |
mergeCommunities(Community destCommunity,
Community srcCommunity)
Merges the content of two communities by copying the content from srcCommunity to destCommunity. |
void |
moveCommunity(Community srcCommunity,
Community destinationCommunity)
Moves a community to another community. |
void |
setCommunityIndex(Community parent,
Community subCommunity,
int newIndex)
Sets the display order of a sub-community. |
void |
update(Community community)
Persists settings community changes, and broadcasts changes across the cluster. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
Community getRootCommunity()
Community getCommunity(long communityID)
throws CommunityNotFoundException,
UnauthorizedException
Community with the supplied communityID.
communityID - the ID of the community to load
Community with the supplied communityID.
CommunityNotFoundException - if no community exists with the supplied id.
UnauthorizedException - if not allowed to view the community
void moveCommunity(Community srcCommunity,
Community destinationCommunity)
throws UnauthorizedException
1 |-- 3 |-- |-- 4 |-- |-- |-- 7Moving 3 to be a child of 7 is not allowed, since that breaks the tree structure.
srcCommunity - the community to move.destinationCommunity - the community to move the source community to.
UnauthorizedException - if not an admin of the source community and the destination community.
void mergeCommunities(Community destCommunity,
Community srcCommunity)
You may only execute this operation if you are a system administrator.
destCommunity - the community to merge content into.srcCommunity - the community to move all content from.
UnauthorizedException - if not an administrator
void deleteCommunity(Community community)
throws UnauthorizedException
community - the community to delete.
UnauthorizedException - if not an admin of the community's parent communityvoid update(Community community)
RequiresUpdate annotation change this method should be called to
save the changes.
community - The community.
com.jivesoftware.community.validation.InvalidPropertyException - if validation errors occur.int getRecursiveCommunityCount(Community community)
community - The community to find recursive communities for.
JiveIterator<Community> getRecursiveCommunities(Community community)
community - The community to find recursive communities for.
Community createCommunity(String name,
String displayName,
String description)
name - the name of the new community.displayName - the display name of the new community.description - the description of the new community.
UnauthorizedException - if not an admin.
NameAlreadyExistsException - if the display name of the community is not unique.
com.jivesoftware.community.validation.InvalidPropertyException - if validation errors occur.
Community createCommunity(Community parentCommunity,
String name,
String displayName,
String description)
parentCommunity - The community to create a community undername - the name of the new community.displayName - the display name of the new community.description - the description of the new community.
UnauthorizedException - if not an admin.
NameAlreadyExistsException - if the display name of the community is not unique.
com.jivesoftware.community.validation.InvalidPropertyException - if validation errors occur.int getCommunityCount(Community community)
community - The community to acquire a community count for
JiveIterator<Community> getCommunities(Community community)
community - The community to acquire communities for.
JiveIterator<Community> getCommunities(Community community,
int startIndex,
int numResults)
community - The community to acquire communities for.startIndex - the index of the first result to return.numResults - the max number of results to return.
int getCommunityDepth(Community community)
1 |-- 3 |-- |-- 4 |-- |-- |-- 7The depth of community 4 is 2, the depth of community 7 is 3, etc. This method is useful in combination with the
getRecursiveCommunities(Community) Iterable to build a UI of hierarchical communities.
community - The community to get the depth for.
void setCommunityIndex(Community parent,
Community subCommunity,
int newIndex)
parent - The parent community.subCommunity - the sub community to set the index for.newIndex - the new index of the sub community.
UnauthorizedException - if not an admin of the community.
@Deprecated
boolean isUniqueDisplayName(Community community,
String displayName)
community - The community to test the display name withindisplayName - the display name to check for uniqueness
@Deprecated
boolean isUniqueName(Community community,
String name)
community - The community to test the name withinname - the name to check for uniqueness
boolean isUniqueHierarchicalDisplayName(Community parentCommunity,
String subspaceName)
parentCommunity - The parent community to test the name withinsubspaceName - the parent's subspace display name
boolean isUniqueHierarchicalName(Community parentCommunity,
String subspaceName)
parentCommunity - The parent community to test the name withinsubspaceName - the parent's subspace name
int getCombinedContentCount(JiveContainer container,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument. Note: this method ignores
permissions because it's not possible to do a database query for the count that obeys permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by the
getCombinedContent(JiveContainer , ContainableType...) method.
container - The container to retrieve content from.contentTypes - the ContainableTypes to include in the count.
int getCombinedContentCount(JiveContainer container,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument. Note: this method ignores
permissions because it's not possible to do a database query for the count that obeys permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by the
getCombinedContent(JiveContainer , FilteredContentEnabledType...) method.
container - The container to retrieve content from.contentTypes - the FilteredContentEnabledTypes to include in the count.
int getCombinedContentCount(TagSet tagSet,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument. Note: this method ignores
permissions because it's not possible to do a database query for the count that obeys permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by the
getCombinedContent(TagSet, ContainableType...) method.
tagSet - The tagSet to retrieve content from.contentTypes - the ContainableTypes to include in the count.
int getCombinedContentCount(TagSet tagSet,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument. Note: this method ignores
permissions because it's not possible to do a database query for the count that obeys permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by the
getCombinedContent(TagSet, FilteredContentEnabledType...) method.
tagSet - The tagSet to retrieve content from.contentTypes - the FilteredContentEnabledTypes to include in the count.
int getCombinedContentCount(JiveContainer container,
ResultFilter filter,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument, and restricted by the ResultFilter. Note:
this method ignores permissions because it's not possible to do a database query for the count that obeys
permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by
the getCombinedContent(JiveContainer , ResultFilter, ContainableType...) method.
container - The container to retrieve content from.filter - the ResultFilter to filter the results.contentTypes - the ContainableTypes to include in the count.
int getCombinedContentCount(JiveContainer container,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument, and restricted by the ResultFilter. Note:
this method ignores permissions because it's not possible to do a database query for the count that obeys
permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by
the getCombinedContent(JiveContainer , ResultFilter, FilteredContentEnabledType...) method.
container - The container to retrieve content from.filter - the ResultFilter to filter the results.contentTypes - the FilteredContentEnabledTypes to include in the count.
int getCombinedContentCount(TagSet tagSet,
ResultFilter filter,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument, and restricted by the ResultFilter. Note:
this method ignores permissions because it's not possible to do a database query for the count that obeys
permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by
the getCombinedContent(TagSet, ResultFilter, ContainableType...) method.
tagSet - The tagSet to retrieve content from.filter - the ResultFilter to filter the results.contentTypes - the ContainableTypes to include in the count.
int getCombinedContentCount(TagSet tagSet,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument, and restricted by the ResultFilter. Note:
this method ignores permissions because it's not possible to do a database query for the count that obeys
permissions counts.
Therefore, the count returned by this method may not be the same as the number of content objects returned by
the getCombinedContent(TagSet, ResultFilter, FilteredContentEnabledType...) method.
tagSet - The tagSet to retrieve content from.filter - the ResultFilter to filter the results.contentTypes - the FilteredContentEnabledTypes to include in the count.
JiveIterator<JiveContentObject> getCombinedContent(JiveContainer container,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument. The results will be sorted by descending
modification date.
container - The container to retrieve content from.contentTypes - the ContainableTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(JiveContainer container,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument. The results will be sorted by descending
modification date.
container - The container to retrieve content from.contentTypes - the FilteredContentEnabledTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(TagSet tagSet,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument. The results will be sorted by descending
modification date.
tagSet - The tagSet to retrieve content from.contentTypes - the ContainableTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(TagSet tagSet,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument. The results will be sorted by descending
modification date.
tagSet - The tagSet to retrieve content from.contentTypes - the FilteredContentEnabledTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(JiveContainer container,
ResultFilter filter,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument, and according the the supplied
ResultFilter.
container - The container to retrieve content from.filter - the ResultFilter to filter and sort the results.contentTypes - the ContainableTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(JiveContainer container,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument, and according the the supplied
ResultFilter.
container - The container to retrieve content from.filter - the ResultFilter to filter and sort the results.contentTypes - the FilteredContentEnabledTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(TagSet tagSet,
ResultFilter filter,
ContainableType... contentTypes)
ContainableTypes are supplied as an argument, and according the the supplied
ResultFilter.
tagSet - The tagSet to retrieve content from.filter - the ResultFilter to filter and sort the results.contentTypes - the ContainableTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(TagSet tagSet,
ResultFilter filter,
FilteredContentEnabledType... contentTypes)
FilteredContentEnabledTypes are supplied as an argument, and according the the supplied
ResultFilter.
tagSet - The tagSet to retrieve content from.filter - the ResultFilter to filter and sort the results.contentTypes - the FilteredContentEnabledTypes to include in the result.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||