Interface CommunityService
- All Superinterfaces:
com.appiancorp.services.ContextSensitiveService,Service
This interface provides services for other applications using methods related to collaboration communities.
Methods of service classes can all throw the unchecked exception
ServiceException if any
system-level error (for example, server failure) occurs, and will in general
throw a checked exception (InvalidXXXException) when an entity
to be retrieved is inaccessible, instead of returning null.
Exceptions to this paradigm (including the use of ResultList as
described below) are noted. All checked exceptions extend
AppianException.
It may be necessary to retrieve a subset of results as opposed to an entire
collection, and also to sort the subset by some property of the returned
object. "Paging" methods which return a
ResultPage are provided in certain
instances for this purpose. The ResultPage will contain the
sorted subset of results
(via Result.getResults()), and the
total number of items in the available result set
(via ResultPage.getAvailableItems()).
It may also be necessary to retrieve some results, even if all results
cannot be retrieved (for instance, some of the entities corresponding
to a list of entity IDs may no longer exist). Methods which return a
ResultList are provided for this
purpose. The Result.getResults()
method in this case will return all results which can be retrieved. In
addition, there will be a list of result codes
(ResultList.getResultCodes()) that
represent the successful retrieval of an entity, or, if the entity could
not be retrieved, the reason for the failure. See the CODE_XXX
constants in ResultList for details.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.Fields inherited from interface com.appiancorp.services.ContextSensitiveService
SET_SERVICE_CONTEXT_METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommunitiesToFavorites(Long[] communityIds_) Deprecated.Adds multipleCommunityobjects to the user's list of favoritesvoidaddCommunityToFavorites(Long communityId_) Deprecated.Adds aCommunityto the user's list of favoritesbooleancanGroupAdministrateCommunity(Long groupId_, Long communityId_) Deprecated.Returnstrueif the specifiedGroupis an administrator of theCommunitybooleancanUserAdministrateCommunity(Long communityId_) Deprecated.Long[]createCommunities(Community[] communities_) Deprecated.CreatesCommunityobjects in bulk in the collaboration applicationcreateCommunity(Community community_) Deprecated.Creates a newCommunityin the collaboration applicationvoiddeleteCommunity(Long communityId_) Deprecated.Deletes the specifiedCommunityint[]getAccessLevelForCommunities(Long[] cids_) Deprecated.Retrieves the Access Levels for a list of communitiesintDeprecated.Retrieves the Access Level for a communityDeprecated.getAdministratableCommunitiesForUserPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list ofCommunityobjects of which the currentUseris an administrator.getChildCommunities(Long communityId_, Integer sortOrder_, String sortColumn_) Deprecated.getChildCommunitiesPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list ofCommunityobjects which are direct children of the specified parentCommunity.getChildKnowledgeCenters(Long communityId_, Integer sortOrder_, String sortColumn_) Deprecated.getChildKnowledgeCentersPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list ofKnowledgeCenterobjects which are direct children of the specified parentCommunityNOTE: The returned list will be sorted first bysortProperty_, and then by user status in the order:KnowledgeCenter.USER_STATUS_SUBSCRIBED,KnowledgeCenter.USER_STATUS_PENDING,KnowledgeCenter.USER_STATUS_UNSUBSCRIBEDgetCommunities(Long[] communityIds_) Deprecated.Deprecated.getCommunitiesForUserPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.getCommunitiesList(Long[] ids_) Deprecated.Get theCommunityobjects by the requested IDs.getCommunitiesPaging(Long[] communityIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves a list ofCommunityobjects from their IDsgetCommunity(Long communityId_) Deprecated.Retrieves aCommunityDeprecated.Converts a content id into a community id.Long[]getCommunityIdsForContentIds(Long[] id_) Deprecated.Converts an array of content id's into an array of community id's.Deprecated.Converts a community id into a content id.Long[]getContentIdsForCommunityIds(Long[] ids_) Deprecated.Converts an array of community id's into an array of content id's.getFavoriteCommunities(Integer sortOrder_, String sortColumn_) Deprecated.getFavoriteCommunitiesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list ofCommunityobjects which have been tagged as favorites by the userDocument[]getFeaturedDocumentsForCommunity(Long communityId_) Document[]getFeaturedDocumentsForCommunityForUser(Long communityId_) getFeaturedDocumentsForCommunityForUserPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the featuredDocumentobjects for a givenCommunityand its subcommunities that the currentUsercan access.getFeaturedDocumentsForCommunityPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Document[]getFeaturedDocumentsForTopLevelCommunity(Long communityId_) Document[]getFeaturedDocumentsForTopLevelCommunityForUser(Long communityId_) getFeaturedDocumentsForTopLevelCommunityForUserPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.getFeaturedDocumentsForTopLevelCommunityPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the featured documents for a given Community (but not its subcommunities)MenuTree[]Deprecated.Get a list ofMenuTreeobjects for construction of the collaboration navigation treegetFullTreePaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get a list ofMenuTreeobjects for construction of the collaboration navigation treeDeprecated.getInactiveCommunitiesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list of inactiveCommunityobjectsLong[]getInheritedAdministratorGroups(Long communityId_) Deprecated.Get the inherited administrator groups for aCommunity.String[]getInheritedAdministrators(Long communityId_) Deprecated.Get the inherited administrators for aCommunity.getRoleMapForCommunity(Long communityId_) Deprecated.Retrieves theCollaborationRoleMapobject for a givenCommunityDeprecated.getRootCommunitiesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list ofCommunityobjects which are root communities NOTE: The returned list will be sorted first bysortProperty_, and then by user status in the order:Community.USER_STATUS_SUBSCRIBED,Community.USER_STATUS_PENDING,Community.USER_STATUS_UNSUBSCRIBEDgetSystemCommunityId(String name_) Deprecated.Integer[]getVisibleChildrenOfCommunity(Long[] communityIds_) Deprecated.Retrieve visible children of aCommunity.booleanisCommunityEmpty(Long communityId_) Deprecated.Checks whether a community contains children (sub-communities, knowledge centers, folders or documents).voidreactivateCommunity(Long communityId_) Deprecated.Reactivate aCommunity.voidremoveCommunitiesFromFavorites(Long[] communityIds_) Deprecated.Removes multipleCommunityobjects from the user's favorites listvoidremoveCommunityFromFavorites(Long communityId_) Deprecated.Removes aCommunityfrom the user's favorites listvoidremoveFeaturedDocumentFromCommunity(Long documentId_) voidremoveFeaturedDocumentsFromCommunity(Long[] documentIds_) searchCommunitiesPaging(String searchterm_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get theCommunityobjects whose names matchsearchterm_.voidsetFeaturedDocumentForCommunity(Long documentId_) Deprecated.voidsetFeaturedDocumentsForCommunity(Long[] documentIds_) Deprecated.voidsetRoleMapForCommunity(Long communityId_, CollaborationRoleMap crm_) Deprecated.Set theCollaborationRoleMapobject for a givenCommunity.voidsetSystemCommunityId(String name_, Long id_) Deprecated.usecreateCommunity(Community)with a pre-populated UUIDsuggest(String query_, int maxItems_, SuggestParam[] params_, Boolean groupResults_) Deprecated.suggest(String query_, int maxItems_, SuggestParam[] params_, Boolean groupResults_, Long[] allowList) Deprecated.voidupdateCommunities(Community[] communities_) Deprecated.Updates the information stored about a list ofCommunityobjectsvoidupdateCommunity(Community community_) Deprecated.Updates aCommunityMethods inherited from interface com.appiancorp.services.ContextSensitiveService
setServiceContext
-
Field Details
-
createCommunity$UPDATES
static final boolean createCommunity$UPDATESDeprecated.- See Also:
-
createCommunities$UPDATES
static final boolean createCommunities$UPDATESDeprecated.- See Also:
-
deleteCommunity$UPDATES
static final boolean deleteCommunity$UPDATESDeprecated.- See Also:
-
getCommunity$UPDATES
static final boolean getCommunity$UPDATESDeprecated.- See Also:
-
getCommunities$UPDATES
static final boolean getCommunities$UPDATESDeprecated.- See Also:
-
getCommunitiesPaging$UPDATES
static final boolean getCommunitiesPaging$UPDATESDeprecated.- See Also:
-
getCommunitiesForUser$UPDATES
static final boolean getCommunitiesForUser$UPDATESDeprecated.- See Also:
-
getCommunitiesForUserPaging$UPDATES
static final boolean getCommunitiesForUserPaging$UPDATESDeprecated.- See Also:
-
getAdministratableCommunitiesForUser$UPDATES
static final boolean getAdministratableCommunitiesForUser$UPDATESDeprecated.- See Also:
-
getAdministratableCommunitiesForUserPaging$UPDATES
static final boolean getAdministratableCommunitiesForUserPaging$UPDATESDeprecated.- See Also:
-
getRootCommunities$UPDATES
static final boolean getRootCommunities$UPDATESDeprecated.- See Also:
-
getRootCommunitiesPaging$UPDATES
static final boolean getRootCommunitiesPaging$UPDATESDeprecated.- See Also:
-
updateCommunity$UPDATES
static final boolean updateCommunity$UPDATESDeprecated.- See Also:
-
updateCommunities$UPDATES
static final boolean updateCommunities$UPDATESDeprecated.- See Also:
-
getInactiveCommunities$UPDATES
static final boolean getInactiveCommunities$UPDATESDeprecated.- See Also:
-
getInactiveCommunitiesPaging$UPDATES
static final boolean getInactiveCommunitiesPaging$UPDATESDeprecated.- See Also:
-
getChildCommunities$UPDATES
static final boolean getChildCommunities$UPDATESDeprecated.- See Also:
-
getChildCommunitiesPaging$UPDATES
static final boolean getChildCommunitiesPaging$UPDATESDeprecated.- See Also:
-
getChildKnowledgeCenters$UPDATES
static final boolean getChildKnowledgeCenters$UPDATESDeprecated.- See Also:
-
getChildKnowledgeCentersPaging$UPDATES
static final boolean getChildKnowledgeCentersPaging$UPDATESDeprecated.- See Also:
-
isCommunityEmpty$UPDATES
static final boolean isCommunityEmpty$UPDATESDeprecated.- See Also:
-
getFavoriteCommunities$UPDATES
static final boolean getFavoriteCommunities$UPDATESDeprecated.- See Also:
-
getFavoriteCommunitiesPaging$UPDATES
static final boolean getFavoriteCommunitiesPaging$UPDATESDeprecated.- See Also:
-
addCommunityToFavorites$UPDATES
static final boolean addCommunityToFavorites$UPDATESDeprecated.- See Also:
-
addCommunitiesToFavorites$UPDATES
static final boolean addCommunitiesToFavorites$UPDATESDeprecated.- See Also:
-
removeCommunityFromFavorites$UPDATES
static final boolean removeCommunityFromFavorites$UPDATESDeprecated.- See Also:
-
removeCommunitiesFromFavorites$UPDATES
static final boolean removeCommunitiesFromFavorites$UPDATESDeprecated.- See Also:
-
getFullTree$UPDATES
static final boolean getFullTree$UPDATESDeprecated.- See Also:
-
getFullTreePaging$UPDATES
static final boolean getFullTreePaging$UPDATESDeprecated.- See Also:
-
setRoleMapForCommunity$UPDATES
static final boolean setRoleMapForCommunity$UPDATESDeprecated.- See Also:
-
getRoleMapForCommunity$UPDATES
static final boolean getRoleMapForCommunity$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForCommunity$UPDATES
static final boolean getFeaturedDocumentsForCommunity$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForCommunityPaging$UPDATES
static final boolean getFeaturedDocumentsForCommunityPaging$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForCommunityForUser$UPDATES
static final boolean getFeaturedDocumentsForCommunityForUser$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForCommunityForUserPaging$UPDATES
static final boolean getFeaturedDocumentsForCommunityForUserPaging$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForTopLevelCommunity$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunity$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForTopLevelCommunityPaging$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunityPaging$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForTopLevelCommunityForUser$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunityForUser$UPDATESDeprecated.- See Also:
-
getFeaturedDocumentsForTopLevelCommunityForUserPaging$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunityForUserPaging$UPDATESDeprecated.- See Also:
-
setFeaturedDocumentForCommunity$UPDATES
static final boolean setFeaturedDocumentForCommunity$UPDATESDeprecated.- See Also:
-
setFeaturedDocumentsForCommunity$UPDATES
static final boolean setFeaturedDocumentsForCommunity$UPDATESDeprecated.- See Also:
-
removeFeaturedDocumentFromCommunity$UPDATES
static final boolean removeFeaturedDocumentFromCommunity$UPDATESDeprecated.- See Also:
-
removeFeaturedDocumentsFromCommunity$UPDATES
static final boolean removeFeaturedDocumentsFromCommunity$UPDATESDeprecated.- See Also:
-
getInheritedAdministrators$UPDATES
static final boolean getInheritedAdministrators$UPDATESDeprecated.- See Also:
-
getInheritedAdministratorGroups$UPDATES
static final boolean getInheritedAdministratorGroups$UPDATESDeprecated.- See Also:
-
reactivateCommunity$UPDATES
static final boolean reactivateCommunity$UPDATESDeprecated.- See Also:
-
canUserAdministrateCommunity$UPDATES
static final boolean canUserAdministrateCommunity$UPDATESDeprecated.- See Also:
-
canGroupAdministrateCommunity$UPDATES
static final boolean canGroupAdministrateCommunity$UPDATESDeprecated.- See Also:
-
getVisibleChildrenOfCommunity$UPDATES
static final boolean getVisibleChildrenOfCommunity$UPDATESDeprecated.- See Also:
-
getCommunitiesList$UPDATES
static final boolean getCommunitiesList$UPDATESDeprecated.- See Also:
-
searchCommunitiesPaging$UPDATES
static final boolean searchCommunitiesPaging$UPDATESDeprecated.- See Also:
-
getSystemCommunityId$UPDATES
static final boolean getSystemCommunityId$UPDATESDeprecated.- See Also:
-
setSystemCommunityId$UPDATES
static final boolean setSystemCommunityId$UPDATESDeprecated.- See Also:
-
suggest$UPDATES
static final boolean suggest$UPDATESDeprecated.- See Also:
-
getContentIdForCommunityId$UPDATES
static final boolean getContentIdForCommunityId$UPDATESDeprecated.- See Also:
-
getContentIdsForCommunityIds$UPDATES
static final boolean getContentIdsForCommunityIds$UPDATESDeprecated.- See Also:
-
getCommunityIdForContentId$UPDATES
static final boolean getCommunityIdForContentId$UPDATESDeprecated.- See Also:
-
getCommunityIdsForContentIds$UPDATES
static final boolean getCommunityIdsForContentIds$UPDATESDeprecated.- See Also:
-
getAccessLevelForCommunity$UPDATES
static final boolean getAccessLevelForCommunity$UPDATESDeprecated.- See Also:
-
getAccessLevelForCommunities$UPDATES
static final boolean getAccessLevelForCommunities$UPDATESDeprecated.- See Also:
-
-
Method Details
-
createCommunity
Deprecated.Creates a newCommunityin the collaboration application- Parameters:
community_- ACommunityobject which should contain all of the information required to create a validCommunity. Minimum required fields:name,description- Returns:
- The unique ID of the newly created
Community - Throws:
InvalidUserException- if the current user does not existInvalidCommunityException- if the parent ID of theCommunityspecifies aCommunitythat does not existServiceException- if any system-level error occurs
-
createCommunities
Long[] createCommunities(Community[] communities_) throws InvalidUserException, InvalidCommunityException Deprecated.CreatesCommunityobjects in bulk in the collaboration application- Parameters:
communities_- An array ofCommunityobjects, each of which should contain all of the information required to create a validCommunity. Minimum required fields:name,description- Returns:
- The unique IDs of the newly created
Communityobjects - Throws:
InvalidUserException- if the current user does not existInvalidCommunityException- if the parent ID of any of theCommunityobjects specifies aCommunitythat does not existServiceException- if any system-level error occurs
-
deleteCommunity
Deprecated.Deletes the specifiedCommunity- Parameters:
communityId_- the unique ID of theCommunityto be deleted- Throws:
InvalidCommunityException- if noCommunityexists with the unique IDcommunityId_NotEmptyException- if theCommunitycontains children (either otherCommunityobjects orKnowledgeCenterobjects) and therefore cannot be deleted.ServiceException- if any system-level error occurs
-
getCommunity
Deprecated.Retrieves aCommunity- Parameters:
communityId_- The unique ID of theCommunityto be retrieved- Returns:
- A
Communityobject representing the community with unique IDcommunityId_ - Throws:
InvalidCommunityException- if noCommunityexists with the unique IDcommunityId_.ServiceException- if any system-level error occurs
-
getCommunities
Deprecated.Retrieves a list ofCommunityobjects from their IDs- Parameters:
communityIds_- an array of unique IDs of the communities to be retrieved- Returns:
- an array of
Communityobjects representing the communities whose unique IDs are incommunityIds_ - Throws:
InvalidCommunityException- if any of the unique IDs incommunityIds_is invalidServiceException- if any system-level error occurs
-
getCommunitiesPaging
ResultPage getCommunitiesPaging(Long[] communityIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidCommunityException Deprecated.Retrieves a list ofCommunityobjects from their IDs- Parameters:
communityIds_- an array of unique IDs of the communities to be retrievedstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining an array ofCommunityobjects representing the communities whose unique IDs are incommunityIds_ - Throws:
InvalidCommunityException- if any of the unique IDs incommunityIds_is invalidServiceException- if any system-level error occurs.
-
getCommunitiesForUser
@Deprecated Community[] getCommunitiesForUser() throws InvalidUserException, InvalidCommunityExceptionDeprecated.Retrieves the list ofCommunityobjects which containDocumentobjects to which the currentUserhas access. Users will only be able to see thoseDocumentobjects to which they have at least read-only access.- Returns:
- An array of
Communityobjects representing the communities which contain documents to which the current user has access - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if one or more of the communities returned no longer existServiceException- if any system-level error occurs
-
getCommunitiesForUserPaging
ResultPage getCommunitiesForUserPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException Deprecated.Retrieves the list ofCommunityobjects which containDocumentobjects to which the currentUserhas access Users will only be able to see thoseDocumentobjects to which they have at least read-only access.- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining an array ofCommunityobjects representing the communities which contain documents to which the currentUserhas access - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if one or more of the communities returned no longer existServiceException- if any system-level error occurs
-
getAdministratableCommunitiesForUser
@Deprecated Community[] getAdministratableCommunitiesForUser() throws InvalidUserException, InvalidCommunityExceptionDeprecated.Retrieves the list ofCommunityobjects of which the currentUseris an administrator.- Returns:
- An array of
Communityobjects representing the communities of which the currentUseris an administrator. - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if one or more of the communities returned no longer existServiceException- if any system-level error occurs.
-
getAdministratableCommunitiesForUserPaging
ResultPage getAdministratableCommunitiesForUserPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException Deprecated.Retrieves the list ofCommunityobjects of which the currentUseris an administrator.- Parameters:
startIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining an array ofCommunityobjects representing the communities of which the currentUseris an administrator. - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if one or more of the communities returned no longer existServiceException- if any system-level error occurs.
-
getRootCommunities
@Deprecated Community[] getRootCommunities() throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityExceptionDeprecated.Retrieves the list ofCommunityobjects which are root communities NOTE:The returned list will be sorted first by ID, and then by user status in the order:Community.USER_STATUS_SUBSCRIBED,Community.USER_STATUS_PENDING,Community.USER_STATUS_UNSUBSCRIBED- Returns:
- An array of
Communityobjects representing the communities which are root communities. - Throws:
InvalidUserException- if the user does not existInvalidKnowledgeCenterException- if any of the root communities to be returned contains an invalidKnowledgeCenterInvalidCommunityException- if any of the communities does not existServiceException- if any system-level error occurs
-
getRootCommunitiesPaging
ResultPage getRootCommunitiesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException Deprecated.Retrieves the list ofCommunityobjects which are root communities NOTE: The returned list will be sorted first bysortProperty_, and then by user status in the order:Community.USER_STATUS_SUBSCRIBED,Community.USER_STATUS_PENDING,Community.USER_STATUS_UNSUBSCRIBED- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining an array ofCommunityobjects representing the communities which are root communities. - Throws:
InvalidUserException- if the user does not existInvalidKnowledgeCenterException- if any of the root communities to be returned contains an invalidKnowledgeCenterInvalidCommunityException- if any of the comunities does not existServiceException- if any system-level error occurs
-
updateCommunity
void updateCommunity(Community community_) throws InvalidCommunityException, RecursiveRelationshipException Deprecated.Updates aCommunity- Parameters:
community_- ACommunityobject which should contain all of the information required to update a valid community. Minimum required fields:name,description,id. The rest of the fields are ignored.- Throws:
InvalidCommunityException- if the community is invalid or does not existRecursiveRelationshipException- if the parent ID of the community is the same as the ID of the communityServiceException- if any system-level error occurs
-
updateCommunities
void updateCommunities(Community[] communities_) throws InvalidCommunityException, RecursiveRelationshipException Deprecated.Updates the information stored about a list ofCommunityobjects- Parameters:
communities_- a list ofCommunityobjects which should contain all of the information required to update a valid community. Minimum required fields:name,description,id. The rest of the fields are ignored.- Throws:
InvalidCommunityException- if any of the communities specified incommunities_is invalid or does not existRecursiveRelationshipException- if the parent ID of any of the communities is the same as the ID for that communityServiceException- if any system-level error occurs
-
getInactiveCommunities
Deprecated.Retrieves the list of inactiveCommunityobjects- Returns:
- An array of
Communityobjects representing all inactive communities - Throws:
ServiceException- if any system-level error occurs
-
getInactiveCommunitiesPaging
ResultPage getInactiveCommunitiesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Retrieves the list of inactiveCommunityobjects- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining an array ofCommunityobjects representing all inactive communities - Throws:
ServiceException- if any system-level error occurs
-
getChildCommunities
@Deprecated Community[] getChildCommunities(Long communityId_, Integer sortOrder_, String sortColumn_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException Deprecated.Retrieves the list ofCommunityobjects which are direct children of the specified parentCommunity. NOTE: The returned list will be sorted first bysortColumn_, and then by user status in the order:Community.USER_STATUS_SUBSCRIBED,Community.USER_STATUS_PENDING,Community.USER_STATUS_UNSUBSCRIBED- Parameters:
communityId_- the unique ID of the parentCommunitysortOrder_- The order in which to sort the returned list of communities. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDINGsortColumn_- The field of theCommunityby which to sort the returned list of communities. This is one of theSORT_COLUMN_XXXconstants inCommunity- Returns:
- An array of
Communityobjects representing those communities which are direct children of the specified community - Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if the comunity does not existInvalidKnowledgeCenterException- if one or more of the comunities to be returned contains aKnowledgeCenterwhich does not existServiceException- if any system-level error occurs
-
getChildCommunitiesPaging
ResultPage getChildCommunitiesPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException Deprecated.Retrieves the list ofCommunityobjects which are direct children of the specified parentCommunity. NOTE: The returned list will be sorted first bysortProperty_, and then by user status in the order:Community.USER_STATUS_SUBSCRIBED,Community.USER_STATUS_PENDING,Community.USER_STATUS_UNSUBSCRIBED- Parameters:
communityId_- the unique ID of the parentCommunitystartIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a ResultPage containing an array of
Communityobjects representing those communities which are direct children of the specified community - Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if the comunity does not existInvalidKnowledgeCenterException- if one or more of the comunities to be returned contains aKnowledgeCenterwhich does not existServiceException- if any system-level error occurs
-
getChildKnowledgeCenters
@Deprecated KnowledgeCenter[] getChildKnowledgeCenters(Long communityId_, Integer sortOrder_, String sortColumn_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException Deprecated.Retrieves the list ofKnowledgeCenterobjects which are direct children of the specified parentCommunityNOTE: The returned list will be sorted first bysortColumn_, and then by user status in the order:KnowledgeCenter.USER_STATUS_SUBSCRIBED,KnowledgeCenter.USER_STATUS_PENDING,KnowledgeCenter.USER_STATUS_UNSUBSCRIBED- Parameters:
communityId_- the unique ID of the parent communitysortOrder_- the order in which to sort the returned list of knowledge centers. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDINGsortColumn_- The field of theKnowledgeCenterby which to sort the returned list of knowledge centers. This is one of theSORT_COLUMN_XXXconstants inKnowledgeCenter.- Returns:
- a list of
KnowledgeCenterobjects representing those knowledge centers which are direct children of the community specified bycommunityId_ - Throws:
InvalidUserException- if the user does not existInvalidKnowledgeCenterException- if one or more of the knowledge centers to be returned does not existInvalidCommunityException- of theCommunitydoes not existServiceException- if any system-level error occurs
-
getChildKnowledgeCentersPaging
ResultPage getChildKnowledgeCentersPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException Deprecated.Retrieves the list ofKnowledgeCenterobjects which are direct children of the specified parentCommunityNOTE: The returned list will be sorted first bysortProperty_, and then by user status in the order:KnowledgeCenter.USER_STATUS_SUBSCRIBED,KnowledgeCenter.USER_STATUS_PENDING,KnowledgeCenter.USER_STATUS_UNSUBSCRIBED- Parameters:
communityId_- the unique ID of the parent communitystartIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theSORT_KNOWLEDGECENTER_PROPERTY_XXXconstants inKnowledgeCenterService.sortOrder_- The order in which to sort the returned communities This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a ResultPage containing the list of
KnowledgeCenterobjects representing those knowledge centers which are direct children of the specified community - Throws:
InvalidUserException- if the user does not existInvalidKnowledgeCenterException- if one or more of the knowledge centers to be returned does not existInvalidCommunityException- if theCommunitydoes not existServiceException- if any system-level error occurs
-
isCommunityEmpty
Deprecated.Checks whether a community contains children (sub-communities, knowledge centers, folders or documents).- Parameters:
communityId_- the unique ID of the community to check- Returns:
trueif the community is empty;falseotherwise- Throws:
InvalidCommunityException- if the community specified bycommunityId_is invalidServiceException- if any system-level error occurs
-
getFavoriteCommunities
@Deprecated Community[] getFavoriteCommunities(Integer sortOrder_, String sortColumn_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException Deprecated.Retrieves the list ofCommunityobjects which have been tagged as favorites by the user- Parameters:
sortOrder_- The order in which to sort the returned list of communities. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDINGsortColumn_- the field of theCommunityby which to sort the returned list of communities. This is one of theSORT_COLUMN_XXXconstants inCommunity.- Returns:
- An array of
Communityobjects representing those communities which are in the user's list of favorite communities - Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if one or more of the comunities do not existInvalidKnowledgeCenterException- if any of the communities to be returned contains an invalidKnowledgeCenterServiceException- if any system-level error occurs
-
getFavoriteCommunitiesPaging
ResultPage getFavoriteCommunitiesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException Deprecated.Retrieves the list ofCommunityobjects which have been tagged as favorites by the user- Parameters:
startIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the returned communities This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining the list ofCommunityobjects representing those communities which are in the user's list of favorite communities - Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if one or more of the comunities do not existInvalidKnowledgeCenterException- if any of the communities to be returned contains an invalidKnowledgeCenterServiceException- if any system-level error occurs
-
addCommunityToFavorites
void addCommunityToFavorites(Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException Deprecated.Adds aCommunityto the user's list of favorites- Parameters:
communityId_- the unique ID of the community to be added- Throws:
InvalidUserException- if the user does not existInvalidCommunityException- ifcommunityId_does not correspond to a communityInvalidKnowledgeCenterException- if the community to be added contains an invalidKnowledgeCenterServiceException- if any system-level error occurs
-
addCommunitiesToFavorites
void addCommunitiesToFavorites(Long[] communityIds_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException, InvalidDataFormatException Deprecated.Adds multipleCommunityobjects to the user's list of favorites- Parameters:
communityIds_- an array containing the unique IDs of the communities to be added as favorites- Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if one or more of the unique IDs incommunityIds_does not correspond to a communityInvalidKnowledgeCenterException- if any of the communities to be added contains an invalidKnowledgeCenterInvalidDataFormatException- if communityIds_ is nullServiceException- if any system-level error occurs
-
removeCommunityFromFavorites
void removeCommunityFromFavorites(Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException Deprecated.Removes aCommunityfrom the user's favorites list- Parameters:
communityId_- the unique ID of the community to be removed- Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if the community does not existInvalidKnowledgeCenterException- if the community to be removed contains an invalidKnowledgeCenterServiceException- if any system-level error occurs
-
removeCommunitiesFromFavorites
void removeCommunitiesFromFavorites(Long[] communityIds_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException, InvalidDataFormatException Deprecated.Removes multipleCommunityobjects from the user's favorites list- Parameters:
communityIds_- an array containing the unique IDs of the communities to be removed from favorites- Throws:
InvalidUserException- if the user does not existInvalidCommunityException- if one or more of the unique IDs incommunityIds_does not existInvalidKnowledgeCenterException- if any of the communities to be removed contains an invalidKnowledgeCenterInvalidDataFormatException- if communityIds_ is nullServiceException- if any system-level error occurs
-
getFullTree
Deprecated.Get a list ofMenuTreeobjects for construction of the collaboration navigation tree- Returns:
- An array of
MenuTreeobjects - Throws:
InvalidUserException- if the user does not existInvalidKnowledgeCenterException- if one or more of theKnowledgeCenterobjects represented by theMenuTreeobject does not existServiceException- if any system-level error occurs
-
getFullTreePaging
ResultPage getFullTreePaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidKnowledgeCenterException Deprecated.Get a list ofMenuTreeobjects for construction of the collaboration navigation tree- Parameters:
startIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theSORT_MENUTREE_PROPERTY_XXXconstantssortOrder_- The order in which to sort theMenuTreeThis is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining an array ofMenuTreeobjects - Throws:
InvalidUserException- if the user does not existInvalidKnowledgeCenterException- if one or more of theKnowledgeCenterobjects represented by theMenuTreeobject does not existServiceException- if any system-level error occurs
-
setRoleMapForCommunity
void setRoleMapForCommunity(Long communityId_, CollaborationRoleMap crm_) throws InvalidUserException, InvalidCommunityException, PrivilegeException Deprecated.Set theCollaborationRoleMapobject for a givenCommunity. It is necessary to set the role map for a community before any methods which require certain privileges can be called (simply setting the permissions through theCommunityis insufficient).- Parameters:
communityId_- the unique ID for aCommunitycrm_- TheCollaborationRoleMapobject which contains the users and groups in each role to set (overwrite)- Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theCommunitydoes not existPrivilegeException- if theUserdoes not have the rights to set the rolemapServiceException- if any system-level error occurs
-
getRoleMapForCommunity
Deprecated.Retrieves theCollaborationRoleMapobject for a givenCommunity- Parameters:
communityId_- The unique ID for aCommunity- Returns:
CollaborationRoleMapobject which contains the users and groups in each role- Throws:
ServiceException- if any system-level error occurs
-
getFeaturedDocumentsForCommunity
@Deprecated Document[] getFeaturedDocumentsForCommunity(Long communityId_) throws InvalidCommunityException, InvalidDocumentException, PrivilegeException Deprecated.- Parameters:
communityId_- the unique ID for aCommunity- Returns:
- An array of
Documentobjects representing the featuredDocumentobjects for thisCommunity(and its subcommunities) - Throws:
InvalidCommunityException- if theCommunitydoes not existInvalidDocumentException- if any of the featuredDocumentobjects to be returned does not existServiceException- if any system-level error occursPrivilegeException
-
getFeaturedDocumentsForCommunityPaging
ResultPage getFeaturedDocumentsForCommunityPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidCommunityException, InvalidDocumentException Deprecated.- Parameters:
communityId_- the unique ID for aCommunitystartIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This will be one of theSORT_DOCUMENT_PROPERTY_XXXconstants inDocumentServicesortOrder_- The order in which to sort theDocumentobjects. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a ResultPage containing an array of
Documentobjects representing the featuredDocumentobjects for thisCommunity(and its subcommunities) - Throws:
InvalidCommunityException- if theCommunitydoes not existInvalidDocumentException- if any of the featuredDocumentobjects to be returned does not existServiceException- if any system-level error occurs
-
getFeaturedDocumentsForCommunityForUser
@Deprecated Document[] getFeaturedDocumentsForCommunityForUser(Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException Deprecated.Retrieves the featuredDocumentobjects for a givenCommunityand its subcommunities that the currentUsercan access. Users will only be able to see thoseDocumentobjects to which they have at least read-only access.- Parameters:
communityId_- the unique ID for aCommunity- Returns:
- An array of
Documentobjects representing the featured documents for thisCommunityand its subcommunities that the current user can access - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theComunitydoes not existInvalidDocumentException- if any of theDocumentobjects to be returned is invalidServiceException- if any system-level error occurs
-
getFeaturedDocumentsForCommunityForUserPaging
ResultPage getFeaturedDocumentsForCommunityForUserPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException Deprecated.Retrieves the featuredDocumentobjects for a givenCommunityand its subcommunities that the currentUsercan access. Users will only be able to see thoseDocumentobjects to which they have at least read-only access.- Parameters:
communityId_- the unique ID for aCommunitystartIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This will be one of theSORT_DOCUMENT_PROPERTY_XXXconstants inDocumentServicesortOrder_- This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining the list ofDocumentobjects representing the featured documents for thisCommunityand its subcommunities that the currentUsercan access. - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theCommunitydoes not existInvalidDocumentException- if any of theDocumentobjects to be returned is invalidServiceException- if any system-level error occurs
-
getFeaturedDocumentsForTopLevelCommunity
@Deprecated Document[] getFeaturedDocumentsForTopLevelCommunity(Long communityId_) throws InvalidCommunityException, InvalidDocumentException Deprecated.Retrieves the featured documents for a givenCommunity(but not its subcommunities)- Parameters:
communityId_- the unique ID for aCommunity- Returns:
- An array of
Documentobjects representing the featuredDocumentobjects for thisCommunity - Throws:
InvalidCommunityException- if theCommunitydoes not existInvalidDocumentException- if any of the featuredDocumentobjects to be returned does not existServiceException- if any system-level error occurs
-
getFeaturedDocumentsForTopLevelCommunityPaging
ResultPage getFeaturedDocumentsForTopLevelCommunityPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidCommunityException, InvalidDocumentException Deprecated.Retrieves the featured documents for a given Community (but not its subcommunities)- Parameters:
communityId_- the unique ID for aCommunitystartIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This will be one of theSORT_DOCUMENT_PROPERTY_XXXconstants inDocumentServicesortOrder_- The order in which to sort theDocumentobjects. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a ResultPage containing an array of
Documentobjects representing the featuredDocumentobjects for thisCommunity - Throws:
InvalidCommunityException- if theCommunitydoes not existInvalidDocumentException- if any of the featuredDocumentobjects to be returned does not existServiceException- if any system-level error occurs
-
getFeaturedDocumentsForTopLevelCommunityForUser
@Deprecated Document[] getFeaturedDocumentsForTopLevelCommunityForUser(Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException Deprecated.Retrieves the featured documents for a given Community (but not its subcommunities) that the current user can access. Users will only be able to see thoseDocumentobjects to which they have at least read-only access.- Parameters:
communityId_- the unique ID for aCommunity- Returns:
- An array of
Documentobjects representing the featured documents for thisCommunitythat the current user can access - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theComunitydoes not existInvalidDocumentException- if any of theDocumentobjects to be returned is invalidServiceException- if any system-level error occurs
-
getFeaturedDocumentsForTopLevelCommunityForUserPaging
ResultPage getFeaturedDocumentsForTopLevelCommunityForUserPaging(Long communityId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException Deprecated.Retrieves the featuredDocumentobjects for a givenCommunity(but not its subcommunities) that the current user can access. Users will only be able to see thoseDocumentobjects to which they have at least read-only access.- Parameters:
communityId_- the unique ID for aCommunitystartIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This will be one of theSORT_DOCUMENT_PROPERTY_XXXconstants inDocumentServicesortOrder_- This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagecontaining the list ofDocumentobjects representing the featured documents for thisCommunitythat the currentUsercan access - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theCommunitydoes not existInvalidDocumentException- if any of theDocumentobjects to be returned is invalidServiceException- if any system-level error occurs
-
setFeaturedDocumentForCommunity
void setFeaturedDocumentForCommunity(Long documentId_) throws InvalidCommunityException, InvalidDocumentException Deprecated.- Parameters:
documentId_- the unique ID for aDocument- Throws:
InvalidCommunityException- if theCommunityin which theDocumentresides is invalidInvalidDocumentException- if theDocumentis invalidServiceException- if any system-level error occurs
-
setFeaturedDocumentsForCommunity
void setFeaturedDocumentsForCommunity(Long[] documentIds_) throws InvalidCommunityException, InvalidDocumentException Deprecated.- Parameters:
documentIds_- An array of unique IDs for theDocumentobjects- Throws:
InvalidCommunityException- if theCommunityin which any of theDocumentobjects reside is invalidInvalidDocumentException- if any of theDocumentobjects is invalidServiceException- if any system-level error occurs
-
removeFeaturedDocumentFromCommunity
void removeFeaturedDocumentFromCommunity(Long documentId_) throws InvalidDocumentException, InvalidCommunityException Deprecated.- Parameters:
documentId_- the unique ID of theDocument- Throws:
InvalidDocumentException- if theDocumentdoes not existInvalidCommuntyException- if theCommunitywhich contains theDocumentdoes not existServiceException- if any system-level error occursInvalidCommunityException
-
removeFeaturedDocumentsFromCommunity
void removeFeaturedDocumentsFromCommunity(Long[] documentIds_) throws InvalidDocumentException, InvalidCommunityException Deprecated.- Parameters:
documentIds_- An array of unique IDs for theDocumentobjects- Throws:
InvalidDocumentException- if any of theDocumentobjects does not existInvalidCommuntyException- if theCommunitywhich contains any of theDocumentobjects does not existServiceException- if any system-level error occursInvalidCommunityException
-
getInheritedAdministrators
Deprecated.Get the inherited administrators for aCommunity.Community.getAdministrators()does not return inherited administrators- Parameters:
communityId_- the unique ID for theCommunity- Returns:
- An array of usernames representing the inherited administrators for
the
Community - Throws:
InvalidCommunityException- if theCommunitydoes not existServiceException- if any system-level error occurs
-
getInheritedAdministratorGroups
Deprecated.Get the inherited administrator groups for aCommunity.Community.getAdministratorGroups()does not return inherited group administrators- Parameters:
communityId_- the unique ID for theCommunity- Returns:
- An array of group IDs representing the inherited group
administrators for the
Community - Throws:
InvalidCommunityException- if theCommunitydoes not existServiceException- if any system-level error occurs
-
reactivateCommunity
void reactivateCommunity(Long communityId_) throws InvalidCommunityException, InvalidOperationException Deprecated.Reactivate aCommunity. NOTE: This method does not currently check whether the user has permission to reactivate theCommunity- Parameters:
communityId_- the unique ID for theCommunity- Throws:
InvalidCommunityException- if theCommunitydoes not existInvalidOperationException- if theCommunityhas parent communities which are still inactive. These must be reactivated first.ServiceException- if any system-level error occurs
-
canUserAdministrateCommunity
boolean canUserAdministrateCommunity(Long communityId_) throws InvalidUserException, InvalidCommunityException Deprecated.- Parameters:
communityId_- the unique ID for theCommunity- Returns:
trueif the currentUseris an administrator of theCommunity- Throws:
InvalidUserException- if theuserdoes not existInvalidCommunityException- ifcommunityId_does not correspond to a validCommunityServiceException- if any system-level error occurs
-
canGroupAdministrateCommunity
boolean canGroupAdministrateCommunity(Long groupId_, Long communityId_) throws InvalidCommunityException Deprecated.Returnstrueif the specifiedGroupis an administrator of theCommunity- Parameters:
groupId_- the unique ID for theGroupcommunityId_- the unique ID for theCommunity- Returns:
trueif theGroupcan administer theCommunity- Throws:
InvalidCommunityException- ifcommunityId_does not correspond to a validCommunityServiceException- if any system-level error occurs
-
getVisibleChildrenOfCommunity
Integer[] getVisibleChildrenOfCommunity(Long[] communityIds_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException Deprecated.Retrieve visible children of aCommunity. This call is used to populate aCommunityobject's children in a hierarchy.- Parameters:
communityIds_- an array of unique ids which each correspond to aCommunity.- Returns:
- an
Integerarray of children in eachCommunitywhere 0=none, 1=community, 2=kc, 3=kc and community - Throws:
InvalidUserException- if theUserdoes not existInvalidKnowledgeCenterException- if any of theCommunityobjects contains an invalidKnowledgeCenterInvalidCommunityException- if any of theCommunityobjects is invalidServiceException- if any system-level error occurs
-
getCommunitiesList
Deprecated.Get theCommunityobjects by the requested IDs.- Parameters:
ids_- IDs ofCommunityobjects to retrieve.- Returns:
- ResultList containing an array of
Communityobjects which correspond to theids_passed in.
Also contains result codes for each ID. The result code will be one ofCODE_XXXorCOLLAB_CODE_XXXinResultList. - Throws:
InvalidUserException- if the current user does not existInvalidDataFormatException- if ids is null
-
searchCommunitiesPaging
ResultPage searchCommunitiesPaging(String searchterm_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, InvalidCommunityException Deprecated.Get theCommunityobjects whose names matchsearchterm_.- Parameters:
searchterm_- a term for which to search in the names of communitiesstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This is one of theCommunity.SORT_BY_XXXconstantssortOrder_- The order in which to sort the returned communities This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- a list of
Community - Throws:
InvalidUserException- if the current user does not existInvalidCommunityException- if any of the communities is invalid
-
getSystemCommunityId
Deprecated.This is a small wrapper on Content's getSystemId, but returns the content id as a document id.- Parameters:
name- A case-insensitive system name.- Returns:
- the id of the community mapped to that name.
- Throws:
InvalidCommunityException- if the string is not recognized.
-
setSystemCommunityId
Deprecated.usecreateCommunity(Community)with a pre-populated UUIDStores and associates the specifiedidvalue with the specifiednamekey.- Parameters:
name- A case-insensitive system name.id- The community id.- Throws:
InvalidCommunityException- if the string is not recognized.
-
suggest
Deprecated.- Parameters:
query-maxItems-params- list of information on what is being suggested and what format the results should be in. valid types are communities.groupResults- if specifying more than one SuggestParam, would you like to group the results by type, or mixed together and sorted? Default is true. If grouped, order of types matches the order of the suggestParams passed in.- Returns:
- a JSON formatted string
-
suggest
String suggest(String query_, int maxItems_, SuggestParam[] params_, Boolean groupResults_, Long[] allowList) Deprecated.- Parameters:
query-maxItems-params- list of information on what is being suggested and what format the results should be in. valid types are communities.groupResults- if specifying more than one SuggestParam, would you like to group the results by type, or mixed together and sorted? Default is true. If grouped, order of types matches the order of the suggestParams passed in.allowList- list of IDs that will be automatically added to returned results, filtered by query. Ignored if null or empty.- Returns:
- a JSON formatted string
-
getContentIdForCommunityId
Deprecated.Converts a community id into a content id. Note that the id can only be different for migrated KDB's existing prior AE 5.5 (previous Rules feature). Deployments after 5.5, the community id and the content id will be the same- Parameters:
id- The community id to convert- Returns:
- The content id
-
getContentIdsForCommunityIds
Deprecated.Converts an array of community id's into an array of content id's. Note that the id can only be different for migrated KDB's existing prior AE 5.5 (previous Rules feature). Deployments after 5.5, the community id and the content id will be the same- Parameters:
id- The array of community ids to convert- Returns:
- An array of content ids
-
getCommunityIdForContentId
Deprecated.Converts a content id into a community id. Note that the id can only be different for migrated KDB's existing prior AE 5.5 (previous Rules feature). Deployments after 5.5, the community id and the content id will be the same- Parameters:
id- The content id to convert- Returns:
- The community id
-
getCommunityIdsForContentIds
Deprecated.Converts an array of content id's into an array of community id's. Note that the id can only be different for migrated KDB's existing prior AE 5.5 (previous Rules feature). Deployments after 5.5, the community id and the content id will be the same- Parameters:
id- The array of content ids to convert- Returns:
- An array of community ids
-
getAccessLevelForCommunity
Deprecated.Retrieves the Access Level for a community- Parameters:
cid_- the unique ID of the community- Returns:
- int see
Communityfor valid return values - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theComunitydoes not exist
-
getAccessLevelForCommunities
int[] getAccessLevelForCommunities(Long[] cids_) throws InvalidUserException, InvalidCommunityException Deprecated.Retrieves the Access Levels for a list of communities- Parameters:
cids_- a list of unique IDs of the communities- Returns:
- int[] see
Communityfor valid return values - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theComunitydoes not exist
-
ContentServiceinstead.