Enum Class StandardFeature

java.lang.Object
java.lang.Enum<StandardFeature>
com.atlassian.bitbucket.server.StandardFeature
All Implemented Interfaces:
Feature, Serializable, Comparable<StandardFeature>, Constable

public enum StandardFeature extends Enum<StandardFeature> implements Feature
Core features provided by the application
Since:
4.2
  • Enum Constant Details

    • ATTACHMENTS

      public static final StandardFeature ATTACHMENTS
      Controls whether users can upload attachments in pull request comments.

      Disabling this feature will not delete any attachments that have already been uploaded, but will prevent uploading more.

    • AUTH_CAPTCHA

      public static final StandardFeature AUTH_CAPTCHA
      Controls whether users will be required to solve a CAPTCHA after a configured number of failed attempts to login.

      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.

    • BIDI_CHARACTER_HIGHLIGHTING

      public static final StandardFeature BIDI_CHARACTER_HIGHLIGHTING
      Controls whether Unicode bidirectional characters are highlighted in code contexts (source view, pull requests, code blocks in comments, etc.).

      If enabled, these characters will be expanded (e.g. <U+2066>) so they can be easily seen by reviewers.

    • CODE_OWNERS

      public static final StandardFeature CODE_OWNERS
      Controls whether code owners will be added as suggested reviewers when creating pull requests.
      Since:
      8.14
    • COMMIT_GRAPH

      public static final StandardFeature COMMIT_GRAPH
      Controls whether the commit graph is displayed on the commits page of a repository.
      Since:
      6.1
    • COMMIT_SHOW_SIGNATURES

      public static final StandardFeature 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.
      Since:
      8.11
    • DIAGNOSTICS

      public static final StandardFeature DIAGNOSTICS
      Controls whether diagnostics is enabled.
    • DEPLOYMENTS

      public static final StandardFeature DEPLOYMENTS
      Controls whether admins have access to the Deployments view in the UI or the deployments endpoint in REST.
      Since:
      7.16
    • ENFORCE_PASSWORD_USER_EMAIL_UPDATE

      public static final StandardFeature ENFORCE_PASSWORD_USER_EMAIL_UPDATE
      Controls whether users need to provide their password when updating their own email. This does not affect email updates done for a user by an admin user.
      Since:
      9.4
    • FILE_EDITOR

      public static final StandardFeature FILE_EDITOR
      Controls whether users can edit repository files in the browser and via REST.

      Disabling this feature does not prevent plugins from using the Java API to edit files; it only disables editing via the UI and REST.

      Since:
      4.13
      See Also:
    • FORKS

      public static final StandardFeature FORKS
      Controls whether repositories are allowed to be forked.

      When this feature is disabled, it overrides any configuration applied to individual repositories.

      See Also:
    • GETTING_STARTED

      public static final StandardFeature GETTING_STARTED
      Controls whether new users will be presented with a "Getting Started" page after their first login.
    • DATA_CENTER_MIGRATION_EXPORT

      public static final StandardFeature DATA_CENTER_MIGRATION_EXPORT
      Controls whether Data Center Migration archives can be generated on this instance.
      Since:
      5.13
    • DATA_CENTER_MIGRATION_IMPORT

      public static final StandardFeature DATA_CENTER_MIGRATION_IMPORT
      Controls whether Data Center Migration archives can be imported into the instance.
      Since:
      5.13
    • ENFORCE_PROJECT_SETTINGS

      public static final StandardFeature ENFORCE_PROJECT_SETTINGS
      Controls enforce project settings selector on project admin settings.
      Since:
      8.8
    • HOOK_SCRIPTS

      public static final StandardFeature HOOK_SCRIPTS
      Controls whether the hook scripts feature is enabled.
      Since:
      8.18
    • JIRA_CLOUD_DEV_INFO

      public static final StandardFeature JIRA_CLOUD_DEV_INFO
      Controls whether the system can send development information to Jira Cloud.
      Since:
      7.14
    • JIRA_COMMIT_CHECKER

      public static final StandardFeature JIRA_COMMIT_CHECKER
      Controls whether the Jira commit checker feature is enabled.
      Since:
      7.16
    • PERSONAL_REPOS

      public static final StandardFeature PERSONAL_REPOS
      Controls whether users can create repositories in their personal projects.

      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.

      See Also:
    • PROJECT_REPO_ACCESS_TOKENS

      public static final StandardFeature PROJECT_REPO_ACCESS_TOKENS
      Controls whether HTTP access tokens at project and repository level are enabled.
      Since:
      7.18
    • PUBLIC_ACCESS

      public static final StandardFeature PUBLIC_ACCESS
      Controls whether 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.

    • PULL_REQUEST_AUTO_DECLINE

      public static final StandardFeature PULL_REQUEST_AUTO_DECLINE
      Controls whether the process of automatically declining inactive pull requests is enabled for the system.

      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.

      Since:
      7.7
    • PULL_REQUEST_AUTO_MERGE

      public static final StandardFeature PULL_REQUEST_AUTO_MERGE
      Controls whether users will have the option to auto-merge pull requests.

      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.

      Since:
      8.15
    • PULL_REQUEST_DELETION

      public static final StandardFeature PULL_REQUEST_DELETION
      Controls whether pull requests can be deleted.

      When this feature is disabled, pull requests cannot be disabled via plugins using the Java API or using the UI or REST.

      Since:
      5.1
      See Also:
    • PULL_REQUEST_DRAFTS

      public static final StandardFeature PULL_REQUEST_DRAFTS
      Controls whether users can mark pull requests as draft
      Since:
      8.18
    • PULL_REQUEST_SUGGESTIONS

      public static final StandardFeature PULL_REQUEST_SUGGESTIONS
      Controls whether pull request suggestions are enabled.

      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.

      Since:
      6.6
    • PULL_REQUEST_TEMPLATES

      public static final StandardFeature PULL_REQUEST_TEMPLATES
      Controls whether or not the pull request templates feature is enabled.

      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.

      Since:
      7.13
    • RATE_LIMITING

      public static final StandardFeature RATE_LIMITING
      Controls whether HTTP requests will be rate limited per user.

      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.

      Since:
      6.5
    • REPOSITORY_ARCHIVING

      public static final StandardFeature REPOSITORY_ARCHIVING
      Controls whether the repository archiving feature is enabled.

      Archived repositories can no longer be pushed to, and their settings can't be updated.

      Since:
      8.0
    • REPOSITORY_DELETE_POLICY

      public static final StandardFeature REPOSITORY_DELETE_POLICY
      Controls whether a user can delete a repository by checking their permission level against the repository delete policy.
      Since:
      7.4
    • REPOSITORY_MANAGEMENT

      public static final StandardFeature REPOSITORY_MANAGEMENT
      Controls whether admins have access to the Repositories view in the UI or the repository-management endpoint in REST.
      Since:
      7.12
    • REQUIRED_BUILDS

      public static final StandardFeature REQUIRED_BUILDS
      Controls whether admins have access to the Required Builds view in the UI or the required-builds endpoint in REST.
      Since:
      7.14
    • REVIEWER_GROUPS

      public static final StandardFeature REVIEWER_GROUPS
      Controls whether a user can manage reviewer groups.
      Since:
      7.13
    • ROLLING_UPGRADE

      public static final StandardFeature ROLLING_UPGRADE
      Controls whether rolling upgrade can be performed for bugfix versions.
      Since:
      7.9
    • SECRET_SCANNING

      public static final StandardFeature SECRET_SCANNING
      Controls whether secret scanning is enabled or not.
      Since:
      8.3
    • SYSTEM_SIGNED_GIT_OBJECTS

      public static final StandardFeature SYSTEM_SIGNED_GIT_OBJECTS
      Controls whether system created Git objects (such as pull request merge commits) are signed.

      When this feature is enabled the application will sign and verify system created Git objects using an automatically generated signing key-pair.

      Since:
      8.17
    • SMART_MIRRORS

      public static final StandardFeature SMART_MIRRORS
      Controls whether smart mirrors can be configured.
    • SSH_KEYS_FOR_CODE_SIGNING

      public static final StandardFeature SSH_KEYS_FOR_CODE_SIGNING
      Controls whether SSH keys can be used to sign objects.
      Since:
      8.15
    • SUGGEST_REVIEWERS

      public static final StandardFeature SUGGEST_REVIEWERS
      Controls whether the suggest reviewers feature is enabled or not.
      Since:
      8.16
    • TIME_ZONE_ONBOARDING

      public static final StandardFeature TIME_ZONE_ONBOARDING
      Controls whether users will be prompted to update their timezone after their first login.
    • WEB_SUDO

      public static final StandardFeature WEB_SUDO
      Controls whether web sudo is enabled. If disabled, all web sudo checks will pass.
      Since:
      9.0
    • WHATS_NEW

      public static final StandardFeature WHATS_NEW
      Controls whether the what's new feature is enabled or not.
      Since:
      8.19
    • X509_CERTIFICATE_SIGNING

      public static final StandardFeature 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.
      Since:
      8.15
  • Method Details

    • values

      public static StandardFeature[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StandardFeature valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromKey

      @Nonnull public static StandardFeature fromKey(String value)
    • getKey

      @Nonnull public String getKey()
      Specified by:
      getKey in interface Feature
      Returns:
      identifier for the feature