public class GlobalCapability
extends java.lang.Object
Permission
objects.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_DATABASE
Ability to access the database (with gsql).
|
static java.lang.String |
ADMINISTRATE_SERVER
Denotes the server's administrators.
|
static java.lang.String |
BATCH_CHANGES_LIMIT
Maximum number of changes that may be pushed in a batch.
|
static java.lang.String |
CREATE_ACCOUNT
Can create any account on the server.
|
static java.lang.String |
CREATE_GROUP
Can create any group on the server.
|
static java.lang.String |
CREATE_PROJECT
Can create any project on the server.
|
static int |
DEFAULT_MAX_BATCH_CHANGES_LIMIT
Default maximum number of changes that may be pushed in a batch, 0 means no limit.
|
static int |
DEFAULT_MAX_QUERY_LIMIT
Default result limit per executed query.
|
static java.lang.String |
EMAIL_REVIEWERS
Denotes who may email change reviewers and watchers.
|
static java.lang.String |
FLUSH_CACHES
Can flush any cache except the active web_sessions cache.
|
static java.lang.String |
KILL_TASK
Can terminate any task using the kill command.
|
static java.lang.String |
MAINTAIN_SERVER
Can perform limited server maintenance.
|
static java.lang.String |
MODIFY_ACCOUNT
Can modify any account on the server.
|
static java.lang.String |
PRIORITY
Queue a user can access to submit their tasks to.
|
static java.lang.String |
QUERY_LIMIT
Maximum result limit per executed query.
|
static java.lang.String |
RUN_AS
Ability to impersonate another user.
|
static java.lang.String |
RUN_GC
Can run the Git garbage collection.
|
static java.lang.String |
STREAM_EVENTS
Can perform streaming of Gerrit events.
|
static java.lang.String |
VIEW_ALL_ACCOUNTS
Can view all accounts, regardless of
accounts.visibility . |
static java.lang.String |
VIEW_CACHES
Can view the server's current cache states.
|
static java.lang.String |
VIEW_CONNECTIONS
Can view open connections to the server's SSH port.
|
static java.lang.String |
VIEW_PLUGINS
Can view all installed plugins.
|
static java.lang.String |
VIEW_QUEUE
Can view all pending tasks in the queue (not just the filtered set).
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<java.lang.String> |
getAllNames() |
static PermissionRange.WithDefaults |
getRange(java.lang.String varName) |
static boolean |
hasRange(java.lang.String varName) |
static boolean |
isCapability(java.lang.String varName) |
public static final java.lang.String ACCESS_DATABASE
public static final java.lang.String ADMINISTRATE_SERVER
This is similar to UNIX root, or Windows SYSTEM account. Any user that has this capability can perform almost any other action, or can grant themselves the power to perform any other action on the site. Most of the other capabilities and permissions fall-back to the predicate "OR user has capability ADMINISTRATE_SERVER".
public static final java.lang.String BATCH_CHANGES_LIMIT
public static final int DEFAULT_MAX_BATCH_CHANGES_LIMIT
public static final java.lang.String CREATE_ACCOUNT
public static final java.lang.String CREATE_GROUP
public static final java.lang.String CREATE_PROJECT
public static final java.lang.String EMAIL_REVIEWERS
This can be used to deny build bots from emailing reviewers and people who watch the change. Instead, only the authors of the change and those who starred it will be emailed. The allow rules are evaluated before deny rules, however the default is to allow emailing, if no explicit rule is matched.
public static final java.lang.String FLUSH_CACHES
public static final java.lang.String KILL_TASK
public static final java.lang.String MAINTAIN_SERVER
Includes tasks such as reindexing changes and flushing caches that may need to be performed
regularly. Does not grant arbitrary read/write/ACL management permissions as
does ADMINISTRATE_SERVER
.
public static final java.lang.String MODIFY_ACCOUNT
public static final java.lang.String PRIORITY
public static final java.lang.String QUERY_LIMIT
public static final int DEFAULT_MAX_QUERY_LIMIT
public static final java.lang.String RUN_AS
public static final java.lang.String RUN_GC
public static final java.lang.String STREAM_EVENTS
public static final java.lang.String VIEW_ALL_ACCOUNTS
accounts.visibility
.public static final java.lang.String VIEW_CACHES
public static final java.lang.String VIEW_CONNECTIONS
public static final java.lang.String VIEW_PLUGINS
public static final java.lang.String VIEW_QUEUE
public static java.util.Collection<java.lang.String> getAllNames()
public static boolean isCapability(java.lang.String varName)
public static boolean hasRange(java.lang.String varName)
public static PermissionRange.WithDefaults getRange(java.lang.String varName)