|
Clearspace API (1.10.16) 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 the Community interface to
retrieve subcommunities, threads, messages, documents, etc.
JiveContext,
Community| Method Summary | |
|---|---|
void |
deleteCommunity(Community community)
Deletes a community. |
Community |
getCommunity(long communityID)
Returns the Community with the supplied communityID. |
Community |
getCommunity(java.lang.String nntpName)
Returns the community with the specified NNTP name. |
JiveContentObject |
getJiveContentObject(int objectType,
long objectID)
Returns the JiveContentObject with the supplied objectType and objectID or null if the
specified objectType is not a valid JiveContentObject. |
JiveObject |
getJiveObject(int objectType,
long objectID)
Returns the JiveObject with the supplied objectType and objectID or null if the
specified objectType is not a valid JiveObject. |
Community |
getRootCommunity()
Returns the "root" community that all other communities are children of. |
void |
mergeCommunities(Community destCommunity,
Community srcCommunity)
Merges the content of two communities by copying the threads, documents and blogs from community2 to community1. |
void |
moveCommunity(Community srcCommunity,
Community destinationCommunity)
Moves a community to another community. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| 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
Community getCommunity(java.lang.String nntpName)
throws CommunityNotFoundException,
UnauthorizedException
nntpName - the NNTP name of the community to return.
Community.
CommunityNotFoundException - if the requested community does not exist.
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 threads, document and blogs 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 community
JiveContentObject getJiveContentObject(int objectType,
long objectID)
throws NotFoundException
JiveContentObject with the supplied objectType and objectID or null if the
specified objectType is not a valid JiveContentObject.
objectType - the type of the content object to loadobjectID - the id of the content object to load
JiveContentObject with the supplied objectType and objectID or null if the
specified objectType is not a valid JiveContentObject
NotFoundException - if no object exists with the supplied type and id.
JiveObject getJiveObject(int objectType,
long objectID)
throws NotFoundException
JiveObject with the supplied objectType and objectID or null if the
specified objectType is not a valid JiveObject.
objectType - the type of the jive, object to loadobjectID - the id of the jive object to load
JiveObject with the supplied objectType and objectID or null if the
specified objectType is not a valid JiveObject
NotFoundException - if no object exists with the supplied type and id.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||