public interface PersonalizationSearchService
extends com.appiancorp.services.ContextSensitiveService
Method generateSearchIndex(java.sql.Timestamp)
wil generate an index file for all
users and groups created or updated after a particular time. This index file
can be used by the search engine to facilitate searching on users and groups.
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.
GroupService
,
GroupTypeService
,
UserProfileService
,
UserService
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
ADMIN
A constant indicating that a user is an administrator of a given
entity
|
static boolean |
generateSearchIndex$UPDATES |
static boolean |
getApplicationName$UPDATES |
static boolean |
getPermissionsForGroupIds$UPDATES |
static boolean |
getPermissionsForGroupIdsForUser$UPDATES |
static boolean |
getPermissionsForUserIdsForUser$UPDATES |
static boolean |
getPermissionsForUserNames$UPDATES |
static boolean |
getPermissionsForUserNamesForUser$UPDATES |
static boolean |
getWorkspace$UPDATES |
static java.lang.Integer |
INVALID
A constant indicating that a group or username does not refer to a valid
user or group
|
static java.lang.Integer |
LIMITED_EDIT
A constant indicating that a user can edit his basic attributes (address, field01, etc.)
|
static java.lang.Integer |
NO_ACCESS
A constant indicating that a user has no access to a given entity
|
static java.lang.Integer |
VIEW
A constant indicating that a user can view a given entity
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateSearchIndex(java.sql.Timestamp timeStamp_)
|
java.lang.String |
getApplicationName()
Gets the name of the application
|
int[] |
getPermissionsForGroupIds(java.lang.Long[] ids_)
Gets the permissions of the current user for the groups with the specified
ids.
|
int[] |
getPermissionsForGroupIdsForUser(java.lang.Long[] ids_,
java.lang.String userName_)
Gets the permissions of the given user for the groups with the specified
ids.
|
int[] |
getPermissionsForUserIdsForUser(java.lang.Long[] userIds_,
java.lang.String userName_)
Deprecated.
|
int[] |
getPermissionsForUserNames(java.lang.String[] userNames_)
Deprecated.
|
int[] |
getPermissionsForUserNamesForUser(java.lang.String[] userNames_,
java.lang.String userName_)
Deprecated.
|
java.lang.String[] |
getWorkspace()
Gets the current memory profile for the workspace.
|
static final java.lang.Integer INVALID
static final java.lang.Integer NO_ACCESS
static final java.lang.Integer VIEW
static final java.lang.Integer LIMITED_EDIT
static final java.lang.Integer ADMIN
static final boolean generateSearchIndex$UPDATES
static final boolean getPermissionsForUserIdsForUser$UPDATES
static final boolean getPermissionsForGroupIds$UPDATES
static final boolean getPermissionsForGroupIdsForUser$UPDATES
static final boolean getApplicationName$UPDATES
static final boolean getWorkspace$UPDATES
static final boolean getPermissionsForUserNames$UPDATES
static final boolean getPermissionsForUserNamesForUser$UPDATES
java.lang.String generateSearchIndex(java.sql.Timestamp timeStamp_)
timeStamp_
- only include users and groups modified since this time.
Pass null
to index all users and groups.ServiceException
- if any system-level error occurs@Deprecated int[] getPermissionsForUserIdsForUser(java.lang.Long[] userIds_, java.lang.String userName_)
UserService.getSecurityForUser(String)
userIds_
- the ids of the users for which to get permissionsuserName_
- user name to find the access capabilities ofuserIds
, where each member is
a constant representing access capabilities of the given user to the
given user with the given id. The possible permission values are:
INVALID
, NO_ACCESS
, LIMITED_EDIT
and ADMIN
.ServiceException
- if any system-level error occursint[] getPermissionsForGroupIds(java.lang.Long[] ids_)
INVALID
will be returned for that ID.ids_
- the ids of the groups for which to get permissions. If
null
, an empty array will be returned.ids_
, where each member is a
constant representing access capabilities of the current user to the
group with the given id.
The constant values are as follows:
ServiceException
- if any system-level error occursint[] getPermissionsForGroupIdsForUser(java.lang.Long[] ids_, java.lang.String userName_) throws InvalidUserException
INVALID
will be returned for that ID.ids_
- the ids of the groups for which to get permissions. If
null
, an empty array will be returned.userName_
- user name to find the access capabilities ofids_
, where each member is a
constant
representing access capabilities of the given user to the group with the
given id.
The constant values are as follows:
InvalidUserException
- if the username does not correspond to a valid
userServiceException
- if any system-level error occursjava.lang.String getApplicationName()
ServiceException
- if any system-level error occursjava.lang.String[] getWorkspace()
ServiceException
- if any system-level error occurs@Deprecated int[] getPermissionsForUserNames(java.lang.String[] userNames_)
UserService.getSecurityForUser(String)
userNames_
- the usernames of the users for which to get permissionsuserNames_
, where each is member
is a constant representing access capabilities of the current user to the
user with the given username. The possible permission values are: INVALID
,
NO_ACCESS
, LIMITED_EDIT
and ADMIN
.ServiceException
- if any system-level error occurs@Deprecated int[] getPermissionsForUserNamesForUser(java.lang.String[] userNames_, java.lang.String userName_)
UserService.getSecurityForUser(String)
userNames_
- the usernames of the users for which to get permissionsuserName_
- username to find the access capabilities ofuserNames_
, where each is member
is a constant representing access capabilities of the user with the given
userName to the users with the given usernames. The possible permission
values are: INVALID
, NO_ACCESS
, LIMITED_EDIT
and ADMIN
.
The constant values are as follows:ServiceException
- if any system-level error occursCopyright © 2003-2024 Appian Corporation. All Rights Reserved.