public enum StandardFeature extends Enum<StandardFeature> implements Feature
features provided by the application| Enum 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.
|
BIDI_CHARACTER_HIGHLIGHTING
Controls whether Unicode bidirectional characters are highlighted in code contexts (source view, pull requests,
code blocks in comments, etc.).
|
CODE_OWNERS
Controls whether code owners will be added as suggested reviewers when creating pull requests.
|
COMMIT_GRAPH
Controls whether the commit graph is displayed on the commits page of a repository.
|
COMMIT_SHOW_SIGNATURES
Controls whether the commit verification signature information is indexed and displayed on the commits page and
when a commit hash is selected.
|
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.
|
DEPLOYMENTS
Controls whether admins have access to the Deployments view in the UI or the deployments endpoint
in REST.
|
DIAGNOSTICS
Controls whether diagnostics is enabled.
|
ENFORCE_PROJECT_SETTINGS
Controls enforce project settings selector on project admin settings.
|
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.
|
JIRA_CLOUD_DEV_INFO
Controls whether the system can send development information to Jira Cloud.
|
JIRA_COMMIT_CHECKER
Controls whether the Jira commit checker feature is enabled.
|
PERSONAL_REPOS
Controls whether users can create repositories in their personal projects.
|
PROJECT_REPO_ACCESS_TOKENS
Controls whether HTTP access tokens at project and repository level are enabled.
|
PUBLIC_ACCESS
Controls whether
projects and repositories can be
configured to allow public access. |
PULL_REQUEST_AUTO_DECLINE
Controls whether the process of automatically declining inactive pull requests is enabled for the system.
|
PULL_REQUEST_AUTO_MERGE
Controls whether users will have the option to auto-merge pull requests.
|
PULL_REQUEST_DELETION
Controls whether pull requests can be deleted.
|
PULL_REQUEST_SUGGESTIONS
Controls whether pull request suggestions are enabled.
|
PULL_REQUEST_TEMPLATES
Controls whether or not the pull request templates feature is enabled.
|
RATE_LIMITING
Controls whether HTTP requests will be rate limited per user.
|
REPOSITORY_ARCHIVING
Controls whether the repository archiving feature is enabled.
|
REPOSITORY_DELETE_POLICY
Controls whether a user can delete a repository by checking their permission level against the repository
delete policy.
|
REPOSITORY_MANAGEMENT
Controls whether admins have access to the Repositories view in the UI or the repository-management endpoint
in REST.
|
REQUIRED_BUILDS
Controls whether admins have access to the Required Builds view in the UI or the required-builds endpoint
in REST.
|
REVIEWER_GROUPS
Controls whether a user can manage reviewer groups.
|
ROLLING_UPGRADE
Controls whether rolling upgrade can be performed for bugfix versions.
|
SECRET_SCANNING
Controls whether secret scanning is enabled or not.
|
SMART_MIRRORS
Controls whether smart mirrors can be configured.
|
SSH_KEYS_FOR_CODE_SIGNING
Controls whether SSH keys can be used to sign objects.
|
SUGGEST_REVIEWERS
Controls whether the suggest reviewers feature is enabled or not.
|
TIME_ZONE_ONBOARDING
Controls whether users will be prompted to update their timezone after their first login.
|
X509_CERTIFICATE_SIGNING
Controls whether signed commits and tags are verified with X.509 certificates and whether trusted X.509
certificates can be managed by the system.
|
| Modifier and Type | Method and Description |
|---|---|
static StandardFeature |
fromKey(String value) |
String |
getKey() |
boolean |
isDataCenter()
Deprecated.
in 8.15 for removal in 9.0, without replacement
|
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
Disabling this feature will not delete any attachments that have already been uploaded, but will prevent uploading more.
public static final StandardFeature AUTH_CAPTCHA
Disabling this feature can reduce the overall security of an instance and is not recommended, but may be necessary in some environments. If this feature is disabled, it is strongly advised that some other aspect of the authentication mechanism (such as a remote LDAP directory) impose a limit on failed attempts in order to prevent attackers from using brute force attacks to compromise accounts.
public static final StandardFeature BIDI_CHARACTER_HIGHLIGHTING
If enabled, these characters will be expanded (e.g. <U+2066>) so they can be easily seen by reviewers.
public static final StandardFeature CODE_OWNERS
public static final StandardFeature COMMIT_GRAPH
public static final StandardFeature COMMIT_SHOW_SIGNATURES
public static final StandardFeature DIAGNOSTICS
public static final StandardFeature DEPLOYMENTS
public static final StandardFeature FILE_EDITOR
Disabling this feature does not prevent plugins from using the Java API to edit files; it only disables editing via the UI and REST.
ContentService.editFile(com.atlassian.bitbucket.content.EditFileRequest)public static final StandardFeature FORKS
When this feature is disabled, it overrides any configuration applied to individual repositories.
public static final StandardFeature GETTING_STARTED
public static final StandardFeature DATA_CENTER_MIGRATION_EXPORT
public static final StandardFeature DATA_CENTER_MIGRATION_IMPORT
public static final StandardFeature ENFORCE_PROJECT_SETTINGS
public static final StandardFeature JIRA_CLOUD_DEV_INFO
public static final StandardFeature JIRA_COMMIT_CHECKER
public static final StandardFeature PERSONAL_REPOS
Disabling this feature will prevent creating new repositories in, or forking existing repositories to, users'
personal projects. To completely disable forking, regardless of the target project's type, the FORKS
feature should be disabled instead of, or in addition to, this one.
PersonalRepositoryDisabledExceptionpublic static final StandardFeature PROJECT_REPO_ACCESS_TOKENS
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_AUTO_DECLINE
When this feature is enabled, all pull requests that are inactive (no recent comments, pushes etc.) are declined. Individual projects or repositories are still able to opt-out or configure a different inactivity period. When this feature is disabled, it overrides any configuration applied to individual projects or repositories, and prevents any pull request from being automatically declining due to inactivity.
public static final StandardFeature PULL_REQUEST_AUTO_MERGE
Enabling this feature allows users to schedule a pull request, that cannot currently merge, to merge after the conditions blocking it are resolved. If this is disabled, users will be unable to create these requests, via the UI or REST API.
public static final StandardFeature PULL_REQUEST_DELETION
When this feature is disabled, pull requests cannot be disabled via plugins using the Java API or using the UI or REST.
public static final StandardFeature PULL_REQUEST_SUGGESTIONS
Enabling this feature allows users with write access to the source repository the ability to apply code changes through the UI or the suggestion syntax. If this is disabled the user will not be able to apply code changes to the source repository through the UI or using the suggestion syntax; it will default to a standard comment if the suggestion syntax is used.
public static final StandardFeature PULL_REQUEST_TEMPLATES
Enabling this allows users to define a template for pull requests. If this is disabled, then users will be unable to define pull request templates at any scope, via the UI or REST API. In addition, plugins will no longer be able to interact with pull request templates.
public static final StandardFeature RATE_LIMITING
If this is enabled, repeated HTTP requests from the same user in a short time period may be rate limited. If this is disabled, no requests will be rate limited.
public static final StandardFeature REPOSITORY_ARCHIVING
Archived repositories can no longer be pushed to, and their settings can't be updated.
public static final StandardFeature REPOSITORY_DELETE_POLICY
public static final StandardFeature REPOSITORY_MANAGEMENT
public static final StandardFeature REQUIRED_BUILDS
public static final StandardFeature REVIEWER_GROUPS
public static final StandardFeature ROLLING_UPGRADE
public static final StandardFeature SECRET_SCANNING
public static final StandardFeature SMART_MIRRORS
public static final StandardFeature SSH_KEYS_FOR_CODE_SIGNING
public static final StandardFeature SUGGEST_REVIEWERS
public static final StandardFeature TIME_ZONE_ONBOARDING
public static final StandardFeature X509_CERTIFICATE_SIGNING
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)
@Deprecated public boolean isDataCenter()
FeatureData Center licenses.
For Bitbucket 8.15 and later the only supported license type is Data Center. This has no behavioural change for consumers of this method but does render it redundant (as all features are always available when the license type is always Data Center). This method will be removed in Bitbucket 9.0 with no replacement offered.
isDataCenter in interface Featuretrue if the feature requires a Data Center license, otherwise falseCopyright © 2023 Atlassian. All rights reserved.