public enum StandardFeature extends Enum<StandardFeature> implements Feature
features
provided by the applicationEnum Constant and Description |
---|
ATTACHMENTS
Controls whether users can upload attachments in pull request comments.
|
AUTH_CAPTCHA
Controls whether users will be required to solve a CAPTCHA after a configured number of failed attempts
to login.
|
COMMIT_GRAPH
Controls whether the commit graph is displayed on the commits page of a repository.
|
DATA_CENTER_MIGRATION_EXPORT
Controls whether Data Center Migration archives can be generated on this instance.
|
DATA_CENTER_MIGRATION_IMPORT
Controls whether Data Center Migration archives can be imported into the instance.
|
DIAGNOSTICS
Controls whether diagnostics is enabled
|
FILE_EDITOR
Controls whether users can edit repository files in the browser and via REST.
|
FORKS
Controls whether repositories are allowed to be forked.
|
GETTING_STARTED
Controls whether new users will be presented with a "Getting Started" page after their first login.
|
PERSONAL_REPOS
Controls whether users can create repositories in their personal projects.
|
PUBLIC_ACCESS
Controls whether
projects and repositories can be
configured to allow public access. |
PULL_REQUEST_DELETION
Controls whether pull requests can be deleted.
|
PULL_REQUEST_SUGGESTIONS
Controls whether pull request suggestions are enabled.
|
RATE_LIMITING
Controls whether HTTP requests will be rate limited per user.
|
SMART_MIRRORS
Controls whether smart mirrors can be configured.
|
TIME_ZONE_ONBOARDING
Controls whether users will be prompted to update their timezone after their first login.
|
Modifier and Type | Method and Description |
---|---|
static StandardFeature |
fromKey(String value) |
String |
getKey() |
boolean |
isDataCenter() |
static StandardFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardFeature ATTACHMENTS
public static final StandardFeature AUTH_CAPTCHA
public static final StandardFeature COMMIT_GRAPH
public static final StandardFeature DIAGNOSTICS
public static final StandardFeature FILE_EDITOR
ContentService.editFile(com.atlassian.bitbucket.content.EditFileRequest)
public static final StandardFeature FORKS
public static final StandardFeature GETTING_STARTED
public static final StandardFeature DATA_CENTER_MIGRATION_EXPORT
This is not a data center-only
feature, data can be exported from Server
installations as well.
public static final StandardFeature DATA_CENTER_MIGRATION_IMPORT
This is a data center-only
feature.
public static final StandardFeature PERSONAL_REPOS
FORKS
feature should
be disabled instead of, or in addition to, this one.PersonalRepositoryDisabledException
public static final StandardFeature PUBLIC_ACCESS
projects
and repositories
can be
configured to allow public access. When this feature is disabled, it overrides any configuration applied to
individual projects or repositories.public static final StandardFeature PULL_REQUEST_DELETION
public static final StandardFeature PULL_REQUEST_SUGGESTIONS
public static final StandardFeature RATE_LIMITING
public static final StandardFeature SMART_MIRRORS
data center-only
feature.
Enabling or disabling this feature has no effect if a data center license is not installed. Disabling this
feature prevents the use of smart mirrors even if a data center license is installed.public static final StandardFeature TIME_ZONE_ONBOARDING
public static StandardFeature[] values()
for (StandardFeature c : StandardFeature.values()) System.out.println(c);
public static StandardFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public static StandardFeature fromKey(String value)
public boolean isDataCenter()
isDataCenter
in interface Feature
true
if the feature requires a Data Center license, otherwise false
Copyright © 2019 Atlassian. All rights reserved.