ContentService
instead.@Deprecated
public interface CollaborationSearchService
extends com.appiancorp.services.ContextSensitiveService
Method generateSearchIndex(java.sql.Timestamp)
will generate an index file for all
collaboration entities (documents, folders, knowledge centers, communities)
created or updated after a particular time. This index file can be
used by the search engine to facilitate searching on the entities
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 | Field and Description |
---|---|
static int |
ADMIN
Deprecated.
|
static int |
CANTSEE
Deprecated.
|
static int |
EDITOR
Deprecated.
|
static boolean |
generateSearchIndex$UPDATES
Deprecated.
|
static boolean |
getPermissionsForCommunityIds$UPDATES
Deprecated.
|
static boolean |
getPermissionsForCommunityIdsForUser$UPDATES
Deprecated.
|
static boolean |
getPermissionsForDocumentIds$UPDATES
Deprecated.
|
static boolean |
getPermissionsForDocumentIdsForUser$UPDATES
Deprecated.
|
static boolean |
getPermissionsForFolderIds$UPDATES
Deprecated.
|
static boolean |
getPermissionsForFolderIdsForUser$UPDATES
Deprecated.
|
static boolean |
getPermissionsForKnowledgeCenterIds$UPDATES
Deprecated.
|
static boolean |
getPermissionsForKnowledgeCenterIdsForUser$UPDATES
Deprecated.
|
static int |
INVALID
Deprecated.
|
static int |
READER
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateSearchIndex(java.sql.Timestamp timeStamp_)
Deprecated.
|
int[] |
getPermissionsForCommunityIds(java.lang.Long[] communityIds_)
Deprecated.
Gets the permissions which the specified user has for a list of
community IDs
|
int[] |
getPermissionsForCommunityIdsForUser(java.lang.Long[] communityIds_,
java.lang.String userName_)
Deprecated.
Gets the permissions which the specified user has for a list of
community IDs
|
int[] |
getPermissionsForDocumentIds(java.lang.Long[] documentIds_)
Deprecated.
Gets the permissions which the current user has for a list of
document IDs
|
int[] |
getPermissionsForDocumentIdsForUser(java.lang.Long[] documentIds_,
java.lang.String userName_)
Deprecated.
Gets the permissions which the specified user has for a list of
document IDs
|
int[] |
getPermissionsForFolderIds(java.lang.Long[] folderIds_)
Deprecated.
Gets the permissions which the specified user has for a list of
folder IDs
|
int[] |
getPermissionsForFolderIdsForUser(java.lang.Long[] folderIds_,
java.lang.String userName_)
Deprecated.
Gets the permissions which the specified user has for a list of
folder IDs
|
int[] |
getPermissionsForKnowledgeCenterIds(java.lang.Long[] knowledgeCenterIds_)
Deprecated.
Gets the permissions which the specified user has for a list of
knowledge center IDs
|
int[] |
getPermissionsForKnowledgeCenterIdsForUser(java.lang.Long[] knowledgeCenterIds_,
java.lang.String userName_)
Deprecated.
Gets the permissions which the specified user has for a list of
knowledge center IDs
|
static final int INVALID
static final int CANTSEE
static final int READER
static final int EDITOR
static final int ADMIN
static final boolean generateSearchIndex$UPDATES
static final boolean getPermissionsForDocumentIds$UPDATES
static final boolean getPermissionsForDocumentIdsForUser$UPDATES
static final boolean getPermissionsForFolderIds$UPDATES
static final boolean getPermissionsForFolderIdsForUser$UPDATES
static final boolean getPermissionsForKnowledgeCenterIds$UPDATES
static final boolean getPermissionsForKnowledgeCenterIdsForUser$UPDATES
static final boolean getPermissionsForCommunityIds$UPDATES
static final boolean getPermissionsForCommunityIdsForUser$UPDATES
java.lang.String generateSearchIndex(java.sql.Timestamp timeStamp_)
timeStamp_
- only include entities modified since
this time. Pass null
to perform a full index
generationServiceException
- if any system-level error occursint[] getPermissionsForDocumentIds(java.lang.Long[] documentIds_) throws InvalidUserException
documentIds_
- the IDs of the documents for which to return the
permission levelsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForDocumentIdsForUser(java.lang.Long[] documentIds_, java.lang.String userName_) throws InvalidUserException
documentIds_
- the IDs of the documents for which to return the
permission levelsuserName_
- the username of the user for whom to check permissionsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForFolderIds(java.lang.Long[] folderIds_) throws InvalidUserException
folderIds_
- the IDs of the folders for which to return the permission
levelsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForFolderIdsForUser(java.lang.Long[] folderIds_, java.lang.String userName_) throws InvalidUserException
folderIds_
- the IDs of the folders for which to return the permission
levelsuserName_
- the username of the user for whom to check permissionsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForKnowledgeCenterIds(java.lang.Long[] knowledgeCenterIds_) throws InvalidUserException
knowledgeCenterIds_
- the IDs of the knowledge centers for which to
return the permission levelsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForKnowledgeCenterIdsForUser(java.lang.Long[] knowledgeCenterIds_, java.lang.String userName_) throws InvalidUserException
knowledgeCenterIds_
- the IDs of the knowledge centers for which to
return the permission levelsuserName_
- the username of the user for whom to check permissionsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForCommunityIds(java.lang.Long[] communityIds_) throws InvalidUserException
communityIds_
- the IDs of the communities for which to return the
permission levels. If communityIds_ is null the the method will get the
permission levels for all communities.InvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursint[] getPermissionsForCommunityIdsForUser(java.lang.Long[] communityIds_, java.lang.String userName_) throws InvalidUserException
communityIds_
- the IDs of the communities for which to return the
permission levelsuserName_
- the username of the user for whom to check permissionsInvalidUserException
- if the user calling this method does not existServiceException
- if any system-level error occursCopyright © 2003-2024 Appian Corporation. All Rights Reserved.