|
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 | |||||||||
public interface CommunityService
Provides the ability to manipulate communities. This service will allow you to create, delete, move and acquire communities.
| Method Summary | |
|---|---|
WSCommunity |
createCommunity(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. |
WSCommunity |
getCommunity(long communityID)
Returns a WSCommunity by its id |
java.util.List<java.lang.Long> |
getDocumentIDs(long communityID)
Returns document IDs for all the published documents in the community. |
java.util.List<WSProperty> |
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. |
java.util.List<WSCommunity> |
getRecursiveCommunities()
|
java.util.List<WSCommunity> |
getRecursiveCommunities(long communityID)
Returns all of the communities under the specified community recursively. |
int |
getRecursiveCommunityCount(long communityID)
Returns a count of call the communities under a community |
java.util.List<WSCommunity> |
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(WSCommunity community)
Update a Community |
| Method Detail |
|---|
WSCommunity getCommunity(long communityID)
throws CommunityNotFoundException
WSCommunity by its id
communityID - id of the community
CommunityNotFoundException - If the community specified does not exist.
WSCommunity createCommunity(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 - Thrown if a community with the specified display
name already exists.
void deleteCommunity(long communityID)
throws CommunityNotFoundException
communityID - the id of the community to delete
CommunityNotFoundException - If the specified community does not exist.
void updateCommunity(WSCommunity 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.
java.util.List<WSProperty> 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.
java.util.List<WSCommunity> getSubCommunities(long communityID)
throws CommunityNotFoundException
communityID - The id of the parent community.
CommunityNotFoundException - Thrown if the specified community does not exist.
java.util.List<WSCommunity> getRecursiveCommunities(long communityID)
throws CommunityNotFoundException
communityID - The id of the community.
CommunityNotFoundException - Thrown if the community does not exist.
int getRecursiveCommunityCount(long communityID)
throws CommunityNotFoundException
communityID - The id of the community.
CommunityNotFoundException - Thrown if the community does not exist.
java.util.List<java.lang.Long> getDocumentIDs(long communityID)
throws CommunityNotFoundException
communityID - The id of the community.
CommunityNotFoundException - If the community with the specified id does not
exist.java.util.List<WSCommunity> getRecursiveCommunities()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||