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, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.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[] communityIds) Deprecated.Retrieves the Access Levels for a list of communitiesintgetAccessLevelForCommunity(Long communityId) Deprecated.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[] ids) 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
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
createCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunitiesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunitiesForUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunitiesForUserPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdministratableCommunitiesForUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdministratableCommunitiesForUserPaging$UPDATES
@Deprecated(forRemoval=true) static final boolean getAdministratableCommunitiesForUserPaging$UPDATESDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRootCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRootCommunitiesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getInactiveCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getInactiveCommunitiesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getChildCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getChildCommunitiesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getChildKnowledgeCenters$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getChildKnowledgeCentersPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isCommunityEmpty$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFavoriteCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFavoriteCommunitiesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addCommunityToFavorites$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addCommunitiesToFavorites$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeCommunityFromFavorites$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeCommunitiesFromFavorites$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFullTree$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFullTreePaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setRoleMapForCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRoleMapForCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForCommunityPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForCommunityForUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForCommunityForUserPaging$UPDATES
@Deprecated(forRemoval=true) static final boolean getFeaturedDocumentsForCommunityForUserPaging$UPDATESDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForTopLevelCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForTopLevelCommunityPaging$UPDATES
@Deprecated(forRemoval=true) static final boolean getFeaturedDocumentsForTopLevelCommunityPaging$UPDATESDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForTopLevelCommunityForUser$UPDATES
@Deprecated(forRemoval=true) static final boolean getFeaturedDocumentsForTopLevelCommunityForUser$UPDATESDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFeaturedDocumentsForTopLevelCommunityForUserPaging$UPDATES
@Deprecated(forRemoval=true) static final boolean getFeaturedDocumentsForTopLevelCommunityForUserPaging$UPDATESDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setFeaturedDocumentForCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setFeaturedDocumentsForCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeFeaturedDocumentFromCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeFeaturedDocumentsFromCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getInheritedAdministrators$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getInheritedAdministratorGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
reactivateCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
canUserAdministrateCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
canGroupAdministrateCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getVisibleChildrenOfCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunitiesList$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
searchCommunitiesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSystemCommunityId$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setSystemCommunityId$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
suggest$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getContentIdForCommunityId$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getContentIdsForCommunityIds$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunityIdForContentId$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCommunityIdsForContentIds$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAccessLevelForCommunity$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAccessLevelForCommunities$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
createCommunity
@Write(K_COLLAB) Long createCommunity(Community community_) throws InvalidUserException, InvalidCommunityException 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) void deleteCommunity(Long communityId_) throws InvalidCommunityException, NotEmptyException 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 @Read(K_COLLAB) Community[] getCommunities(Long[] communityIds_) throws InvalidCommunityException 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) 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
@Read(K_COLLAB) MenuTree[] getFullTree() throws InvalidUserException, InvalidKnowledgeCenterExceptionDeprecated.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
@Read(K_COLLAB) 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
@Write(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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 @Read(K_COLLAB) 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
@Read(K_COLLAB) 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) 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
@Write(K_COLLAB) void removeFeaturedDocumentFromCommunity(Long documentId_) throws InvalidDocumentException, InvalidCommunityException Deprecated.- Parameters:
documentId_- the unique ID of theDocument- Throws:
InvalidDocumentException- if theDocumentdoes not existInvalidCommunityException- if theCommunitywhich contains theDocumentdoes not existServiceException- if any system-level error occurs
-
removeFeaturedDocumentsFromCommunity
@Write(K_COLLAB) 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 existInvalidCommunityException- if theCommunitywhich contains any of theDocumentobjects does not existServiceException- if any system-level error occurs
-
getInheritedAdministrators
@Read(K_COLLAB) String[] getInheritedAdministrators(Long communityId_) throws InvalidCommunityException 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
@Read(K_COLLAB) Long[] getInheritedAdministratorGroups(Long communityId_) throws InvalidCommunityException 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
@Write(K_COLLAB) 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
@Read(K_COLLAB) 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
@Read(K_COLLAB) 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
@Read(K_COLLAB) 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
@Read(K_COLLAB) ResultList getCommunitiesList(Long[] ids_) throws InvalidUserException, InvalidDataFormatException 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
@Read(K_COLLAB) 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 @Write(K_COLLAB) void setSystemCommunityId(String name, Long id) throws InvalidCommunityException 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
@Read(K_COLLAB) String suggest(String query, int maxItems, SuggestParam[] params, Boolean groupResults) 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
@Read(K_COLLAB) 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:
ids- 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:
ids- The array of content ids to convert- Returns:
- An array of community ids
-
getAccessLevelForCommunity
@Read(K_COLLAB) int getAccessLevelForCommunity(Long communityId) throws InvalidUserException, InvalidCommunityException Deprecated.Retrieves the Access Level for a community- Parameters:
communityId- the unique ID of the community- Returns:
- int see
Communityfor valid return values - Throws:
InvalidUserException- if theUserdoes not existInvalidCommunityException- if theComunitydoes not exist
-
getAccessLevelForCommunities
@Read(K_COLLAB) int[] getAccessLevelForCommunities(Long[] communityIds) throws InvalidUserException, InvalidCommunityException Deprecated.Retrieves the Access Levels for a list of communities- Parameters:
communityIds- 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.