@Deprecated
public interface AdministrationService
extends com.appiancorp.services.ContextSensitiveService
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 boolean |
getPermissionsForAdminConsole$UPDATES
Deprecated.
|
static boolean |
getSecurityForAdminConsole$UPDATES
Deprecated.
|
static boolean |
setActorsInRolesForAdminConsole$UPDATES
Deprecated.
|
static boolean |
setSecurityForAdminConsole$UPDATES
Deprecated.
|
static boolean |
validateDatabase$UPDATES
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AdminConsolePermissions |
getPermissionsForAdminConsole()
Deprecated.
Gets the permissions related to the Administration Console for the
current user.
|
Security |
getSecurityForAdminConsole()
Deprecated.
Returns a
Security bean
containing the security settings for the Administration Console. |
void |
setActorsInRolesForAdminConsole(java.lang.String[] users_,
java.lang.String[][] userRoles_,
java.lang.Long[] groups_,
java.lang.String[][] groupRoles_)
Deprecated.
Sets the permissions of users and groups for the
Administration Console.
|
void |
setSecurityForAdminConsole(Security s_)
Deprecated.
Updates (overwrites) the security settings for the Administration
Console.
|
DatabaseStatus |
validateDatabase(int thoroughness_)
Deprecated.
Performs validation on the database(s) associated with this service.
|
static final boolean getPermissionsForAdminConsole$UPDATES
static final boolean setSecurityForAdminConsole$UPDATES
static final boolean getSecurityForAdminConsole$UPDATES
static final boolean setActorsInRolesForAdminConsole$UPDATES
static final boolean validateDatabase$UPDATES
AdminConsolePermissions getPermissionsForAdminConsole()
AdminConsolePermissions
bean containing the
privileges for the current user.ServiceException
- if any system-level error occursvoid setSecurityForAdminConsole(Security s_) throws PrivilegeException, InvalidUserException, InvalidGroupException
s_
- The Security
bean
which contains the new security settings. All fields other than
native
in the Security
object will be ignored.
The native rolemap should be of type AdminConsoleRoleMap
PrivilegeException
- if the current user does not have sufficient
privileges to change the security settings. A user must be an
AdminConsoleRoleMap.EDITOR
or a system administrator in order to change the security settings.InvalidUserException
- if any user in the Security
object's rolemap does not existServiceException
- if any system-level error occursInvalidGroupException
- if the group does not existgetSecurityForAdminConsole()
Security getSecurityForAdminConsole()
Security
bean
containing the security settings for the Administration Console. The
native
field of the returned Security
will be
populated with a role map of type AdminConsoleRoleMap
; the
inheritable
field will be null
.Security
bean containing the security
settings for the Administration Console.ServiceException
- if any system-level error occurssetSecurityForAdminConsole(Security)
void setActorsInRolesForAdminConsole(java.lang.String[] users_, java.lang.String[][] userRoles_, java.lang.Long[] groups_, java.lang.String[][] groupRoles_) throws PrivilegeException, InvalidUserException, InvalidGroupException
setSecurityForAdminConsole(Security)
users_
- the list of users (user names) whose roles are to be
added/modified
This parameter can be null, as long as userRoles_
is also
null. If one is null and the other is not, a NullPointerException will be
thrown. If the first dimension of both arrays is not the same length, then
an ArrayIndexOutOfBoundsException will be thrown.userRoles_
- a 2-dimensional array of size [users_.length]. The
String array userRoles_[i] represents the roles which users_[i] will have.
(If this array is null or zero-length, the user has no explicit
permissions in the Admin Console RoleMap). It is legal to have nulls within
the array.groups_
- the list of groups whose roles are to be added/modified
This parameter can be null, as long as groupRoles_
is also
null. If one is null and the other is not, a NullPointerException will be
thrown. If the first dimension of both arrays is not the same length, then
an ArrayIndexOutOfBoundsException will be thrown.groupRoles_
- a 2-dimentional array of size [groups_.length]. The
String array groupRoles_[i] represents
the roles which groups_[i] will have.
(If this array is null or zero-length, the group has no explicit
permissions in the Admin Console RoleMap). It is legal to have nulls within
the array for a particular group(s).PrivilegeException
- if the current user does not have sufficient
privileges to update the roles. A user must be an
AdminConsoleRoleMap.EDITOR
or a system administrator to change the security settings.InvalidUserException
- if any of the users in users_
do
not exist.ServiceException
- if any system-level error occursInvalidGroupException
- if the group doesn't existDatabaseStatus validateDatabase(int thoroughness_)
thoroughness_
- indicates the level of thoroughness of the query.
Values are DatabaseStatus.QUICK
and
DatabaseStatus.SLOW
DatabaseStatus
object encapsulating the results
of the validation query.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.