ContentService
instead.@Deprecated
public interface CommunityService
extends com.appiancorp.services.ContextSensitiveService
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.
Modifier and Type | Method and Description |
---|---|
void |
addCommunitiesToFavorites(java.lang.Long[] communityIds_)
Deprecated.
Adds multiple
Community objects to the user's list of favorites |
void |
addCommunityToFavorites(java.lang.Long communityId_)
Deprecated.
Adds a
Community to the user's list of favorites |
boolean |
canGroupAdministrateCommunity(java.lang.Long groupId_,
java.lang.Long communityId_)
Deprecated.
Returns
true if the specified Group is an
administrator of the Community |
boolean |
canUserAdministrateCommunity(java.lang.Long communityId_)
Deprecated.
|
java.lang.Long[] |
createCommunities(Community[] communities_)
Deprecated.
Creates
Community objects in bulk in the collaboration application |
java.lang.Long |
createCommunity(Community community_)
Deprecated.
Creates a new
Community in the collaboration application |
void |
deleteCommunity(java.lang.Long communityId_)
Deprecated.
Deletes the specified
Community |
int[] |
getAccessLevelForCommunities(java.lang.Long[] cids_)
Deprecated.
Retrieves the Access Levels for a list of communities
|
int |
getAccessLevelForCommunity(java.lang.Long cid_)
Deprecated.
Retrieves the Access Level for a community
|
Community[] |
getAdministratableCommunitiesForUser()
Deprecated.
|
ResultPage |
getAdministratableCommunitiesForUserPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the list of
Community objects of which the current
User is an administrator. |
Community[] |
getChildCommunities(java.lang.Long communityId_,
java.lang.Integer sortOrder_,
java.lang.String sortColumn_)
Deprecated.
|
ResultPage |
getChildCommunitiesPaging(java.lang.Long communityId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the list of
Community objects which are direct children
of the specified parent Community . |
KnowledgeCenter[] |
getChildKnowledgeCenters(java.lang.Long communityId_,
java.lang.Integer sortOrder_,
java.lang.String sortColumn_)
Deprecated.
|
ResultPage |
getChildKnowledgeCentersPaging(java.lang.Long communityId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the list of
KnowledgeCenter objects which are direct
children of the specified parent Community
NOTE: The returned list will be sorted first by
sortProperty_ , and then by user status in the
order: KnowledgeCenter.USER_STATUS_SUBSCRIBED ,
KnowledgeCenter.USER_STATUS_PENDING ,
KnowledgeCenter.USER_STATUS_UNSUBSCRIBED |
Community[] |
getCommunities(java.lang.Long[] communityIds_)
Deprecated.
|
Community[] |
getCommunitiesForUser()
Deprecated.
|
ResultPage |
getCommunitiesForUserPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
|
ResultList |
getCommunitiesList(java.lang.Long[] ids_)
Deprecated.
Get the
Community objects by the requested IDs. |
ResultPage |
getCommunitiesPaging(java.lang.Long[] communityIds_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves a list of
Community objects from their IDs |
Community |
getCommunity(java.lang.Long communityId_)
Deprecated.
Retrieves a
Community |
java.lang.Long |
getCommunityIdForContentId(java.lang.Long id_)
Deprecated.
Converts a content id into a community id.
|
java.lang.Long[] |
getCommunityIdsForContentIds(java.lang.Long[] id_)
Deprecated.
Converts an array of content id's into an array of community id's.
|
java.lang.Long |
getContentIdForCommunityId(java.lang.Long id_)
Deprecated.
Converts a community id into a content id.
|
java.lang.Long[] |
getContentIdsForCommunityIds(java.lang.Long[] ids_)
Deprecated.
Converts an array of community id's into an array of content id's.
|
Community[] |
getFavoriteCommunities(java.lang.Integer sortOrder_,
java.lang.String sortColumn_)
Deprecated.
|
ResultPage |
getFavoriteCommunitiesPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the list of
Community objects which have been tagged
as favorites by the user |
Document[] |
getFeaturedDocumentsForCommunity(java.lang.Long communityId_)
|
Document[] |
getFeaturedDocumentsForCommunityForUser(java.lang.Long communityId_)
|
ResultPage |
getFeaturedDocumentsForCommunityForUserPaging(java.lang.Long communityId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the featured
Document objects for a given
Community and its subcommunities that the current
User can access. |
ResultPage |
getFeaturedDocumentsForCommunityPaging(java.lang.Long communityId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
|
Document[] |
getFeaturedDocumentsForTopLevelCommunity(java.lang.Long communityId_)
|
Document[] |
getFeaturedDocumentsForTopLevelCommunityForUser(java.lang.Long communityId_)
|
ResultPage |
getFeaturedDocumentsForTopLevelCommunityForUserPaging(java.lang.Long communityId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
|
ResultPage |
getFeaturedDocumentsForTopLevelCommunityPaging(java.lang.Long communityId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the featured documents for a given Community (but not its
subcommunities)
|
MenuTree[] |
getFullTree()
Deprecated.
Get a list of
MenuTree objects for construction of
the collaboration navigation tree |
ResultPage |
getFullTreePaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Get a list of
MenuTree objects for construction of
the collaboration navigation tree |
Community[] |
getInactiveCommunities()
Deprecated.
|
ResultPage |
getInactiveCommunitiesPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the list of inactive
Community objects |
java.lang.Long[] |
getInheritedAdministratorGroups(java.lang.Long communityId_)
Deprecated.
Get the inherited administrator groups for a
Community . |
java.lang.String[] |
getInheritedAdministrators(java.lang.Long communityId_)
Deprecated.
Get the inherited administrators for a
Community . |
CollaborationRoleMap |
getRoleMapForCommunity(java.lang.Long communityId_)
Deprecated.
Retrieves the
CollaborationRoleMap object for a given
Community |
Community[] |
getRootCommunities()
Deprecated.
|
ResultPage |
getRootCommunitiesPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Retrieves the list of
Community objects which are root communities
NOTE: The returned list will be sorted first by
sortProperty_ , and then by user status in the
order: Community.USER_STATUS_SUBSCRIBED ,
Community.USER_STATUS_PENDING ,
Community.USER_STATUS_UNSUBSCRIBED |
java.lang.Long |
getSystemCommunityId(java.lang.String name_)
Deprecated.
|
java.lang.Integer[] |
getVisibleChildrenOfCommunity(java.lang.Long[] communityIds_)
Deprecated.
Retrieve visible children of a
Community . |
boolean |
isCommunityEmpty(java.lang.Long communityId_)
Deprecated.
Checks whether a community contains children (sub-communities, knowledge
centers, folders or documents).
|
void |
reactivateCommunity(java.lang.Long communityId_)
Deprecated.
Reactivate a
Community . |
void |
removeCommunitiesFromFavorites(java.lang.Long[] communityIds_)
Deprecated.
Removes multiple
Community objects from the user's favorites list |
void |
removeCommunityFromFavorites(java.lang.Long communityId_)
Deprecated.
Removes a
Community from the user's favorites list |
void |
removeFeaturedDocumentFromCommunity(java.lang.Long documentId_)
Deprecated.
|
void |
removeFeaturedDocumentsFromCommunity(java.lang.Long[] documentIds_)
Deprecated.
|
ResultPage |
searchCommunitiesPaging(java.lang.String searchterm_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Get the
Community objects whose names match
searchterm_ . |
void |
setFeaturedDocumentForCommunity(java.lang.Long documentId_)
Deprecated.
|
void |
setFeaturedDocumentsForCommunity(java.lang.Long[] documentIds_)
Deprecated.
|
void |
setRoleMapForCommunity(java.lang.Long communityId_,
CollaborationRoleMap crm_)
Deprecated.
Set the
CollaborationRoleMap object for a given Community . |
void |
setSystemCommunityId(java.lang.String name_,
java.lang.Long id_)
Deprecated.
use
createCommunity(Community) with a pre-populated UUID |
java.lang.String |
suggest(java.lang.String query_,
int maxItems_,
SuggestParam[] params_,
java.lang.Boolean groupResults_)
Deprecated.
|
java.lang.String |
suggest(java.lang.String query_,
int maxItems_,
SuggestParam[] params_,
java.lang.Boolean groupResults_,
java.lang.Long[] allowList)
Deprecated.
|
void |
updateCommunities(Community[] communities_)
Deprecated.
Updates the information stored about a list of
Community objects |
void |
updateCommunity(Community community_)
Deprecated.
Updates a
Community |
static final boolean createCommunity$UPDATES
static final boolean createCommunities$UPDATES
static final boolean deleteCommunity$UPDATES
static final boolean getCommunity$UPDATES
static final boolean getCommunities$UPDATES
static final boolean getCommunitiesPaging$UPDATES
static final boolean getCommunitiesForUser$UPDATES
static final boolean getCommunitiesForUserPaging$UPDATES
static final boolean getAdministratableCommunitiesForUser$UPDATES
static final boolean getAdministratableCommunitiesForUserPaging$UPDATES
static final boolean getRootCommunities$UPDATES
static final boolean getRootCommunitiesPaging$UPDATES
static final boolean updateCommunity$UPDATES
static final boolean updateCommunities$UPDATES
static final boolean getInactiveCommunities$UPDATES
static final boolean getInactiveCommunitiesPaging$UPDATES
static final boolean getChildCommunities$UPDATES
static final boolean getChildCommunitiesPaging$UPDATES
static final boolean getChildKnowledgeCenters$UPDATES
static final boolean getChildKnowledgeCentersPaging$UPDATES
static final boolean isCommunityEmpty$UPDATES
static final boolean getFavoriteCommunities$UPDATES
static final boolean getFavoriteCommunitiesPaging$UPDATES
static final boolean addCommunityToFavorites$UPDATES
static final boolean addCommunitiesToFavorites$UPDATES
static final boolean removeCommunityFromFavorites$UPDATES
static final boolean removeCommunitiesFromFavorites$UPDATES
static final boolean getFullTree$UPDATES
static final boolean getFullTreePaging$UPDATES
static final boolean setRoleMapForCommunity$UPDATES
static final boolean getRoleMapForCommunity$UPDATES
static final boolean getFeaturedDocumentsForCommunity$UPDATES
static final boolean getFeaturedDocumentsForCommunityPaging$UPDATES
static final boolean getFeaturedDocumentsForCommunityForUser$UPDATES
static final boolean getFeaturedDocumentsForCommunityForUserPaging$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunity$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunityPaging$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunityForUser$UPDATES
static final boolean getFeaturedDocumentsForTopLevelCommunityForUserPaging$UPDATES
static final boolean setFeaturedDocumentForCommunity$UPDATES
static final boolean setFeaturedDocumentsForCommunity$UPDATES
static final boolean removeFeaturedDocumentFromCommunity$UPDATES
static final boolean removeFeaturedDocumentsFromCommunity$UPDATES
static final boolean getInheritedAdministrators$UPDATES
static final boolean getInheritedAdministratorGroups$UPDATES
static final boolean reactivateCommunity$UPDATES
static final boolean canUserAdministrateCommunity$UPDATES
static final boolean canGroupAdministrateCommunity$UPDATES
static final boolean getVisibleChildrenOfCommunity$UPDATES
static final boolean getCommunitiesList$UPDATES
static final boolean searchCommunitiesPaging$UPDATES
static final boolean getSystemCommunityId$UPDATES
static final boolean setSystemCommunityId$UPDATES
static final boolean suggest$UPDATES
static final boolean getContentIdForCommunityId$UPDATES
static final boolean getContentIdsForCommunityIds$UPDATES
static final boolean getCommunityIdForContentId$UPDATES
static final boolean getCommunityIdsForContentIds$UPDATES
static final boolean getAccessLevelForCommunity$UPDATES
static final boolean getAccessLevelForCommunities$UPDATES
java.lang.Long createCommunity(Community community_) throws InvalidUserException, InvalidCommunityException
Community
in the collaboration applicationcommunity_
- A Community
object which should contain all of
the information required to create a valid
Community
. Minimum
required fields: name
, description
Community
InvalidUserException
- if the current user does not existInvalidCommunityException
- if the parent ID of the Community
specifies a
Community
that does not existServiceException
- if any system-level error occursjava.lang.Long[] createCommunities(Community[] communities_) throws InvalidUserException, InvalidCommunityException
Community
objects in bulk in the collaboration applicationcommunities_
- An array of Community
objects, each of which should
contain all of the information required to create a valid
Community
.
Minimum required fields: name
,
description
Community
objectsInvalidUserException
- if the current user does not existInvalidCommunityException
- if the parent ID of any of the Community
objects specifies a
Community
that does not existServiceException
- if any system-level error occursvoid deleteCommunity(java.lang.Long communityId_) throws InvalidCommunityException, NotEmptyException
Community
communityId_
- the unique ID of the Community
to be deletedInvalidCommunityException
- if no Community
exists with the unique ID
communityId_
NotEmptyException
- if the Community
contains children (either other
Community
objects or KnowledgeCenter
objects)
and therefore cannot be deleted.ServiceException
- if any system-level error occursCommunity getCommunity(java.lang.Long communityId_) throws InvalidCommunityException
Community
communityId_
- The unique ID of the Community
to be retrievedCommunity
object representing the community with
unique ID communityId_
InvalidCommunityException
- if no Community
exists with the unique ID
communityId_
.ServiceException
- if any system-level error occurs@Deprecated Community[] getCommunities(java.lang.Long[] communityIds_) throws InvalidCommunityException
getCommunitiesPaging(Long[], int, int, Integer, Integer)
insteadCommunity
objects from their IDscommunityIds_
- an array of unique IDs of the communities to be retrievedCommunity
objects representing the
communities whose unique IDs are in communityIds_
InvalidCommunityException
- if any of the unique IDs in communityIds_
is
invalidServiceException
- if any system-level error occursResultPage getCommunitiesPaging(java.lang.Long[] communityIds_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidCommunityException
Community
objects from their IDscommunityIds_
- 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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of Community
objects
representing the communities whose unique IDs are in
communityIds_
InvalidCommunityException
- if any of the unique IDs in communityIds_
is invalidServiceException
- if any system-level error occurs.@Deprecated Community[] getCommunitiesForUser() throws InvalidUserException, InvalidCommunityException
getCommunitiesForUserPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
objects which contain
Document
objects to which the current User
has access.
Users will only be able to see those Document
objects to which
they have at least read-only access.Community
objects representing the
communities which contain documents to which the current user has
accessInvalidUserException
- if the User
does not existInvalidCommunityException
- if one or more of the communities returned no longer existServiceException
- if any system-level error occursResultPage getCommunitiesForUserPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException
Community
objects which contain
Document
objects to which the current User
has access
Users will only be able to see those Document
objects to which
they have at least read-only access.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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
Community
objects representing the communities which
contain documents to which the current User
has accessInvalidUserException
- if the User
does not existInvalidCommunityException
- if one or more of the communities returned no longer existServiceException
- if any system-level error occurs@Deprecated Community[] getAdministratableCommunitiesForUser() throws InvalidUserException, InvalidCommunityException
getAdministratableCommunitiesForUserPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
objects of which the current
User
is an administrator.Community
objects representing the
communities of which the current User
is an
administrator.InvalidUserException
- if the User
does not existInvalidCommunityException
- if one or more of the communities returned no longer existServiceException
- if any system-level error occurs.ResultPage getAdministratableCommunitiesForUserPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException
Community
objects of which the current
User
is an administrator.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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
Community
objects representing the communities of which
the current User
is an administrator.InvalidUserException
- if the User
does not existInvalidCommunityException
- if one or more of the communities returned no longer existServiceException
- if any system-level error occurs.@Deprecated Community[] getRootCommunities() throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException
getRootCommunitiesPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
objects 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
Community
objects representing the
communities which are root communities.InvalidUserException
- if the user does not existInvalidKnowledgeCenterException
- if any of the root communities
to be returned contains an invalid KnowledgeCenter
InvalidCommunityException
- if any of the communities does not existServiceException
- if any system-level error occursResultPage getRootCommunitiesPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException
Community
objects which are root communities
NOTE: The returned list will be sorted first by
sortProperty_
, and then by user status in the
order: Community.USER_STATUS_SUBSCRIBED
,
Community.USER_STATUS_PENDING
,
Community.USER_STATUS_UNSUBSCRIBED
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
Community
objects representing the communities which are root
communities.InvalidUserException
- if the user does not existInvalidKnowledgeCenterException
- if any of the root communities
to be returned contains an invalid KnowledgeCenter
InvalidCommunityException
- if any of the comunities does not existServiceException
- if any system-level error occursvoid updateCommunity(Community community_) throws InvalidCommunityException, RecursiveRelationshipException
Community
community_
- A Community
object 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.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 occursvoid updateCommunities(Community[] communities_) throws InvalidCommunityException, RecursiveRelationshipException
Community
objectscommunities_
- a list of Community
objects 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.InvalidCommunityException
- if any of the communities specified in
communities_
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@Deprecated Community[] getInactiveCommunities()
getInactiveCommunitiesPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
objectsCommunity
objects representing all
inactive communitiesServiceException
- if any system-level error occursResultPage getInactiveCommunitiesPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
Community
objectsstartIndex_
- 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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
Community
objects representing all inactive communitiesServiceException
- if any system-level error occurs@Deprecated Community[] getChildCommunities(java.lang.Long communityId_, java.lang.Integer sortOrder_, java.lang.String sortColumn_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException
getChildCommunitiesPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
objects which are direct children
of the specified parent Community
.
NOTE: The returned list will be sorted first by
sortColumn_
, and then by user status in the
order: Community.USER_STATUS_SUBSCRIBED
,
Community.USER_STATUS_PENDING
,
Community.USER_STATUS_UNSUBSCRIBED
communityId_
- the unique ID of the parent Community
sortOrder_
- The order in which to sort the returned list of communities.
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
sortColumn_
- The field of the Community
by which to sort the
returned list of communities.
This is one of the SORT_COLUMN_XXX
constants in
Community
Community
objects representing those
communities which are direct children of the specified communityInvalidUserException
- if the user does not existInvalidCommunityException
- if the comunity does not existInvalidKnowledgeCenterException
- if one or more of the comunities to be returned
contains a KnowledgeCenter
which
does not existServiceException
- if any system-level error occursResultPage getChildCommunitiesPaging(java.lang.Long communityId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException
Community
objects which are direct children
of the specified parent Community
.
NOTE: The returned list will be sorted first by
sortProperty_
, and then by user status in the
order: Community.USER_STATUS_SUBSCRIBED
,
Community.USER_STATUS_PENDING
,
Community.USER_STATUS_UNSUBSCRIBED
communityId_
- the unique ID of the parent Community
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
Community
objects
representing those communities which are direct children of the
specified communityInvalidUserException
- if the user does not existInvalidCommunityException
- if the comunity does not existInvalidKnowledgeCenterException
- if one or more of the comunities to be returned
contains a KnowledgeCenter
which
does not existServiceException
- if any system-level error occurs@Deprecated KnowledgeCenter[] getChildKnowledgeCenters(java.lang.Long communityId_, java.lang.Integer sortOrder_, java.lang.String sortColumn_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException
getChildKnowledgeCentersPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadKnowledgeCenter
objects which are direct
children of the specified parent Community
NOTE: The returned list will be sorted first by
sortColumn_
, and then by user status in the
order: KnowledgeCenter.USER_STATUS_SUBSCRIBED
,
KnowledgeCenter.USER_STATUS_PENDING
,
KnowledgeCenter.USER_STATUS_UNSUBSCRIBED
communityId_
- the unique ID of the parent communitysortOrder_
- the order in which to sort the returned list of knowledge centers.
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
sortColumn_
- The field of the KnowledgeCenter
by which to
sort the returned list of knowledge centers.
This is one of the SORT_COLUMN_XXX
constants in KnowledgeCenter
.KnowledgeCenter
objects representing
those knowledge centers which are direct children of the community
specified by communityId_
InvalidUserException
- if the user does not existInvalidKnowledgeCenterException
- if one or more of the knowledge centers to be returned
does not existInvalidCommunityException
- of the Community
does not
existServiceException
- if any system-level error occursResultPage getChildKnowledgeCentersPaging(java.lang.Long communityId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException
KnowledgeCenter
objects which are direct
children of the specified parent Community
NOTE: The returned list will be sorted first by
sortProperty_
, and then by user status in the
order: KnowledgeCenter.USER_STATUS_SUBSCRIBED
,
KnowledgeCenter.USER_STATUS_PENDING
,
KnowledgeCenter.USER_STATUS_UNSUBSCRIBED
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the SORT_KNOWLEDGECENTER_PROPERTY_XXX
constants in KnowledgeCenterService
.sortOrder_
- The order in which to sort the returned communities
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
KnowledgeCenter
objects representing those knowledge centers which are direct
children of the specified communityInvalidUserException
- if the user does not existInvalidKnowledgeCenterException
- if one or more of the knowledge centers to be returned
does not existInvalidCommunityException
- if the Community
does not
existServiceException
- if any system-level error occursboolean isCommunityEmpty(java.lang.Long communityId_) throws InvalidCommunityException
communityId_
- the unique ID of the community to checktrue
if the community is empty; false
otherwiseInvalidCommunityException
- if the community specified by communityId_
is invalidServiceException
- if any system-level error occurs@Deprecated Community[] getFavoriteCommunities(java.lang.Integer sortOrder_, java.lang.String sortColumn_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException
getFavoriteCommunitiesPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
objects which have been tagged
as favorites by the usersortOrder_
- The order in which to sort the returned list of communities.
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
sortColumn_
- the field of the Community
by which to sort the
returned list of communities.
This is one of the SORT_COLUMN_XXX
constants in
Community
.Community
objects representing those
communities which are in the user's list of favorite communitiesInvalidUserException
- 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 invalid KnowledgeCenter
ServiceException
- if any system-level error occursResultPage getFavoriteCommunitiesPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException
Community
objects which have been tagged
as favorites by the userstartIndex_
- 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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the returned communities
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the list of
Community
objects representing those communities which are
in the user's list of favorite communitiesInvalidUserException
- 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 invalid KnowledgeCenter
ServiceException
- if any system-level error occursvoid addCommunityToFavorites(java.lang.Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException
Community
to the user's list of favoritescommunityId_
- the unique ID of the community to be addedInvalidUserException
- if the user does not existInvalidCommunityException
- if communityId_
does
not correspond to a communityInvalidKnowledgeCenterException
- if the community to be added contains
an invalid KnowledgeCenter
ServiceException
- if any system-level error occursvoid addCommunitiesToFavorites(java.lang.Long[] communityIds_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException, InvalidDataFormatException
Community
objects to the user's list of favoritescommunityIds_
- an array containing the unique IDs of the communities to be
added as favoritesInvalidUserException
- if the user does not existInvalidCommunityException
- if one or more of the unique IDs in
communityIds_
does not correspond to a
communityInvalidKnowledgeCenterException
- if any of the communities to be added contains
an invalid KnowledgeCenter
InvalidDataFormatException
- if communityIds_ is nullServiceException
- if any system-level error occursvoid removeCommunityFromFavorites(java.lang.Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException
Community
from the user's favorites listcommunityId_
- the unique ID of the community to be removedInvalidUserException
- if the user does not existInvalidCommunityException
- if the community does not existInvalidKnowledgeCenterException
- if the community to be removed contains
an invalid KnowledgeCenter
ServiceException
- if any system-level error occursvoid removeCommunitiesFromFavorites(java.lang.Long[] communityIds_) throws InvalidUserException, InvalidCommunityException, InvalidKnowledgeCenterException, InvalidDataFormatException
Community
objects from the user's favorites listcommunityIds_
- an array containing the unique IDs of the communities to be
removed from favoritesInvalidUserException
- if the user does not existInvalidCommunityException
- if one or more of the unique IDs in
communityIds_
does not existInvalidKnowledgeCenterException
- if any of the communities to be removed contains
an invalid KnowledgeCenter
InvalidDataFormatException
- if communityIds_ is nullServiceException
- if any system-level error occursMenuTree[] getFullTree() throws InvalidUserException, InvalidKnowledgeCenterException
MenuTree
objects for construction of
the collaboration navigation treeMenuTree
objectsInvalidUserException
- if the user does not existInvalidKnowledgeCenterException
- if one or more of the KnowledgeCenter
objects
represented by the MenuTree
object does not existServiceException
- if any system-level error occursResultPage getFullTreePaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidKnowledgeCenterException
MenuTree
objects for construction of
the collaboration navigation treestartIndex_
- 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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the SORT_MENUTREE_PROPERTY_XXX
constantssortOrder_
- The order in which to sort the MenuTree
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
MenuTree
objectsInvalidUserException
- if the user does not existInvalidKnowledgeCenterException
- if one or more of the KnowledgeCenter
objects
represented by the MenuTree
object does not existServiceException
- if any system-level error occursvoid setRoleMapForCommunity(java.lang.Long communityId_, CollaborationRoleMap crm_) throws InvalidUserException, InvalidCommunityException, PrivilegeException
CollaborationRoleMap
object for a given Community
.
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 the Community
is insufficient).communityId_
- the unique ID for a Community
crm_
- The CollaborationRoleMap
object which contains the users
and groups in each role to set (overwrite)InvalidUserException
- if the User
does not existInvalidCommunityException
- if the Community
does not existPrivilegeException
- if the User
does not have the
rights to set the rolemapServiceException
- if any system-level error occursCollaborationRoleMap getRoleMapForCommunity(java.lang.Long communityId_)
CollaborationRoleMap
object for a given
Community
communityId_
- The unique ID for a Community
CollaborationRoleMap
object which contains the users
and groups in each roleServiceException
- if any system-level error occurs@Deprecated Document[] getFeaturedDocumentsForCommunity(java.lang.Long communityId_) throws InvalidCommunityException, InvalidDocumentException, PrivilegeException
getFeaturedDocumentsForCommunityPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadcommunityId_
- the unique ID for a Community
Document
objects representing the
featured Document
objects for this Community
(and its subcommunities)InvalidCommunityException
- if the Community
does not
existInvalidDocumentException
- if any of the featured
Document
objects to be returned does not existServiceException
- if any system-level error occursPrivilegeException
ResultPage getFeaturedDocumentsForCommunityPaging(java.lang.Long communityId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidCommunityException, InvalidDocumentException
communityId_
- the unique ID for a Community
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This will be one of the SORT_DOCUMENT_PROPERTY_XXX
constants
in DocumentService
sortOrder_
- The order in which to sort the Document
objects.
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
Document
objects
representing the featured Document
objects for this
Community
(and its subcommunities)InvalidCommunityException
- if the Community
does not
existInvalidDocumentException
- if any of the featured Document
objects
to be returned does not existServiceException
- if any system-level error occurs@Deprecated Document[] getFeaturedDocumentsForCommunityForUser(java.lang.Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException
getFeaturedDocumentsForCommunityForUserPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadDocument
objects for a given
Community
and its subcommunities that the current
User
can access. Users will only be able to see
those Document
objects to which they have at least read-only
access.communityId_
- the unique ID for a Community
Document
objects representing the
featured documents for this Community
and its
subcommunities that the current user can accessInvalidUserException
- if the User
does not existInvalidCommunityException
- if the Comunity
does not existInvalidDocumentException
- if any of the Document
objects to be returned is invalidServiceException
- if any system-level error occursResultPage getFeaturedDocumentsForCommunityForUserPaging(java.lang.Long communityId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException
Document
objects for a given
Community
and its subcommunities that the current
User
can access. Users will only be able to see
those Document
objects to which they have at least read-only
access.communityId_
- the unique ID for a Community
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This will be one of the SORT_DOCUMENT_PROPERTY_XXX
constants
in DocumentService
sortOrder_
- This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the list of
Document
objects representing the featured documents for
this Community
and its subcommunities that the current
User
can access.InvalidUserException
- if the User
does not existInvalidCommunityException
- if the Community
does not existInvalidDocumentException
- if any of the Document
objects to be returned is invalidServiceException
- if any system-level error occurs@Deprecated Document[] getFeaturedDocumentsForTopLevelCommunity(java.lang.Long communityId_) throws InvalidCommunityException, InvalidDocumentException
getFeaturedDocumentsForTopLevelCommunityPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadCommunity
(but not its
subcommunities)communityId_
- the unique ID for a Community
Document
objects representing the
featured Document
objects for this Community
InvalidCommunityException
- if the Community
does not
existInvalidDocumentException
- if any of the featured
Document
objects to be returned does not existServiceException
- if any system-level error occursResultPage getFeaturedDocumentsForTopLevelCommunityPaging(java.lang.Long communityId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidCommunityException, InvalidDocumentException
communityId_
- the unique ID for a Community
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This will be one of the SORT_DOCUMENT_PROPERTY_XXX
constants
in DocumentService
sortOrder_
- The order in which to sort the Document
objects.
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
Document
objects
representing the featured Document
objects for this
Community
InvalidCommunityException
- if the Community
does not
existInvalidDocumentException
- if any of the featured
Document
objects to be returned does not existServiceException
- if any system-level error occurs@Deprecated Document[] getFeaturedDocumentsForTopLevelCommunityForUser(java.lang.Long communityId_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException
getFeaturedDocumentsForTopLevelCommunityForUserPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadDocument
objects to which they have at least
read-only access.communityId_
- the unique ID for a Community
Document
objects representing the
featured documents for this Community
that the current user
can accessInvalidUserException
- if the User
does not existInvalidCommunityException
- if the Comunity
does not existInvalidDocumentException
- if any of the Document
objects to be returned is invalidServiceException
- if any system-level error occursResultPage getFeaturedDocumentsForTopLevelCommunityForUserPaging(java.lang.Long communityId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException, InvalidDocumentException
Document
objects for a given
Community
(but not its subcommunities) that the current user can
access. Users will only be able to see those Document
objects
to which they have at least read-only access.communityId_
- the unique ID for a Community
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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This will be one of the SORT_DOCUMENT_PROPERTY_XXX
constants
in DocumentService
sortOrder_
- This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the list of
Document
objects representing the featured documents for
this Community
that the current User
can accessInvalidUserException
- if the User
does not existInvalidCommunityException
- if the Community
does not existInvalidDocumentException
- if any of the Document
objects to be returned is invalidServiceException
- if any system-level error occursvoid setFeaturedDocumentForCommunity(java.lang.Long documentId_) throws InvalidCommunityException, InvalidDocumentException
documentId_
- the unique ID for a Document
InvalidCommunityException
- if the Community
in which
the Document
resides is invalidInvalidDocumentException
- if the Document
is invalidServiceException
- if any system-level error occursvoid setFeaturedDocumentsForCommunity(java.lang.Long[] documentIds_) throws InvalidCommunityException, InvalidDocumentException
documentIds_
- An array of unique IDs for the Document
objectsInvalidCommunityException
- if the Community
in which
any of the Document
objects reside is invalidInvalidDocumentException
- if any of the Document
objects is invalidServiceException
- if any system-level error occursvoid removeFeaturedDocumentFromCommunity(java.lang.Long documentId_) throws InvalidDocumentException, InvalidCommunityException
documentId_
- the unique ID of the Document
InvalidDocumentException
- if the Document
does not
existInvalidCommuntyException
- if the Community
which
contains the Document
does not existServiceException
- if any system-level error occursInvalidCommunityException
void removeFeaturedDocumentsFromCommunity(java.lang.Long[] documentIds_) throws InvalidDocumentException, InvalidCommunityException
documentIds_
- An array of unique IDs for the Document
objectsInvalidDocumentException
- if any of the Document
objects does not existInvalidCommuntyException
- if the Community
which
contains any of the Document
objects does not existServiceException
- if any system-level error occursInvalidCommunityException
java.lang.String[] getInheritedAdministrators(java.lang.Long communityId_) throws InvalidCommunityException
Community
.
Community.getAdministrators()
does not return inherited
administratorscommunityId_
- the unique ID for the Community
Community
InvalidCommunityException
- if the Community
does not
existServiceException
- if any system-level error occursjava.lang.Long[] getInheritedAdministratorGroups(java.lang.Long communityId_) throws InvalidCommunityException
Community
.
Community.getAdministratorGroups()
does not return inherited group administratorscommunityId_
- the unique ID for the Community
Community
InvalidCommunityException
- if the Community
does not
existServiceException
- if any system-level error occursvoid reactivateCommunity(java.lang.Long communityId_) throws InvalidCommunityException, InvalidOperationException
Community
. NOTE: This method does not currently
check whether the user has permission to reactivate the
Community
communityId_
- the unique ID for the Community
InvalidCommunityException
- if the Community
does not
existInvalidOperationException
- if the Community
has parent
communities which are still inactive. These must be reactivated first.ServiceException
- if any system-level error occursboolean canUserAdministrateCommunity(java.lang.Long communityId_) throws InvalidUserException, InvalidCommunityException
communityId_
- the unique ID for the Community
true
if the current User
is an
administrator of the Community
InvalidUserException
- if the user
does not existInvalidCommunityException
- if communityId_
does not correspond to a
valid Community
ServiceException
- if any system-level error occursboolean canGroupAdministrateCommunity(java.lang.Long groupId_, java.lang.Long communityId_) throws InvalidCommunityException
true
if the specified Group
is an
administrator of the Community
groupId_
- the unique ID for the Group
communityId_
- the unique ID for the Community
true
if the Group
can administer
the Community
InvalidCommunityException
- if communityId_
does
not correspond to a valid Community
ServiceException
- if any system-level error occursjava.lang.Integer[] getVisibleChildrenOfCommunity(java.lang.Long[] communityIds_) throws InvalidUserException, InvalidKnowledgeCenterException, InvalidCommunityException
Community
. This call is used to
populate a Community
object's children in a hierarchy.communityIds_
- an array of unique ids which each correspond to a
Community
.Integer
array of children in each
Community
where
0=none, 1=community, 2=kc, 3=kc and communityInvalidUserException
- if the User
does not existInvalidKnowledgeCenterException
- if any of the
Community
objects contains an invalid
KnowledgeCenter
InvalidCommunityException
- if any of the
Community
objects is invalidServiceException
- if any system-level error occursResultList getCommunitiesList(java.lang.Long[] ids_) throws InvalidUserException, InvalidDataFormatException
Community
objects by the requested IDs.ids_
- IDs of Community
objects to retrieve.Community
objects
which correspond to the ids_
passed in. CODE_XXX
or COLLAB_CODE_XXX
in
ResultList
.InvalidUserException
- if the current user does not existInvalidDataFormatException
- if ids is nullResultPage searchCommunitiesPaging(java.lang.String searchterm_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, InvalidCommunityException
Community
objects whose names match
searchterm_
.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.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- The property by which the results will be sorted.
This is one of the Community.SORT_BY_XXX
constantssortOrder_
- The order in which to sort the returned communities
This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
Community
InvalidUserException
- if the current user does not existInvalidCommunityException
- if any of the communities is invalid@Deprecated java.lang.Long getSystemCommunityId(java.lang.String name_) throws InvalidCommunityException
ContentService.getIdByUuid(String)
and
getCommunityIdForContentId(Long)
name
- A case-insensitive system name.InvalidCommunityException
- if the string is not recognized.@Deprecated void setSystemCommunityId(java.lang.String name_, java.lang.Long id_) throws InvalidCommunityException
createCommunity(Community)
with a pre-populated UUIDid
value with the specified
name
key.name
- A case-insensitive system name.id
- The community id.InvalidCommunityException
- if the string is not recognized.java.lang.String suggest(java.lang.String query_, int maxItems_, SuggestParam[] params_, java.lang.Boolean groupResults_)
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.java.lang.String suggest(java.lang.String query_, int maxItems_, SuggestParam[] params_, java.lang.Boolean groupResults_, java.lang.Long[] allowList)
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.java.lang.Long getContentIdForCommunityId(java.lang.Long id_)
id
- The community id to convertjava.lang.Long[] getContentIdsForCommunityIds(java.lang.Long[] ids_)
id
- The array of community ids to convertjava.lang.Long getCommunityIdForContentId(java.lang.Long id_)
id
- The content id to convertjava.lang.Long[] getCommunityIdsForContentIds(java.lang.Long[] id_)
id
- The array of content ids to convertint getAccessLevelForCommunity(java.lang.Long cid_) throws InvalidUserException, InvalidCommunityException
cid_
- the unique ID of the communityCommunity
for valid return valuesInvalidUserException
- if the User
does not existInvalidCommunityException
- if the Comunity
does not existint[] getAccessLevelForCommunities(java.lang.Long[] cids_) throws InvalidUserException, InvalidCommunityException
cids_
- a list of unique IDs of the communitiesCommunity
for valid return valuesInvalidUserException
- if the User
does not existInvalidCommunityException
- if the Comunity
does not existCopyright © 2003-2024 Appian Corporation. All Rights Reserved.