|
Clearspace API (1.10.16) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommunityService
Provides the ability to manipulate communities. This service will allow you to create, delete, move and acquire communities.
| Method Summary | |
|---|---|
Community |
createCommunity(java.lang.String name,
java.lang.String displayName,
java.lang.String description)
Creates a new Community as a sub-community of the root community using the name and description. |
Community |
createSubCommunity(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
long communityID)
Creates a new Community as a sub-community off of the specified community. |
void |
deleteCommunity(long communityID)
Used to delete the specified community |
void |
deleteProperty(java.lang.String name,
long communityID)
Delete a property with the given name from the community with the given id. |
Community |
getCommunity(long communityID)
Returns a Community by its id |
long[] |
getDocumentIDs(long communityID)
Returns document IDs for all the published documents in the community. |
Property[] |
getProperties(long communityID)
Returns all tbe extended properties for the community with the specified id. |
java.lang.String |
getProperty(java.lang.String name,
long communityID)
Returns a specific extended property for the community with the specified property name and community ID. |
Community[] |
getRecursiveCommunities()
Returns all of the communities in the system recursively. |
Community[] |
getRecursiveCommunitiesByCommunityID(long communityID)
Returns all of the communities under the specified community recursively. |
int |
getRecursiveCommunityCount()
Returns a count of all the communities in the system. |
int |
getRecursiveCommunityCountByCommunityID(long communityID)
Returns a count of call the communities under a community |
Community |
getRootCommunity()
Returns the root community in the system. |
Community[] |
getSubCommunities(long communityID)
Returns all the sub communities for the parent community. |
void |
setProperty(java.lang.String name,
java.lang.String value,
long communityID)
Set an extended propery for the community with the given community id. |
void |
updateCommunity(Community community)
Update a Community |
| Method Detail |
|---|
Community getCommunity(long communityID)
throws CommunityNotFoundException
Community by its id
communityID - id of the community
CommunityNotFoundException - If the community specified does not exist.
Community createCommunity(java.lang.String name,
java.lang.String displayName,
java.lang.String description)
throws NameAlreadyExistsException
name - the name of the new community.displayName - the display name of the new communitydescription - the description of the new community.
NameAlreadyExistsException
Community createSubCommunity(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
long communityID)
throws CommunityNotFoundException,
NameAlreadyExistsException
name - the name of the new community.displayName - the display name of the new community.description - the description of the new community.communityID - Community to use as the parent
CommunityNotFoundException - If the community specified does not exist.
NameAlreadyExistsException
void deleteCommunity(long communityID)
throws CommunityNotFoundException
communityID - the id of the community to delete
CommunityNotFoundException - If the specified community does not exist.
void updateCommunity(Community community)
throws CommunityNotFoundException,
NameAlreadyExistsException
community - the community to update
CommunityNotFoundException - If the specified community does not exist.
NameAlreadyExistsException - If an updated display name already exists.
Property[] getProperties(long communityID)
throws CommunityNotFoundException
communityID - id of the community to retrieve properties for.
CommunityNotFoundException - If the specified community does not exist.
java.lang.String getProperty(java.lang.String name,
long communityID)
throws CommunityNotFoundException
name - The name of the property.communityID - The ID of the community to get the extended property for.
CommunityNotFoundException - If the specified community does not exist.
void setProperty(java.lang.String name,
java.lang.String value,
long communityID)
throws CommunityNotFoundException
name - The name of the property.value - The value of the property.communityID - The ID of the community to set an extended property for.
CommunityNotFoundException - If the specified community does not exist.
void deleteProperty(java.lang.String name,
long communityID)
throws CommunityNotFoundException
name - the name of the property to delete.communityID - id of the community to delete the property from.
CommunityNotFoundException - If the specified community does not exist.Community[] getRecursiveCommunities()
Community[] getSubCommunities(long communityID)
throws CommunityNotFoundException
communityID - The id of the parent community.
CommunityNotFoundException - Thrown if the specified community does not exist.Community getRootCommunity()
Community[] getRecursiveCommunitiesByCommunityID(long communityID)
throws CommunityNotFoundException
communityID - The id of the community.
CommunityNotFoundException - Thrown if the community does not exist.int getRecursiveCommunityCount()
int getRecursiveCommunityCountByCommunityID(long communityID)
throws CommunityNotFoundException
communityID - The id of the community.
CommunityNotFoundException - Thrown if the community does not exist.
long[] getDocumentIDs(long communityID)
throws CommunityNotFoundException
communityID - The id of the community.
CommunityNotFoundException
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||